summaryrefslogtreecommitdiff
path: root/src/backend/utils
Commit message (Collapse)AuthorAgeFilesLines
* Correct bogus output formatting of timeofday() function. A number ofTom Lane2001-02-211-5/+5
| | | | microseconds < 100000 should be displayed as, eg, 13.000126, not 13.126.
* Change case-folding of keywords to conform to SQL99 and fix misbehaviorTom Lane2001-02-211-3/+3
| | | | | | | in Turkish locale. Keywords are now checked under pure ASCII case-folding rules ('A'-'Z'->'a'-'z' and nothing else). However, once a word is determined not to be a keyword, it will be case-folded under the current locale, same as before. See pghackers discussion 20-Feb-01.
* Safe guard in case of imporper data is provided to elog()Tatsuo Ishii2001-02-211-1/+3
| | | | in multi-byte build.
* Change default commit_delay to zero, update documentation.Tom Lane2001-02-182-3/+3
|
* Defend against starting a non-MULTIBYTE-enabled backend in a databaseTom Lane2001-02-161-5/+8
| | | | with encoding other than SQL_ASCII. Per recent discussion in pghackers.
* Add some notes about memory management of RI plans.Tom Lane2001-02-151-2/+14
|
* Update notes about memory context scheme.Tom Lane2001-02-151-12/+15
|
* Reduce default selectivity estimates for geometric operators; it seemsTom Lane2001-02-151-5/+5
| | | | | | | the old ones were not small enough to ensure r-tree and gist indexes would get picked when available. These numbers are totally bogus anyway, but in the absence of any real estimation technique, we'd like to select indexes when available ...
* Unicode <-> SJIS new mapping tables (based on CP932.TXT) contributed byTatsuo Ishii2001-02-152-9/+1309
| | | | Eiji Tokuya" <e-tokuya@Mail.Sankyo-Unyu.co.jp>
* Change scoping of table and join refnames to conform to SQL92: a JOINTom Lane2001-02-141-69/+409
| | | | | | | | | clause with an alias is a <subquery> and therefore hides table references appearing within it, according to the spec. This is the same as the preliminary patch I posted to pgsql-patches yesterday, plus some really grotty code in ruleutils.c to reverse-list a query tree with the correct alias name depending on context. I'd rather not have done that, but unless we want to force another initdb for 7.1, there's no other way for now.
* Please apply the following patch to fix AIX and IRIX timestamp behaviorBruce Momjian2001-02-132-2/+20
| | | | | | | | | | | | | | | as previously discussed. It makes AIX and IRIX not use DST for dates before 1970. The following expected files need to be removed from the regression tests, they contain wrong results and are not needed any more. src/test/regress/expected/horology-1947-PDT.out src/test/regress/expected/tinterval-1947-PDT.out src/test/regress/expected/abstime-1947-PDT.out Zeugswetter Andreas
* poit -> point.Bruce Momjian2001-02-121-2/+2
|
* Move pg_encoding_mblen() from common.c to wchar.c.Tatsuo Ishii2001-02-112-9/+11
|
* conv.c did not compile anymore. Fix wrong header file inclusion.Tatsuo Ishii2001-02-111-4/+2
|
* Restructure the key include files per recent pghackers discussion: thereTom Lane2001-02-1014-25/+39
| | | | | | | | | | | are now separate files "postgres.h" and "postgres_fe.h", which are meant to be the primary include files for backend .c files and frontend .c files respectively. By default, only include files meant for frontend use are installed into the installation include directory. There is a new make target 'make install-all-headers' that adds the whole content of the src/include tree to the installed fileset, for use by people who want to develop server-side code without keeping the complete source tree on hand. Cleaned up a whole lot of crufty and inconsistent header inclusions.
* FixBTree flag still exists and may be used to turnVadim B. Mikheev2001-02-071-1/+5
| | | | runtime recovery OFF.
* Out-of-bounds memory allocation request sizes should be treated as justTom Lane2001-02-062-18/+8
| | | | | | | elog(ERROR) not an Assert trap, since we've downgraded out-of-memory to elog(ERROR) not a fatal error. Also, change the hard boundary from 256Mb to 1Gb, just so that anyone who's actually got that much memory to spare can play with TOAST objects approaching a gigabyte.
* Dump/display 'timestamp' as 'timestamp with time zone', to make room for aPeter Eisentraut2001-02-051-1/+5
| | | | | future 'timestamp without time zone', which SQL claims is equivalent to plain 'timestamp'.
* Clean up handling of tuple descriptors so that result-tuple descriptorsTom Lane2001-01-291-1/+2
| | | | | | | | allocated by plan nodes are not leaked at end of query. This doesn't really matter for normal queries, but it sure does for queries invoked repetitively inside SQL functions. Clean up some other grotty code associated with tupdescs, and fix a few other memory leaks exposed by tests with simple SQL functions.
* Re-read Unix-socket lock file every so often (every CheckPoint interval,Tom Lane2001-01-271-1/+32
| | | | | | actually) to ensure that its file access time doesn't get old enough to tempt a /tmp directory cleaner to remove it. Still another reason we should never have put the sockets in /tmp in the first place ...
* Change float8-to-int8 conversion to round to nearest, rather thanTom Lane2001-01-261-11/+11
| | | | | | | truncating to integer. Remove regress test that checks whether 4567890123456789 can be converted to float without loss; since that's 52 bits, it's on the hairy edge of failing with IEEE float8s, and indeed rint seems to give platform-dependent results for it.
* Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group.Bruce Momjian2001-01-2467-140/+140
|
* Fix bogus pattern for STRING.Peter Eisentraut2001-01-241-2/+2
|
* Add all possible config file options.Bruce Momjian2001-01-242-218/+373
|
* Put back old config contents until I am finished.Bruce Momjian2001-01-241-176/+0
|
* Add "idle in transaction" status messageBruce Momjian2001-01-241-0/+176
|
* Remove useless leftover global variable Ps_status_buffer.Peter Eisentraut2001-01-231-9/+1
|
* Fix all the places that called heap_update() and heap_delete() withoutTom Lane2001-01-231-2/+2
| | | | | | | | | | | bothering to check the return value --- which meant that in case the update or delete failed because of a concurrent update, you'd not find out about it, except by observing later that the transaction produced the wrong outcome. There are now subroutines simple_heap_update and simple_heap_delete that should be used anyplace that you're not prepared to do the full nine yards of coping with concurrent updates. In practice, that seems to mean absolutely everywhere but the executor, because *noplace* else was checking.
* Improve realloc() per idea from Karel Zak --- if chunk to be enlarged isTom Lane2001-01-231-2/+52
| | | | at end of its block, maybe we can enlarge it in-place.
* Remove rangechecks on errno; just call strerror unconditionally. ThisTom Lane2001-01-222-26/+4
| | | | | | | | | eliminates a raft of portability issues, including whether sys_nerr exists, whether the platform has any valid negative errnos, etc. The downside is minimal: errno shouldn't ever contain an invalid value anyway, and if it does, reasonably modern versions of strerror will not choke. This rangecheck idea seemed good at the time, but it's clearly a net loss, and I apologize to all concerned for having ever put it in.
* Deal with C++ incompatibility of sys_nerr declaration by taking it outTom Lane2001-01-212-38/+50
| | | | | | | | of c.h altogether, and putting it into the only places that use it (elog.c and exc.c), instead. Modify these routines to check for a NULL or empty-string return from strerror, too, since some platforms define strerror to return empty string for unknown errors (what a useless definition that is ...). Clean up some cruft in ExcPrint while at it.
* Make critical sections (elog->crash) and interrupt holdoff sectionsTom Lane2001-01-192-10/+21
| | | | into distinct concepts, per recent discussion on pghackers.
* Suppress compiler warning in MULTIBYTE code.Tom Lane2001-01-191-1/+2
|
* Fix up "Postgres-style" time interval representation when fields haveThomas G. Lockhart2001-01-184-61/+42
| | | | | | | | | | mixed-signs. Previous effort left way too many minus signs, and was at least as broken as the one before that :( Clean up "ISO-style" time interval representation to omit zero fields if there is at least one non-zero field. Supress some leading plus signs when not necessary for clarity. Replace every #ifdef __CYGWIN__ block with a cleaner TIMEZONE_GLOBAL macro defined in datetime.h.
* Change comparisons of tm->tm_isdst from "nonzero" to "greater than zero".Thomas G. Lockhart2001-01-174-55/+60
| | | | | | | | | Not sure why some were this way, and others were already correct, but it seems to have been like this for several years. This caused problems on a few damaged platforms like AIX and IRIX which do not support DST calculations for years before 1970. Thanks to Andreas Zeugswetter <ZeugswetterA@wien.spardat.at> for finding the problem.
* Minor coding cleanups.Tom Lane2001-01-141-15/+10
|
* Another go-round on making GetRawDatabaseInfo behave as well as it can,Tom Lane2001-01-141-34/+67
| | | | | | | given the fundamental restriction of not looking at transaction commit data in pg_log. Use code that is actually based on tqual.c rather than ad-hoc tests. Also write the tuple fetch loop using standard access macros rather than ad-hoc code.
* Make aclcontains() do something that's at least vaguely reasonable:Tom Lane2001-01-141-4/+10
| | | | | it now returns true if the aclitem argument exactly matches any one of the elements of the aclitem[] argument. Per complaint from Wolff 1/10/01.
* Restructure backend SIGINT/SIGTERM handling so that 'die' interruptsTom Lane2001-01-142-27/+24
| | | | | | | are treated more like 'cancel' interrupts: the signal handler sets a flag that is examined at well-defined spots, rather than trying to cope with an interrupt that might happen anywhere. See pghackers discussion of 1/12/01.
* Add more critical-section calls: all code sections that hold spinlocksTom Lane2001-01-123-24/+26
| | | | | | | | | | | are now critical sections, so as to ensure die() won't interrupt us while we are munging shared-memory data structures. Avoid insecure intermediate states in some code that proc_exit will call, like palloc/pfree. Rename START/END_CRIT_CODE to START/END_CRIT_SECTION, since that seems to be what people tend to call them anyway, and make them be called with () like a function call, in hopes of not confusing pg_indent. I doubt that this is sufficient to make SIGTERM safe anywhere; there's just too much code that could get invoked during proc_exit().
* Remove useless DLLIMPORT (only needed in header files).Peter Eisentraut2001-01-111-2/+2
|
* Add configure check for sys_nerr, to end all discussions.Peter Eisentraut2001-01-092-15/+5
|
* 1. Checkpoint.undo may be after checkpoint itself:Vadim B. Mikheev2001-01-091-1/+5
| | | | | | | | - no more elog(STOP) in StartupXLOG(); - both checkpoint' undo & redo are used to define oldest on-line log file. 2. Ability to pre-allocate a few log files at checkpoint time (wal_files option). Off by default.
* Add some debugging support code (ifdef'd out in normal use).Tom Lane2001-01-081-5/+14
|
* Fix recent breakage of query-cancel logic, see my pghackers messageTom Lane2001-01-071-2/+2
| | | | of 6 Jan 2001 21:55.
* Log memory context stats to stderr when reporting a 'Memory exhausted'Tom Lane2001-01-061-1/+13
| | | | error, so as to provide a starting point for debugging.
* Fix memory leak in relcache handling of rules: allocate rule parsetreesTom Lane2001-01-061-3/+3
| | | | | | in per-entry sub-memory-context, where they were supposed to go, rather than in CacheMemoryContext where the code was putting them. Must've suffered a severe brain fade when I wrote this :-(
* init_irels() is changed to be called in RelationCacheInitializePhase2()Hiroshi Inoue2001-01-061-8/+15
| | | | so that transactional control could guarantee the consistency.
* Rename and document some invalidation routines to make it clearer thatTom Lane2001-01-052-48/+104
| | | | | they don't themselves flush any cache entries, only add to to-do lists that will be processed later.
* I neglected to remove a debug message,sorry.Hiroshi Inoue2001-01-041-4/+1
|