Commit Graph

  • cc6a90e4af Remove dllist.c from libpq. It's overkill for what libpq needs; we can 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. Tom Lane 2004-10-16 22:52:55 +00:00
  • b3d58ea7ec Include dllist.c directly instead of assuming that libpq will provide it. Whack some semblance of project-conventions-conformance into pg_autovacuum.h. Tom Lane 2004-10-16 21:50:02 +00:00
  • dc19aaa12f Give a more user-friendly error message in case where a table is created in a schema whose default tablespace has been dropped. Tom Lane 2004-10-16 21:16:36 +00:00
  • 2a63c1602d Generate the various .def files for libpq DLLs from a single list of 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. Tom Lane 2004-10-16 20:10:57 +00:00
  • f68d05d5ec Limit NBuffers and some related values to INT_MAX / BLCKSZ, to prevent arithmetic overflow during initial sizing calculations. This is not water-tight but it should avoid the grossest sorts of failures. Tom Lane 2004-10-16 19:08:38 +00:00
  • fdd13f1568 Give the ResourceOwner mechanism full responsibility for releasing buffer 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. Tom Lane 2004-10-16 18:57:26 +00:00
  • 1c2de47746 Remove BufferLocks[] array in favor of a single pointer to the buffer (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(). Tom Lane 2004-10-16 18:05:07 +00:00
  • 72f9013741 Fix Cygwin using of pg_ctl by not usig START. Bruce Momjian 2004-10-16 03:32:08 +00:00
  • c7add816f5 Export only required symbols in libpq on Win32. Bruce Momjian 2004-10-16 03:26:43 +00:00
  • 88fd162ef6 Allow pg_ctl to determine the server is up when getting a request for a password. Bruce Momjian 2004-10-16 03:10:17 +00:00
  • 9ffc8ed58b Repair possible failure to update hint bits back to disk, per 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. Tom Lane 2004-10-15 22:40:29 +00:00
  • db9e2fd0a9 The previous build rules caused each binary to be re-linked on every "make", even if nothing had changed. With this patch, it's only relinked if it's actually updated. Bruce Momjian 2004-10-15 17:10:58 +00:00
  • ce1c20248d I have attached 5 patches (split up for ease of review) to plperl.c. Bruce Momjian 2004-10-15 17:08:26 +00:00
  • bdb8b394c4 This patch clarifies the usage of references in PL/Perl :) Bruce Momjian 2004-10-15 16:51:48 +00:00
  • a1ce88a59c Have log_duration only output when log_statement has printed the query. This handles the new multiple log_statement values. Bruce Momjian 2004-10-15 16:50:31 +00:00
  • c96c02c7af Update wording. Bruce Momjian 2004-10-15 16:27:07 +00:00
  • d55491f578 Update heading of Cygwin FAQ to be Cygwin-specific. Bruce Momjian 2004-10-15 16:18:35 +00:00
  • 7bcbc0488e New wording on the three standards. Bruce Momjian 2004-10-15 16:10:31 +00:00
  • 4d94e99b90 > This lets you do something like: > > ./configure LDFLAGS=-static-libgcc LDFLAGS_SL=-static-libgcc > > to produce binaries that do not depend on libgcc_s.so at all. Bruce Momjian 2004-10-15 05:11:00 +00:00
  • 063216ef3d Allow psql booleans to use OFF or off. Bruce Momjian 2004-10-15 05:02:31 +00:00
  • 8613eac6c4 Fix pg_ctl -D handling for Win32: Bruce Momjian 2004-10-15 04:54:33 +00:00
  • a49f6ad014 Add full path in error report for version mismatch of binaries. Bruce Momjian 2004-10-15 04:32:28 +00:00
  • 8ff374ce91 psql code cleanup: Neil Conway 2004-10-15 01:36:12 +00:00
  • aa0d4726c3 Update mingw faq. Bruce Momjian 2004-10-14 22:30:30 +00:00
  • 293a27193e Update Win32 fAQ. Bruce Momjian 2004-10-14 22:24:53 +00:00
  • 19d97fb3fd Add: Bruce Momjian 2004-10-14 22:17:57 +00:00
  • d8bff009d1 Typo cleanup. Bruce Momjian 2004-10-14 21:47:15 +00:00
  • b595d0c514 Update standards names. Bruce Momjian 2004-10-14 21:46:18 +00:00
  • 282c581ca1 Update 2003 as an official standard. Bruce Momjian 2004-10-14 21:39:15 +00:00
  • 5c267325ec Add 'int' cast for getpid() because some Solaris releases return long for getpid(). Bruce Momjian 2004-10-14 20:23:46 +00:00
  • 130972b4e2 Add: Bruce Momjian 2004-10-14 19:26:40 +00:00
  • 44692d8d10 Add "draft". Bruce Momjian 2004-10-14 19:15:02 +00:00
  • 43338f3f56 Reorder links. Bruce Momjian 2004-10-14 19:13:12 +00:00
  • cd352ac61f More URL updates. Bruce Momjian 2004-10-14 19:10:30 +00:00
  • fe021557a3 Update markup. Bruce Momjian 2004-10-14 19:08:39 +00:00
  • bd94b931c9 New urls. Bruce Momjian 2004-10-14 19:07:57 +00:00
  • 8e09264f84 Working improvement. Bruce Momjian 2004-10-14 19:04:19 +00:00
  • ba49fbc183 Fix markup. Bruce Momjian 2004-10-14 19:02:08 +00:00
  • d645fdaf71 Add standards URL's. Bruce Momjian 2004-10-14 19:00:42 +00:00
  • 6b3d751747 Repair possible failure to update hint bits back to disk, per http://archives.postgresql.org/pgsql-hackers/2004-10/msg00464.php. I plan a more permanent fix in HEAD, but for the back branches it seems best to just touch the places that actually have a problem. Tom Lane 2004-10-13 22:22:41 +00:00
  • 78c0692b15 Repair possible failure to update hint bits back to disk, per http://archives.postgresql.org/pgsql-hackers/2004-10/msg00464.php. I plan a more permanent fix in HEAD, but for the back branches it seems best to just touch the places that actually have a problem. Tom Lane 2004-10-13 22:22:22 +00:00
  • 2d46f0e613 Repair possible failure to update hint bits back to disk, per http://archives.postgresql.org/pgsql-hackers/2004-10/msg00464.php. I plan a more permanent fix in HEAD, but for the back branches it seems best to just touch the places that actually have a problem. Tom Lane 2004-10-13 22:22:03 +00:00
  • 1af623c861 Remove stray semicolons in old ecpg preproc grammar ... modern bison versions won't compile it at all with those there. Probably of only academic interest now, but ... github/REL7_1_STABLE REL7_1_STABLE Tom Lane 2004-10-13 22:09:20 +00:00
  • 199fb54b61 Fix breakage in hashjoin from recent backpatch of left-join bug fix. (That's what I get for not testing the back branches *before* committing.) Tom Lane 2004-10-13 21:56:22 +00:00
  • 7b0919047f Fix breakage in hashjoin from recent backpatch of left-join bug fix. (That's what I get for not testing the back branches *before* committing.) Tom Lane 2004-10-13 21:56:14 +00:00
  • 8a9b331c32 Fix breakage in hashjoin from recent backpatch of left-join bug fix. (That's what I get for not testing the back branches *before* committing.) Tom Lane 2004-10-13 21:56:06 +00:00
  • e92b007715 pg_restore wording improvement, per Peter. Bruce Momjian 2004-10-13 14:24:16 +00:00
  • c55de22d94 Enable service use by Cygwin of pg_ctl. Bruce Momjian 2004-10-13 10:35:05 +00:00
  • 4855d7ebe4 Allow compiles for Cygwin /contrib modules. Bruce Momjian 2004-10-13 10:20:04 +00:00
  • ae1703d897 Enable static lib builds on Win32 and Cygwin. Bruce Momjian 2004-10-13 09:51:47 +00:00
  • 04a1a24e9c Cleanup some unnecessary void * casts when using pfree() in contrib/xml and contrib/xml2 Neil Conway 2004-10-13 01:26:42 +00:00
  • 7069dbcc31 More minor cosmetic improvements: Neil Conway 2004-10-13 01:25:13 +00:00
  • 1da2bccabb Unbreak regression tests (Peter's recent checkin to executor/spi.c did not update some error message text). Neil Conway 2004-10-13 01:22:31 +00:00
  • b8c06a6645 Add: Bruce Momjian 2004-10-13 01:03:11 +00:00
  • 90542f556b Clarify pg_restore --help wording. Bruce Momjian 2004-10-13 00:42:53 +00:00
  • bac78bbac6 Update Cygwin build to not use DLLINIT, per Cygwin report from Reini Urban Bruce Momjian 2004-10-12 22:20:17 +00:00
  • 0fd37839d9 Message style revisions Peter Eisentraut 2004-10-12 21:54:45 +00:00
  • 8532a1aabe New translation Peter Eisentraut 2004-10-12 18:10:16 +00:00
  • 893094415b Translation updates Peter Eisentraut 2004-10-12 18:01:20 +00:00
  • 7656e55639 Translation update Peter Eisentraut 2004-10-12 17:57:14 +00:00
  • 2dc3a1d2a7 Translation update Peter Eisentraut 2004-10-12 17:54:24 +00:00
  • a323bce2e7 plpgsql EXIT construct forgot to downcase or quote-strip its identifier 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'. Tom Lane 2004-10-12 15:44:15 +00:00
  • 0b112045b7 Fix vpath build break, induced by Bruce's recent commit. Neil Conway 2004-10-12 04:48:36 +00:00
  • d709964779 Fix a copy-and-paste error: give a distinct memory context a distinct name, mainly for debugging purposes. Neil Conway 2004-10-12 01:50:04 +00:00
  • 1bef379d08 Update reference to pgsql-server. Tom Lane 2004-10-12 01:49:48 +00:00
  • 29e7dc420a Add some pg_config_path.h dependencies for places that include pg_config_paths.h outside of /src/port. Bruce Momjian 2004-10-12 01:04:11 +00:00
  • d10a406fe8 Use -fPIC not -fpic for BSDen on Sparc. Also switch from $(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. Tom Lane 2004-10-11 23:27:23 +00:00
  • 26112850ec Fix OR-index-scan planner to recognize that a partial index is usable 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. Tom Lane 2004-10-11 22:57:00 +00:00
  • c0c4883be3 Use native Cygwin symlinks so tablespaces work on Win95/98/ME which don't support junction points. Doesn't affect native Win32. Bruce Momjian 2004-10-11 22:50:48 +00:00
  • 669ca7af83 Another try at making plpython autoconfiguration work correctly. Use a -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. Tom Lane 2004-10-11 19:32:19 +00:00
  • e5d30091e6 Fix pg_indexes view so that it shows the index's tablespace not the 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. Tom Lane 2004-10-11 17:24:41 +00:00
  • 5340a988c8 Fix typo in comment. Neil Conway 2004-10-11 02:02:41 +00:00
  • 0e72b9d440 Cosmetic improvements/code cleanup: Neil Conway 2004-10-10 23:37:45 +00:00
  • 86a39d5a19 Un-break plpython build for non-Windows platforms. Tom Lane 2004-10-10 19:07:55 +00:00
  • ea12f8e6a3 Remove gratuitous editorialization on rpath. Tom Lane 2004-10-10 16:13:03 +00:00
  • 337ffcddba Adjust configuration-files GUC behavior as per my recent proposal. The vars are renamed to data_directory, config_file, hba_file, and ident_file, and are guaranteed to be set to accurate absolute paths during postmaster startup. This commit does not yet do anything about hiding path values from non-superusers. Tom Lane 2004-10-09 23:13:22 +00:00
  • 0d069c53c3 Translation improvement Peter Eisentraut 2004-10-09 17:41:17 +00:00
  • 6c77feed3a Add win32 version information for pg_config Makefile. Bruce Momjian 2004-10-09 03:57:39 +00:00
  • 67608a393b Make getpid() use %d consistently for printing. Bruce Momjian 2004-10-09 02:46:42 +00:00
  • b3723aeb1f Add: Bruce Momjian 2004-10-09 01:29:01 +00:00
  • abc1d28ba7 Suppress timezone output on log_line_prefix %t on Win32, because it is too long. Bruce Momjian 2004-10-09 01:24:47 +00:00
  • d157f4c26a Add newline. Bruce Momjian 2004-10-09 00:33:28 +00:00
  • e95130e882 Add MinGW FAQ. Bruce Momjian 2004-10-08 16:52:38 +00:00
  • 1c24bf9096 Move Win32 TODO items to main TODO list: < > * Win32 > o Remove per-backend parameter file and move into shared memory? > o Remove configure.in check for link failure when cause is found > o Remove readdir() errno patch when runtime/mingwex/dirent.c rev > 1.4 is released > o Remove psql newline patch when we find out why mingw outputs an > extra newline > o Allow psql to use readline once non-US code pages work with > backslashes Bruce Momjian 2004-10-08 16:28:32 +00:00
  • fa9cabd66e Rename FAQ_MSWIN to FAQ_CYGWIN. Bruce Momjian 2004-10-08 15:58:21 +00:00
  • 07ccbeb360 Include schema name in pg_restore -l output, per request from Phil Endecott. Tom Lane 2004-10-08 15:03:26 +00:00
  • 9bf6effd8e Another minor tweak to psql startup: set the default values for the PROMPT1, PROMPT2 and PROMPT3 variables before we read any of the settings specified via the user on the command-line or in psqlrc, so that the latter can override the former. Per original patch from Ingo van Lil, simpler fix suggested by Tom Lane. Neil Conway 2004-10-08 11:24:19 +00:00
  • 79a831e50a Tweak HPUX shared-library build flags, per Shinji Teragaito. Tom Lane 2004-10-08 04:22:59 +00:00
  • 8a657808b0 Update CIDR regresion tests to test for network masks inside the last byte being tested, to catch any future breakage. Bruce Momjian 2004-10-08 01:45:37 +00:00
  • 7ca3a0f3e2 Whack some sense into the configuration-file-location patch. Refactor code into something reasonably understandable, cause use of the feature to not fail in standalone backends or in EXEC_BACKEND case, fix sloppy guc.c table entries, make the documentation minimally usable. Tom Lane 2004-10-08 01:36:36 +00:00
  • f4f6caa9b0 Do proper testing of CIDR bits against network mask, e.g. don't allow: Bruce Momjian 2004-10-08 01:10:31 +00:00
  • 050beacc6e Pull comment down into its own paragraph. Bruce Momjian 2004-10-08 00:44:07 +00:00
  • c4c3428914 Add: Bruce Momjian 2004-10-08 00:36:23 +00:00
  • b577fe1d56 Remove benchmark comment. Bruce Momjian 2004-10-07 22:51:13 +00:00
  • 4b10271037 Change get_rule_expr so that when the input is a List, it displays the list elements comma-separated instead of barfing. This allows elimination of half a dozen redundant copies of that behavior, and also makes the world safe again for pg_get_expr() applied to pg_index.indexprs, per gripe from Alexander Zhiltsov. Tom Lane 2004-10-07 20:36:52 +00:00
  • 05c561eec8 Remove mention of -Q option for bench. Bruce Momjian 2004-10-07 19:37:16 +00:00
  • 59bf879f12 Move -DPLPERL_HAVE_UID_GID to the plperl Makefile, for Win32 only. Bruce Momjian 2004-10-07 19:01:09 +00:00
  • 6a640d1e02 Add missing null terminator to escaped string; clean up unnecessarily obscurantist coding conventions. Tom Lane 2004-10-07 18:57:26 +00:00
  • 0c657baa7f Add PLperl workaround for Win32 to the *.xs file. Bruce Momjian 2004-10-07 18:57:18 +00:00
  • a8487e15ed Fix problems with SQL functions returning rowtypes that have dropped columns. The returned tuple needs to have appropriate NULL columns inserted so that it actually matches the declared rowtype. It seemed convenient to use a JunkFilter for this, so I made some cleanups and simplifications in the JunkFilter code to allow it to support this additional functionality. (That in turn exposed a latent bug in nodeAppend.c, which is that it was returning a tuple slot whose descriptor didn't match its data.) Also, move check_sql_fn_retval out of pg_proc.c and into functions.c, where it seems to more naturally belong. Tom Lane 2004-10-07 18:38:51 +00:00