summaryrefslogtreecommitdiff
path: root/src/backend/utils
Commit message (Collapse)AuthorAgeFilesLines
* Clean up problems with rounding/overflow code in NUMERIC, particularlyTom Lane2000-01-151-75/+109
| | | | | the case wherein zero was rejected for a field like NUMERIC(4,4). Miscellaneous other code beautification efforts.
* Fix a passel of problems with incorrect calls to typinput and typoutputTom Lane2000-01-153-12/+14
| | | | | | | functions, which would lead to trouble with datatypes that paid attention to the typelem or typmod parameters to these functions. In particular, incorrect code in pg_aggregate.c explains the platform-specific failures that have been reported in NUMERIC avg().
* Fixed all elog related warnings, as well as a few others.Peter Eisentraut2000-01-1514-99/+100
|
* * User management commands no longer user pg_exec_query_dest -> more robustPeter Eisentraut2000-01-141-4/+3
| | | | | | | | | | | | * Let unprivileged users change their own passwords. * The password is now an Sconst in the parser, which better reflects its text datatype and also forces users to quote them. * If your password is NULL you won't be written to the password file, meaning you can't connect until you have a password set up (if you use password authentication). * When you drop a user that owns a database you get an error. The database is not gone.
* Fixed everything in and surrounding createdb and dropdb to make it morePeter Eisentraut2000-01-134-497/+136
| | | | error-proof. Rearranged some old code and removed dead sections.
* Add UDC (User Defined Characters) support to SJIS/EUC_JP conversionTatsuo Ishii2000-01-133-14/+590
| | | | | Update README so that it reflects all source file names Add an entry to make sjistest (testing between SJIS/EUC_JP conversion)
* More cleanups.Bruce Momjian2000-01-111-2/+2
|
* Remove outdated comment about 8 arguments.Tom Lane2000-01-111-11/+4
|
* Update type stuff.Bruce Momjian2000-01-101-4/+4
|
* Cleanup for func args > 8.Bruce Momjian2000-01-101-6/+4
|
* More updates for function call interface > 8.Bruce Momjian2000-01-101-26/+1
|
* Update fmgr to allow 32 arguments.Bruce Momjian2000-01-101-2/+242
|
* Make number of args to a function configurable.Bruce Momjian2000-01-103-23/+93
|
* Rename oid8 -> oidvector and int28 -> int2vector. Cleanup of *out functions.Bruce Momjian2000-01-105-34/+34
|
* Update int28out and out8out and _in_ functions to handle trailing zerosBruce Momjian2000-01-102-25/+46
| | | | properly.
* Improve cache invalidation handling. EespeciallyHiroshi Inoue2000-01-101-35/+410
| | | | | | this would fix TODO * elog() flushes cache, try invalidating just entries from current xact, perhaps using invalidation cache
* Fix oid8in and int28in for spacesBruce Momjian2000-01-102-4/+6
|
* Move fixes for >8 indexed fields.Bruce Momjian2000-01-101-20/+17
|
* Move INDEX_MAX_KEYS to postgres.h, and make it configurable for users.Bruce Momjian2000-01-101-23/+20
|
* Move SetPidFile() and firends to utils/init/miscinit.c fromTatsuo Ishii2000-01-091-1/+155
| | | | | | postmaster/postmaster.c so that tcop/postgres.c can use them. Now we have an interlock between postmaster and postgres.
* Another round of planner/optimizer work. This is just restructuring andTom Lane2000-01-091-7/+14
| | | | | code cleanup; no major improvements yet. However, EXPLAIN does produce more intuitive outputs for nested loops with indexscans now...
* Sorry, that I send this letter/patch again, but previous sending isBruce Momjian2000-01-072-2/+130
| | | | | | | | | still without answer. I want continue with to_char(), but I need any answer for this patch. Please. Thank! (and sorry of my impatient :-) Karel
* Changed "triggered data change violation" detection codeJan Wieck2000-01-061-1/+124
| | | | | | in trigger manager. Jan
* Fixed bug in targetlist expression replacement ofJan Wieck2000-01-061-4/+11
| | | | | | SET DEFAULT referential action triggers. Jan
* Fix it's and its to be correct.Bruce Momjian2000-01-053-8/+8
|
* Repair two recently reported problems:Thomas G. Lockhart2000-01-041-8/+12
| | | | | | | | | | | | | | | | 1) datetime_pl_span() added the seconds field before adding the months field. This lead to erroneous results for e.g. select datetime '1999-11-30' + timespan '1 mon - 1 sec'; Reverse the order of operations to add months first. 2) tm2timespan() did all intermediate math as integer, converting to double at the very end. This resulted in hidden overflows when given very large integer days, hours, etc. For example, select '74565 days'::timespan; produced the wrong result. Change code to ensure that doubles are used for intermediate calculations. Thanks to Olivier PRENANT <ohp@pyrenet.fr> and Tulassay Zsolt <zsolt@tek.bke.hu> for problem reports and to Tom Lane for accurate analyses.
* Update DATEDEBUG removal.Bruce Momjian2000-01-021-8/+3
|
* Remove DATEDEBUG because it didn't look Y2K safe, and fix timestamp elogBruce Momjian2000-01-025-386/+7
| | | | to be Y2K safe.
* Clean up datatypes and comments for op_class() routine.Tom Lane1999-12-311-4/+5
|
* elog() was set up to call abort() if it saw an ERROR or FATAL exitTom Lane1999-12-301-8/+2
| | | | | | | | | | during InitProcessingMode and the CurrentTransactionState was neither TRANS_DEFAULT nor TRANS_DISABLED. Unfortunately, after someone's recent change to start the transaction manager earlier in startup than it used to be started, that caused an abort() and consequent database system reset on quite harmless errors (such as rejecting an invalid user name!). As far as I can see, the test on CurrentTransactionState was completely useless anyway, so I've removed it.
* Repair bugs discussed in pghackers thread of 15 May 1999: creation of aTom Lane1999-12-302-24/+11
| | | | | | relcache entry no longer leaks a small amount of memory. index_endscan now releases all the memory acquired by index_beginscan, so callers of it should NOT pfree the scan descriptor anymore.
* Removed LZTEXT datatype as discussed.Jan Wieck1999-12-283-6/+6
| | | | Jan
* Clean up handling of explicit NULL constants. Cases likeTom Lane1999-12-241-7/+14
| | | | | | | | | | | | | SELECT null::text; SELECT int4fac(null); work as expected now. In some cases a NULL must be surrounded by parentheses: SELECT 2 + null; fails SELECT 2 + (null); OK This is a grammatical ambiguity that seems difficult to avoid. Other than that, NULLs seem to behave about like you'd expect. The internal implementation is that NULL constants are typed as UNKNOWN (like untyped string constants) until the parser can deduce the right type.
* to live in a transaction before access to dbHiroshi Inoue1999-12-221-1/+4
| | | | during backend startup.
* This patch will avoid SIGFPE on some geo functions , if PostgreSQL is compiledBruce Momjian1999-12-211-2/+5
| | | | | | | | | | | with DEC C. DEC C doesn't handle double values greater than DBL_MAX, but some PostgreSQL geo functions assign greater than DBL_MAX values to some vars in some special cases - that couses SIGFPE. I dunno if that is the only place to fix to work well with DEC C. Kirill Nosov.
* Finally found a platform which has finite() but nonetheless sets errnoTom Lane1999-12-201-15/+18
| | | | | | | rather than returning a NaN for bogus input to pow(). Namely, HPUX 10.20. I think this is sufficient evidence for what I thought all along, which is that the float.c code *must* look at errno whether finite() exists or not.
* Clean up some minor gcc warnings.Tom Lane1999-12-201-3/+3
|
* Some changes to prepare for LONG attributes.Jan Wieck1999-12-165-8/+14
| | | | Jan
* Ethernet MAC addresses (macaddr type) are not compared correctly forBruce Momjian1999-12-161-2/+2
| | | | | | | | | | | | | | | equality. The lobits macro is wrong and extracts the wrong set of bits out of the structure. To exhibit the problem: select '000000:000000'::macaddr = '000000:110000'::macaddr ; ?column? -------- t (1 row) Daniel Boyd
* New LDOUT makefile variable for QNX os.Bruce Momjian1999-12-1312-24/+24
|
* aggregate(DISTINCT ...) works, per SQL spec.Tom Lane1999-12-132-7/+268
| | | | Note this forces initdb because of change of Aggref node in stored rules.
* Added global variable to have RI triggers overrideJan Wieck1999-12-102-2/+19
| | | | | | time qualification of HeapTupleSatisfiesSnapshot() Jan
* Fix memory overrun while setting ps statusTatsuo Ishii1999-12-101-1/+8
|
* Rename several destroy* functions/tags to drop*.Bruce Momjian1999-12-102-9/+9
|
* Make LD -r as macros that can be changed for QNX.Bruce Momjian1999-12-0912-24/+24
|
* Update for QNX from Kardos, Dr. AndreaBruce Momjian1999-12-092-2/+8
|
* Hi,Bruce Momjian1999-12-092-6/+24
| | | | | | | | | | | | | | | | I was able to crash postgres 6.5.3 when I did an 'alter user' command. After I started a debugger I found the problem in the timezone handling of datetime (my Linux box lost its timezone information, that's how the problem occurred). Only 7 bytes are reserved for the timezone, without checking for boundaries. Attached is a patch that fixes this problem and emits a NOTICE if a timezone is encountered that is longer than MAXTZLEN bytes, like this: Jeroen van Vianen
* Fixed concurrent visibility bug.Jan Wieck1999-12-081-2/+12
| | | | Jan
* Again updated INSIDE TODOJan Wieck1999-12-071-5/+4
| | | | Jan
* Added SET DEFAULT action for ON DELETE/UPDATEJan Wieck1999-12-071-16/+479
| | | | Jan