summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-10-02Clean up handling of inherited-table update queries, per bug reportTom Lane
from Sebastian Böck. The fix involves being more consistent about when rangetable entries are copied or modified. Someday we really need to fix this stuff to not scribble on its input data structures in the first place...
2004-10-02Update length from 75 to 79.Bruce Momjian
2004-10-01Convert pg_stat_get_backend_idset to use the existing SRF support.Tom Lane
This seems the cleanest way of fixing its lack of a shutdown callback, which was preventing it from working correctly in a query that didn't run it to completion. Per bug report from Szima GÄbor.
2004-10-01fmgr_security_definer had better do a PG_TRY to ensure the outer useridTom Lane
is restored on error exit.
2004-10-01Adjust postmaster to recognize that a lockfile containing its parent's PIDTom Lane
must be stale. Tweak example startup scripts to not use pg_ctl but launch the postmaster directly, thereby ensuring that only the postmaster's direct parent shell will be a postgres-owned process. In combination these should fix the longstanding problem of the postmaster sometimes refusing to start during reboot because it thinks the old lockfile is not stale.
2004-10-01Don't assume PQdb() will return a valid result from a failed connection.Tom Lane
2004-10-01Don't assume PQdb() will return a valid result from a failed connection.Tom Lane
2004-10-01Fallout from changing index locking rules: we can reduce the strengthTom Lane
of locking used by REINDEX. REINDEX needs only ShareLock on the parent table, same as CREATE INDEX, plus an exclusive lock on the specific index being processed.
2004-10-01Code review for NOWAIT patch: downgrade NOWAIT from fully reserved keywordTom Lane
to unreserved keyword, use ereport not elog, assign a separate error code for 'could not obtain lock' so that applications will be able to detect that case cleanly.
2004-10-01Use 'override' when appending text to LDFLAGS, so the build doesn't breakNeil Conway
if the user has defined LDFLAGS themselves.
2004-09-30Adjust index locking rules as per my proposal of earlier today. YouTom Lane
now are supposed to take some kind of lock on an index whenever you are going to access the index contents, rather than relying only on a lock on the parent table.
2004-09-30Remove unnecessary use of index_open just to get the index name.Tom Lane
2004-09-30isinf.c needs <float.h> on some platforms, per Darcy Buskermolen.Tom Lane
2004-09-30Come to think of it, functions in FROM have the same syntactic restrictionTom Lane
as CREATE INDEX did, and can be fixed the same way, for another small improvement in usability and reduction in grammar size.
2004-09-29Split out everything that looks like a function call from c_expr intoTom Lane
a separate production func_expr. This allows us to accept all these variants in the backwards-compatible syntax for creating a functional index; which beats documenting exactly which things work and which don't. Interestingly, it also seems to make the generated state machine a little bit smaller.
2004-09-29Minor adjustments to improve the accuracy of our computation of requiredTom Lane
shared memory size.
2004-09-28Adjust obsolete comment about memory needs for lock table.Tom Lane
2004-09-28Arrange to preallocate all required space for the buffer and FSM hashTom Lane
tables in shared memory. This ensures that overflow of the lock table creates no long-lasting problems. Per discussion with Merlin Moncure.
2004-09-28 An include path got missed out of the patch - see the attached fix.Bruce Momjian
This also adds debug build support to src/bin/psql/win32.mak. Dave Page
2004-09-28Revert patch that removed BUFSIZ usage. The memory has to hold theBruce Momjian
structures plus pointers used by the structure.
2004-09-27Small WIN32_CLIENT_ONLY cleanup for new build patch.Bruce Momjian
2004-09-27Remove use of large BUFSIZ for buffers and use the proper struct sizes.Bruce Momjian
This greatly helps threaded libpq programs.
2004-09-27Add new macro as shorthand for MS VC and Borland C++:Bruce Momjian
+ #if defined(_MSC_VER) || defined(__BORLANDC__) + #define WIN32_CLIENT_ONLY + #endif
2004-09-27More MS VC and BCC psql compile cleanups.Bruce Momjian
2004-09-27More Win32 cleanups for Dave Page.Bruce Momjian
2004-09-27Make adjustment for MS VC and BCC compile of psql, from Dave Page.Bruce Momjian
2004-09-27Improve MS VC builds for psql by handlling flex properly and preventBruce Momjian
rename prototype conflict.
2004-09-27Translation updatePeter Eisentraut
2004-09-27Translation updatesPeter Eisentraut
2004-09-27Translation updatePeter Eisentraut
2004-09-27New translationsPeter Eisentraut
2004-09-27Remove inclusion of windows.h now that it is included in c.h, per ideaBruce Momjian
from Peter.
2004-09-27Synced parser.Michael Meskes
Removed Oracle transaction syntax to fix shift/reduce error.
2004-09-27Remove references to the ODBC driver from the main source tree. From KrisNeil Conway
Jurka.
2004-09-27A few minor list-related cleanups:Neil Conway
(1) Replace while loop with the new forboth() construct in parser/analyze.c (2) Replace lcons() with lappend() in SearchCatCacheList(). Since these now have the same performance, there is no reason to prefer lcons() in this case, and using lappend() leads to cleaner code. (3) Improve the name of the second parameter to for_each_cell()
2004-09-27Code cleanup: don't bother casting the argument to pfree() to void *Neil Conway
from another pointer type. Per C89, this is unnecessary, and it is common practice throughout the rest of the tree anyway.
2004-09-27Rewrite ReadArrayStr() to avoid O(N^2) behavior on large strings,Tom Lane
and hopefully improve code clarity while at it. One intentional semantics change: a backslashed space will not be treated as removable trailing whitespace, as the prior coding would do. ISTM that if it wouldn't be considered removable leading whitespace, it shouldn't be stripped at the end either.
2004-09-26Fix multiple breakages in our support for SSL certificates.Tom Lane
2004-09-26Use ULL not LL in UINT64CONST.Tom Lane
2004-09-26Here is a patch that adds the version info from libpq.rc to the DLLBruce Momjian
build in mingw. The MSVC build already did this, but it was not linked into the mingw one. This is not the same as the versioninfo patch that's in the queue. Please apply this one before beta-3 if at all possible. Magnus Hagander
2004-09-26Use <> not "" for include of pthread.h.Bruce Momjian
2004-09-26Repair bug that would allow libpq to think a command had succeeded whenTom Lane
it really hadn't, due to double output of previous command's response. Fix prevents recursive entry to libpq routines. Found by Jan Wieck.
2004-09-24Persuade plpython to build on OS X.Tom Lane
2004-09-24GUC assign hooks that look at external state in deciding whether aTom Lane
setting is valid must ignore that state and permit the assignment anyway when source is PGC_S_OVERRIDE. Otherwise they may disallow a rollback at transaction abort, which is The Wrong Thing. Per example from Michael Fuhr 12-Sep-04.
2004-09-24Cleanup some ancient Ultrix / Alpha code in main() that is intended toNeil Conway
modify how unaligned memory accesses are dealt with. Document that this is really what is going on, and merge the NOFIXADE and NOPRINTADE code paths.
2004-09-24shmdt takes a void* parameter, per Kris Jurka.Tom Lane
2004-09-24Fix gratuitous weirdness in function prototype, per Kris Jurka.Tom Lane
2004-09-24Okay, I'm tired of reading gripes from OS X users ... add a regressionTom Lane
variant file to cover OS X 10.3's bizarre minus-zero behavior.
2004-09-24Get rid of /*-inside-comment warning. My fault.Tom Lane
2004-09-24ExecProcAppend() wasn't called ExecAppend() because the latter name wasNeil Conway
formerly used in execMain. Since that is no longer the case, this patch renames ExecProcAppend() to ExecAppend() for the sake of consistency.