summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-10-17pg_get_indexdef() didn't do quite the right thing with identifyingTom Lane
an index's tablespace.
2004-10-17New translationPeter Eisentraut
2004-10-17New translationPeter Eisentraut
2004-10-17Translation updatePeter Eisentraut
2004-10-17Translation updatesPeter Eisentraut
2004-10-17Adjust messagePeter Eisentraut
2004-10-17Give a more user-friendly error message in situation where CREATE DATABASETom Lane
specifies a new default tablespace and the template database already has some tables in that tablespace. There isn't any way to solve this fully without modifying the clone database's pg_class contents, so for now the best we can do is issue a better error message.
2004-10-17Make locale_messages_assign() really work on Windows; the prior hackTom Lane
only covered the case of assigning "", and failed to recognize that actually setlocale(LC_MESSAGES,...) does not work at all on this platform. Magnus Hagander, some code prettification by Tom Lane.
2004-10-16Remove dllist.c from libpq. It's overkill for what libpq needs; we canTom Lane
just stick a list-link into struct PGnotify instead. Result is a smaller faster and more robust library (mainly because we reduce the number of malloc's and free's involved in notify processing), plus less pollution of application link-symbol namespace.
2004-10-16Give a more user-friendly error message in case where a table is createdTom Lane
in a schema whose default tablespace has been dropped.
2004-10-16Generate the various .def files for libpq DLLs from a single list ofTom Lane
exportable functions. The .def files are removed from CVS, but will still be present in distribution tarballs, since we can't assume that Windows boxes will have sed.
2004-10-16Limit NBuffers and some related values to INT_MAX / BLCKSZ, to preventTom Lane
arithmetic overflow during initial sizing calculations. This is not water-tight but it should avoid the grossest sorts of failures.
2004-10-16Give the ResourceOwner mechanism full responsibility for releasing bufferTom Lane
pins at end of transaction, and reduce AtEOXact_Buffers to an Assert cross-check that this was done correctly. When not USE_ASSERT_CHECKING, AtEOXact_Buffers is a complete no-op. This gets rid of an O(NBuffers) bottleneck during transaction commit/abort, which recent testing has shown becomes significant above a few tens of thousands of shared buffers.
2004-10-16Remove BufferLocks[] array in favor of a single pointer to the bufferTom Lane
(if any) currently waited for by LockBufferForCleanup(), which is all that we were using it for anymore. Saves some space and eliminates proportional-to-NBuffers slowdown in UnlockBuffers().
2004-10-16Fix Cygwin using of pg_ctl by not usig START.Bruce Momjian
Reini Urban
2004-10-16Export only required symbols in libpq on Win32.Bruce Momjian
Magnus Hagander
2004-10-16Allow pg_ctl to determine the server is up when getting a request for aBruce Momjian
password. Make password error message a #define and use it consistently. Sean Chittenden
2004-10-15Repair possible failure to update hint bits back to disk, perTom Lane
http://archives.postgresql.org/pgsql-hackers/2004-10/msg00464.php. This fix is intended to be permanent: it moves the responsibility for calling SetBufferCommitInfoNeedsSave() into the tqual.c routines, eliminating the requirement for callers to test whether t_infomask changed. Also, tighten validity checking on buffer IDs in bufmgr.c --- several routines were paranoid about out-of-range shared buffer numbers but not about out-of-range local ones, which seems a tad pointless.
2004-10-15The previous build rules caused each binary to be re-linked on everyBruce Momjian
"make", even if nothing had changed. With this patch, it's only relinked if it's actually updated. //Magnus PS. Yes, the old buildrule for the .rc file is still needed, as it's used by pgevent.rc (or any other binary in the future that would need it's own .rc file) Magnus Hagander
2004-10-15I have attached 5 patches (split up for ease of review) to plperl.c.Bruce Momjian
1. Two minor cleanups: - We don't need to call hv_exists+hv_fetch; we should just check the return value of hv_fetch. - newSVpv("undef",0) is the string "undef", not a real undef. 2. This should fix the bug Andrew Dunstan described in a recent -hackers post. It replaces three bogus "eval_pv(key, 0)" calls with newSVpv, and eliminates another redundant hv_exists+hv_fetch pair. 3. plperl_build_tuple_argument builds up a string of Perl code to create a hash representing the tuple. This patch creates the hash directly. 4. Another minor cleanup: replace a couple of av_store()s with av_push. 5. Analogous to #3 for plperl_trigger_build_args. This patch removes the static sv_add_tuple_value function, which does much the same as two other utility functions defined later, and merges the functionality into plperl_hash_from_tuple. I have tested the patches to the best of my limited ability, but I would appreciate it very much if someone else could review and test them too. (Thanks to Andrew and David Fetter for their help with some testing.) Abhijit Menon-Sen
2004-10-15Have log_duration only output when log_statement has printed the query.Bruce Momjian
This handles the new multiple log_statement values. Ed L.
2004-10-15> This lets you do something like:Bruce Momjian
> > ./configure LDFLAGS=-static-libgcc LDFLAGS_SL=-static-libgcc > > to produce binaries that do not depend on libgcc_s.so at all. Oliver Jowett
2004-10-15Allow psql booleans to use OFF or off.Bruce Momjian
Michael Paesold
2004-10-15Fix pg_ctl -D handling for Win32:Bruce Momjian
C:\msys\1.0\home\y-asaba>pg_ctl -D data restart waiting for postmaster to shut down...LOG: received smart shutdown request. LOG: shutting down LOG: database system is shut down done postmaster stopped postmaster starting C:\msys\1.0\home\y-asaba>postmaster.exe: invalid argument: "'-D'" Try "postmaster.exe --help" for more information. Yoshiyuki Asaba
2004-10-15Add full path in error report for version mismatch of binaries.Bruce Momjian
2004-10-15psql code cleanup:Neil Conway
- refactor a bunch of code to call a separate function print_msg() which checks whether "silent mode" is enabled before printing an error message. - rename "silence_mode" to "silent_mode", which IMHO makes more sense - make the error messages we emit in "waiting" mode more consistent; I believe this fixes a recent error message regression
2004-10-14Add 'int' cast for getpid() because some Solaris releases return longBruce Momjian
for getpid().
2004-10-13pg_restore wording improvement, per Peter.Bruce Momjian
2004-10-13Enable service use by Cygwin of pg_ctl.Bruce Momjian
2004-10-13Allow compiles for Cygwin /contrib modules.Bruce Momjian
Reini Urban
2004-10-13Enable static lib builds on Win32 and Cygwin.Bruce Momjian
2004-10-13More minor cosmetic improvements:Neil Conway
- remove another senseless "extern" keyword that was applied to a function definition - change a foo more function signatures from "some_type foo()" to "some_type foo(void)" - rewrite another K&R style function definition - make the type of the "action" function pointer in the KeyWord struct in src/backend/utils/adt/formatting.c more precise
2004-10-13Unbreak regression tests (Peter's recent checkin to executor/spi.c didNeil Conway
not update some error message text).
2004-10-13Clarify pg_restore --help wording.Bruce Momjian
2004-10-12Update Cygwin build to not use DLLINIT, per Cygwin report from ReiniBruce Momjian
Urban
2004-10-12Message style revisionsPeter Eisentraut
2004-10-12New translationPeter Eisentraut
2004-10-12Translation updatesPeter Eisentraut
2004-10-12Translation updatePeter Eisentraut
2004-10-12plpgsql EXIT construct forgot to downcase or quote-strip its identifierTom Lane
argument, leading to label matching failures at run-time. Per report from Patrick Fiche. Also, fix it so that an unrecognized label argument draws a more useful error message than 'syntax error'.
2004-10-12Fix vpath build break, induced by Bruce's recent commit.Neil Conway
2004-10-12Fix a copy-and-paste error: give a distinct memory context a distinctNeil Conway
name, mainly for debugging purposes.
2004-10-12Add some pg_config_path.h dependencies for places that includeBruce Momjian
pg_config_paths.h outside of /src/port.
2004-10-11Use -fPIC not -fpic for BSDen on Sparc. Also switch fromTom Lane
$(LD) -x -Bshareable to $(CC) -shared on OpenBSD (I suspect this should be carried over to the other two as well, but will refrain pending suggestions from people who actually use those platforms). Per Stefan Kaltenbrunner.
2004-10-11Fix OR-index-scan planner to recognize that a partial index is usableTom Lane
for scanning one term of an OR clause if the index's predicate is implied by that same OR clause term (possibly in conjunction with top-level WHERE clauses). Per recent example from Dawid Kuroczko, http://archives.postgresql.org/pgsql-performance/2004-10/msg00095.php Also, fix a very long-standing bug in index predicate testing, namely the bizarre ordering of decomposition of predicate and restriction clauses. AFAICS the correct way is to break down the predicate all the way, and then for each component term see if you can prove it from the entire restriction set. The original coding had a purely-implementation-artifact distinction between ANDing at the top level and ANDing below that, and proceeded to get the decomposition order wrong everywhere below the top level, with the result that even slightly complicated AND/OR predicates could not be proven. For instance, given create index foop on foo(f2) where f1=42 or f1=1 or (f1 = 11 and f2 = 55); the old code would fail to match this index to the query select * from foo where f1 = 11 and f2 = 55; when it obviously ought to match.
2004-10-11Use native Cygwin symlinks so tablespaces work on Win95/98/ME whichBruce Momjian
don't support junction points. Doesn't affect native Win32.
2004-10-11Another try at making plpython autoconfiguration work correctly. Use aTom Lane
-L spec rather than assuming libpython is in the standard search path (this returns to the way 7.4 did it). But check the distutils output to see if it looks like Python has built a shared library, and if so link with that instead of the probably-not-shared library found in configdir.
2004-10-11Fix pg_indexes view so that it shows the index's tablespace not theTom Lane
parent table's tablespace, as per gripe from Michael Kleiser. Choose a more plausible column order for this view and pg_tables. Update documentation of these views, which was missed in original patch.
2004-10-11Fix typo in comment.Neil Conway
2004-10-10Cosmetic improvements/code cleanup:Neil Conway
- replace some function signatures of the form "some_type foo()" with "some_type foo(void)" - replace a few instances of a literal 0 being used as a NULL pointer; there are more instances of this in the code, but I just fixed a few - in src/backend/utils/mb/wstrncmp.c, replace K&R style function declarations with ANSI style, remove use of 'register' keyword - remove an "extern" modifier that was applied to a function definition (rather than a declaration)