Commit Graph

  • b6038484f8 Fix memory clobber problem reported by John Hansen: plperl_safe_init() may expand the Perl stack, therefore we must SPAGAIN to reload the local stack pointer after calling it. Also a couple other marginal readability improvements. Tom Lane 2004-11-18 21:35:42 +00:00
  • da1c19aa57 Whoops, missed converting the other sleep() call to pg_usleep(). Tom Lane 2004-11-18 17:13:38 +00:00
  • 050a0074c2 Translation update Peter Eisentraut 2004-11-18 10:09:59 +00:00
  • bd677bb443 Back-patch fix for ALTER DATABASE failing to flush pg_database changes to disk right away. This is just a one-liner change rather than trying to use FlushRelationBuffers(). Tom Lane 2004-11-18 01:19:57 +00:00
  • a007dd1d21 Back-patch fix for ALTER DATABASE failing to flush pg_database changes to disk right away. This is just a one-liner change rather than trying to use FlushRelationBuffers(). Tom Lane 2004-11-18 01:19:40 +00:00
  • b2a2f4cef7 Force pg_database updates out to disk immediately after ALTER DATABASE; this is to avoid scenarios where incoming backends find no live copies of a database's row because the only live copy is in an as-yet-unwritten shared buffer, which they can't see. Also, use FlushRelationBuffers() for forcing out pg_database, instead of the much more expensive BufferSync(). There's no need to write out pages belonging to other relations. Tom Lane 2004-11-18 01:14:26 +00:00
  • c36496a101 Include <getopt.h> if available, to avoid warnings on Windows. Tom Lane 2004-11-17 21:37:47 +00:00
  • c87ddbafe4 Rename vacuum_cost_limit switch from -N to -l to avoid conflict with existing Windows-only switch. Tom Lane 2004-11-17 21:30:36 +00:00
  • 1c1f2f5b96 Remove ill-considered suppression of gcc warnings in plperl, and fix some of the bugs exposed thereby. The remaining 'might be used uninitialized' warnings look like live bugs, but I am not familiar enough with Perl/C hacking to tell how to fix them. Tom Lane 2004-11-17 21:23:36 +00:00
  • eac07f1fd7 Fix off-by-one memory allocation, as reported by Rod Taylor. Also avoid repalloc'ing twice when once is sufficient. Tom Lane 2004-11-17 19:54:53 +00:00
  • aed7855dd8 Fix off-by-one memory allocation, as reported by Rod Taylor. Also avoid repalloc'ing twice when once is sufficient. Tom Lane 2004-11-17 19:54:34 +00:00
  • edcaa8f691 Fix off-by-one memory allocation, as reported by Rod Taylor. Also avoid repalloc'ing twice when once is sufficient. Tom Lane 2004-11-17 19:54:24 +00:00
  • 6444bc3535 Set DEFAULT_EDITOR to notepad.exe on Windows, as per recent discussion. Tom Lane 2004-11-17 18:32:31 +00:00
  • b9d8ea278b Some further editorial adjustment of PITR recovery procedure description. Tom Lane 2004-11-17 18:29:02 +00:00
  • 4a6fd46950 Force LANG=en on Windows, since system may fail to default to English. Tom Lane 2004-11-17 18:06:04 +00:00
  • 98640c3130 Add installcheck-parallel regression test target. Magnus Hagander Tom Lane 2004-11-17 18:05:06 +00:00
  • 77fe4fd656 Use pg_usleep() not sleep(), per Andrew Dunstan. Tom Lane 2004-11-17 17:50:20 +00:00
  • 5d72ef83fd Miscellaneous Cygwin build fixes from Reini Urban. Tom Lane 2004-11-17 17:46:24 +00:00
  • ede8f4e311 Add variant regression file to support BSDen that underflow to plus zero instead of minus zero. Per Andrew Dunstan. Tom Lane 2004-11-17 17:25:32 +00:00
  • e5f7a9f404 Install include/port header files, and fix PGXS build to use them. Fabien COELHO Tom Lane 2004-11-17 17:16:17 +00:00
  • 86b5545260 Adjust SHLIB_LINK for cygwin case. Reini Urban Tom Lane 2004-11-17 17:08:15 +00:00
  • c47fc6d050 Add options to pg_autovacuum to support setting the cost-based-vacuum parameters differently from their default values. Matthew T. O'Connor Tom Lane 2004-11-17 16:54:15 +00:00
  • 18b58350db Be sure length limit passed to snprintf matches what malloc was given. Just paranoia ... Tom Lane 2004-11-17 16:34:42 +00:00
  • 37d693033d Minor adjustment of message style. Tom Lane 2004-11-17 16:26:59 +00:00
  • 2fa36d7e41 Win32 build cleanups, from Andrew Dunstan. Neil Conway 2004-11-17 08:30:11 +00:00
  • ffe130f52e Remove debugging printf from #ifdef WIN32 section. Neil Conway 2004-11-17 04:05:42 +00:00
  • 5d1dd2bc55 Micro-optimization of markpos() and restrpos() in btree and hash indexes. Rather than using ReadBuffer() to increment the reference count on an already-pinned buffer, we should use IncrBufferRefCount() as it is faster and does not require acquiring the BufMgrLock. Neil Conway 2004-11-17 03:13:38 +00:00
  • a51e54cf5b Document a limitation of COPY's new CSV mode. Doc patch from Andrew Dunstan, editorializing by Neil Conway. Neil Conway 2004-11-17 02:50:06 +00:00
  • b25d23e1e6 Don't allow pg_start_backup() to be invoked if archive_command has not been defined. Patch from Gavin Sherry, editorializing by Neil Conway. Neil Conway 2004-11-17 02:22:54 +00:00
  • b990232c5d Backpatch fix from HEAD: Neil Conway 2004-11-17 00:18:26 +00:00
  • 0021ae06be Fix Win32 problems with signals and sockets, by making the forkexec code even uglier than it was already :-(. Also, on Windows only, use temporary shared memory segments instead of ordinary files to pass over critical variable values from postmaster to child processes. Magnus Hagander Tom Lane 2004-11-17 00:14:14 +00:00
  • e1bf6527f6 Prevent a backend crash when processing CREATE TABLE commands with more than 65K columns, or when the created table has more than 65K columns due to adding inherited columns from parent relations. Fix a similar crash when processing SELECT queries with more than 65K target list entries. In all three cases we would eventually detect the error and elog, but the check was being made too late. Neil Conway 2004-11-16 23:34:26 +00:00
  • 8a1821ab5b Translation update Peter Eisentraut 2004-11-16 22:58:44 +00:00
  • a2e1b146fe Translation update Peter Eisentraut 2004-11-16 22:49:24 +00:00
  • 4a0bee976c Adjust safety restrictions for plperl functions. Andrew Dunstan's patch, but allow srand and disallow sprintf as per subsequent discussion. Tom Lane 2004-11-16 22:05:22 +00:00
  • bb85f1b9b1 Suppress duplicate rules for lib$(NAME).a on WIN32 and Cygwin. Andrew Dunstan Tom Lane 2004-11-16 21:51:13 +00:00
  • 6beb6fa495 Use dynamically-sized buffers in pgwin32_is_service(). Magnus Hagander Tom Lane 2004-11-16 19:52:22 +00:00
  • 7efa8411cc Rethink plpgsql's way of handling SPI execution during an exception block. We don't really want to start a new SPI connection, just keep using the old one; otherwise we have memory management problems as illustrated by John Kennedy's bug report of today. This requires a bit of a hack to ensure the SPI stack state is properly restored, but then again what we were doing before was a hack too, strictly speaking. Add a regression test to cover this case. Tom Lane 2004-11-16 18:10:16 +00:00
  • 2bb3bcfcf9 Trivial wording improvement. Tom Lane 2004-11-16 15:00:36 +00:00
  • 23185085b9 Add index entries for all GUC configuration parameters. Neil Conway 2004-11-16 05:33:14 +00:00
  • 3d1e269e7e Don't quote the value of EDITOR on Unix, only on Windows. Per discussion. Tom Lane 2004-11-15 23:15:12 +00:00
  • ec7a6bd9a2 Replace "--" and "---" with "&mdash;" as appropriate, for better-looking output. Neil Conway 2004-11-15 06:32:15 +00:00
  • db1531f6d8 Fix typo, other minor improvements. Neil Conway 2004-11-15 04:35:57 +00:00
  • f6474586ea Use English-style quotes in error messages, per Serguei Mokhov. Tom Lane 2004-11-14 23:36:53 +00:00
  • 3c1a8661eb Remove replicaiton FAQ item. Bruce Momjian 2004-11-14 21:33:10 +00:00
  • ea23ec82c2 Remove GUC USERLIMIT variable category, making the affected variables plain SUSET instead. Also delay processing of options received in client connection request until after we know if the user is a superuser, so that SUSET values can be set that way by legitimate superusers. Per recent discussion. Tom Lane 2004-11-14 19:35:35 +00:00
  • 1c7a47cea4 Improvements to the PITR docs. Initial patch from Gavin Sherry, additional improvements by Neil Conway. Neil Conway 2004-11-14 06:10:12 +00:00
  • a236dd9536 There is no need for ReadBuffer() call sites to check that the returned buffer is valid, as ReadBuffer() will elog on error. Most of the call sites of ReadBuffer() got this right, but this patch fixes those call sites that did not. Neil Conway 2004-11-14 02:04:14 +00:00
  • 1c5125adf3 Not entirely sure when this broke, but libpq's VC++ build is currently lacking pqsignal which is now required. This was found and fixed for VC++ by Shachar Shemesh, I simply duplicated the fix for the Borland makefile (untested, as I don't have that compiler). Bruce Momjian 2004-11-13 03:18:50 +00:00
  • 3c57e0b93f Update: Bruce Momjian 2004-11-12 23:26:37 +00:00
  • cf956d512d Remove now-redundant description of Postgres file layout, in favor of referencing the Database File Layout chapter I just added to the main documentation. Tom Lane 2004-11-12 21:55:01 +00:00
  • 7f4b5a003b Add some real documentation about the overall filesystem layout used by a Postgres database. Update page.sgml to match 8.0 tuple header layout. Tom Lane 2004-11-12 21:50:53 +00:00
  • c7866f6645 Fix obsolete comments. Tom Lane 2004-11-12 20:08:40 +00:00
  • 1b87c3f77a Add: Bruce Momjian 2004-11-12 18:12:12 +00:00
  • 03b12ef987 > I think in addition the system global name "sharemem.1" should be made more > pg specific, like "PostgreSQL.1". I have not done this since a new compile > would not detect a running old beta. But now would be the time (or never). Bruce Momjian 2004-11-12 17:59:42 +00:00
  • 5666485aa8 Remember to close the file on failure (pretty much redundant, really, since this path will lead to postmaster exit anyway...) Tom Lane 2004-11-12 00:08:23 +00:00
  • 664f93ce18 Un-break custom_variable_classes kluge ... mea culpa. Tom Lane 2004-11-11 23:45:13 +00:00
  • fc402fdf2d pg_restore --help improvements, from Tom Lane: Bruce Momjian 2004-11-11 17:06:46 +00:00
  • 85eda8e7d4 Cleanup: Bruce Momjian 2004-11-11 04:36:55 +00:00
  • b4cd3b3829 Fix a handful of typos in the release notes introduced by Bruce's recent commit. Per Gavin Sherry. Neil Conway 2004-11-11 04:11:07 +00:00
  • 6cd67c931a Cleaups: Bruce Momjian 2004-11-11 03:59:14 +00:00
  • 4d0f669f3c Remove obsolete comment from btbuild() and hashbuild(): we no longer use a global variable to control building indexes. Neil Conway 2004-11-11 00:32:50 +00:00
  • 5bf218d2eb Add character set declaration to HTML files, so they have a chance to validate and display correctly. Peter Eisentraut 2004-11-10 23:01:47 +00:00
  • 979a530dde Fix some spacing problems. Peter Eisentraut 2004-11-10 21:54:23 +00:00
  • 45ecebc415 Add SGML markup to 8.0 release notes. Bruce Momjian 2004-11-10 21:43:50 +00:00
  • 143d152b1f List VALUE as a keyword. Michael Meskes 2004-11-10 13:49:17 +00:00
  • 67e1ae9b03 List VALUE as a keyword. Michael Meskes 2004-11-10 13:48:10 +00:00
  • 1688848204 Fix sgml markup tags. Bruce Momjian 2004-11-10 06:13:12 +00:00
  • a3704c6cb1 Update release notes to match CVS. Bruce Momjian 2004-11-10 06:09:59 +00:00
  • 883fbbe04c Done: Bruce Momjian 2004-11-10 05:47:07 +00:00
  • 242fca7591 Remove performance TODO.detail. In TODO. Bruce Momjian 2004-11-10 02:48:59 +00:00
  • 056d7e3a18 Add bitmap info: Bruce Momjian 2004-11-10 02:48:41 +00:00
  • 9a633cbb6c Allow planner to fold "stable" functions to constants when forming selectivity estimates, per recent discussion. Tom Lane 2004-11-09 21:42:53 +00:00
  • 8f6278d907 Put in place some defenses against being fooled by accidental match of shared memory segment ID. If we can't access the existing shmem segment, it must not be relevant to our data directory. If we can access it, then attach to it and check for an actual match to the data directory. This should avoid some cases of failure-to-restart-after-boot without introducing any significant risk of failing to detect a still-running old backend. Tom Lane 2004-11-09 21:30:18 +00:00
  • 176bb0812f In PGSharedMemoryIsInUse, assume that EACCES indicates a shmem segment that is of no concern to us --- it must belong to a different userid, which means it is not a Postgres shmem segment (or at least, not one that is relevant to our data directory). I plan a more extensive fix in HEAD, but this is a simple change that prevents failure-to-reboot problems for single-postmaster installations. Tom Lane 2004-11-09 20:35:16 +00:00
  • 58825b8cd6 Add: Bruce Momjian 2004-11-09 16:50:59 +00:00
  • e9c05281b5 Get rid of perror(), substitute some better phrased error messages. malloc() doesn't set errno, so most uses were buggy anyway. Peter Eisentraut 2004-11-09 15:57:57 +00:00
  • 960f545041 Update bitmap index description: Bruce Momjian 2004-11-09 15:11:11 +00:00
  • 1813d94664 Translation updates Peter Eisentraut 2004-11-09 14:46:37 +00:00
  • 7d8578a0c2 Clarify some strings Peter Eisentraut 2004-11-09 14:39:44 +00:00
  • ea182a9ef4 Translation update Peter Eisentraut 2004-11-09 14:38:48 +00:00
  • 3c093ff151 Clarify some error messages Peter Eisentraut 2004-11-09 13:01:27 +00:00
  • 5c398e6e70 Translation update Peter Eisentraut 2004-11-09 13:00:05 +00:00
  • f5ef59cf9c Delete the `remove-old-headers' target, as it is no longer useful. Patch from Alvaro Herrera. Neil Conway 2004-11-09 06:23:50 +00:00
  • 1b3e769682 This patch makes some cleanups to contrib/ to silence some sparse warnings: Neil Conway 2004-11-09 06:09:40 +00:00
  • 53ee0729b2 Fix typo: Bruce Momjian 2004-11-09 04:14:07 +00:00
  • 8dd602e41e Update mmap details: Bruce Momjian 2004-11-09 03:57:42 +00:00
  • d9ab482abb Remove mmap TODO.detail, now in TODO. Bruce Momjian 2004-11-09 03:57:16 +00:00
  • 3341052ef3 Remove inheritance, already in TODO. Bruce Momjian 2004-11-09 03:01:48 +00:00
  • 547bb4a7f2 Use a hopefully-more-reliable method of detecting default selectivity estimates when combining the estimates for a range query. As pointed out by Miquel van Smoorenburg, the existing check for an impossible combined result would quite possibly fail to detect one default and one non-default input. It seems better to use the default range query estimate in such cases. To do so, add a check for an estimate of exactly DEFAULT_INEQ_SEL. This is a bit ugly because it introduces additional coupling between clauselist_selectivity and scalarltsel/scalargtsel, but it's not like there wasn't plenty already... Tom Lane 2004-11-09 00:34:46 +00:00
  • e4387116da Remove fadvise TODO.detail. Merged into TODO. Bruce Momjian 2004-11-08 20:16:43 +00:00
  • 916897cce7 Update: Bruce Momjian 2004-11-08 20:16:20 +00:00
  • cd6ecf6829 Recommend that archive_command be coded to not overwrite existing files. Add explicit documentation of the recovery configuration settings. Other minor improvements in the PITR docs. Simon Riggs, some editorialization by Tom Lane. Tom Lane 2004-11-08 18:01:28 +00:00
  • 9d95cdcb07 Update workding on why we use is_absolute_path() as a macro. Bruce Momjian 2004-11-08 16:34:23 +00:00
  • 4b3a2d854c Use correct function name in example Peter Eisentraut 2004-11-08 15:57:05 +00:00
  • 6c0dd4479f Remove count TODO.detail now that info is in TODO. Bruce Momjian 2004-11-08 15:35:52 +00:00
  • 4e706f523d Remove count TODO.detail. Bruce Momjian 2004-11-08 15:32:40 +00:00
  • 6144047fe8 Remove atttypmod TODO.detail and merge into TODO list. Bruce Momjian 2004-11-08 15:19:31 +00:00
  • c70bdf0228 Update item description: Bruce Momjian 2004-11-08 15:18:16 +00:00
  • 4126c1ca15 Remove view TODO.detail. Bruce Momjian 2004-11-08 14:55:05 +00:00