Commit Graph

  • a702159158 Add casts to suppress warnings about m68k-specific kluge in fmgr.c. Tom Lane 2007-07-13 02:25:48 +00:00
  • 04b54876b6 Fix a portability bug (ye olde not casting a <ctype.h> argument to unsigned char). Fortunately we still have buildfarm machines that will flag this. Seems to be new in CVS HEAD, so no backpatch. Tom Lane 2007-07-12 23:51:10 +00:00
  • 6bc12a4aca Get dirmod.c on the same page as port.h about whether we use pgsymlink on Cygwin (answer: we don't). Also try to unwind the #ifdef spaghetti a little bit. Untested but hopefully I didn't break anything. Tom Lane 2007-07-12 23:28:49 +00:00
  • ad44c95825 Fixup the indentation of a comment that was mangled by pgindent, and add dashes to the start/end of the comment block to try to prevent this happening in the future. Neil Conway 2007-07-12 23:25:26 +00:00
  • 4f09b55dc3 Simplify overly-cute array coding to avoid an apparent gcc bug, which may or may not be harmless. Report from Stefan, patch from Heikki. Tom Lane 2007-07-12 23:10:57 +00:00
  • 4bbb7f9469 Suppress Sun Studio warnings, per Stefan. Tom Lane 2007-07-12 21:27:09 +00:00
  • 4dbbef2845 Suppress an integer-overflow warning. Tom Lane 2007-07-12 21:17:09 +00:00
  • 292e4c6190 Some of our port-specific dynloader implementations are careful to define pg_dlsym() as returning a PGFunction pointer, not just any pointer-to-function. But many are not. Suppress compiler warnings on platforms that aren't careful by inserting explicit casts at the two call sites that didn't have a cast already. Per Stefan. Tom Lane 2007-07-12 21:13:27 +00:00
  • 706754c16b Compute max and min int8 values using unsigned arithmetic, in hopes of suppressing Sun Studio compiler warnings. Per Stefan. Tom Lane 2007-07-12 21:04:45 +00:00
  • 72c7badbab Fix some warnings (probably actual bugs) generated by new GSSAPI code when built on a 64-bit machine. Per buildfarm results extracted by Stefan. Tom Lane 2007-07-12 20:36:11 +00:00
  • c1ac3df734 Fix mistaken Assert in adjust_appendrel_attr_needed, per Greg Stark. Tom Lane 2007-07-12 18:27:09 +00:00
  • bc8d164d06 Fix mistaken Assert in adjust_appendrel_attr_needed, per Greg Stark. Tom Lane 2007-07-12 18:27:01 +00:00
  • 017f2d2f18 Silence compile warning on win32, per Stefan and Buildfarm. Magnus Hagander 2007-07-12 18:15:52 +00:00
  • 784fd04940 Enable GSSAPI to build using MSVC. Always build GSSAPI when Kerberos is enabled, because the only Kerberos library supported always contains it. Magnus Hagander 2007-07-12 14:43:21 +00:00
  • 65a513c249 Support GSSAPI builds where the header is <gssapi.h> and not <gssapi/gssapi.h>, such as OpenBSD (possibly all Heimdal). Magnus Hagander 2007-07-12 14:36:52 +00:00
  • c7cca1c8f7 Fix freenig of names in Kerberos when using MIT - need to use the free function provided in the Kerberos library. This fixes a very hard to track down heap corruption on windows when using debug runtimes. Magnus Hagander 2007-07-12 14:13:06 +00:00
  • 6771994058 Fix freenig of names in Kerberos when using MIT - need to use the free function provided in the Kerberos library. This fixes a very hard to track down heap corruption on windows when using debug runtimes. Magnus Hagander 2007-07-12 14:10:39 +00:00
  • 05c4d8f783 Suppress a warning that some versions of gcc emit about %x in strftime. Per suggestion from Alvaro. Tom Lane 2007-07-11 23:15:38 +00:00
  • 31013db0a1 A bunch of GSSAPI fixes per comments from Tom: Magnus Hagander 2007-07-11 08:27:33 +00:00
  • bf75e2a3c7 Add note that building from CVS requires bison and flex, whereas building from a distribution tarball does not. Tom Lane 2007-07-10 23:03:18 +00:00
  • e27a8df1bf Fix misspelling. Tom Lane 2007-07-10 16:41:01 +00:00
  • 6160106c74 Add support for GSSAPI authentication. Magnus Hagander 2007-07-10 13:14:22 +00:00
  • ff481ca0d4 Adjust processSQLNamePattern() so that $ within the pattern is always matched literally, whether quoted or not. Since we allow $ as a character within identifiers, this behavior is useful, whereas the previous behavior of treating it as the regexp ending anchor was nearly useless given that the pattern is automatically anchored anyway. This affects the arguments of psql's \d commands as well as pg_dump's -n and -t switches. Per discussion. Tom Lane 2007-07-10 00:21:31 +00:00
  • 3df98a9e2f Fix stddev_pop(numeric) and var_pop(numeric), which were incorrectly producing the same outputs as stddev_samp() and var_samp() respectively. Tom Lane 2007-07-09 16:14:06 +00:00
  • 6244c2dfff Fix stddev_pop(numeric) and var_pop(numeric), which were incorrectly producing the same outputs as stddev_samp() and var_samp() respectively. Tom Lane 2007-07-09 16:13:57 +00:00
  • a776eaea3c Restrict non-superusers to password authenticated connections to prevent possible escalation of privilege. Provide new SECURITY DEFINER functions with old behavior, but initially REVOKE ALL from public for these functions. Per list discussion and design proposed by Tom Lane. Joe Conway 2007-07-09 01:44:11 +00:00
  • 62ca8db433 Restrict non-superusers to password authenticated connections to prevent possible escalation of privilege. Provide new SECURITY DEFINER functions with old behavior, but initially REVOKE ALL from public for these functions. Per list discussion and design proposed by Tom Lane. Joe Conway 2007-07-09 01:43:57 +00:00
  • 9b5efb80ce Restrict non-superusers to password authenticated connections to prevent possible escalation of privilege. Provide new SECURITY DEFINER functions with old behavior, but initially REVOKE ALL from public for these functions. Per list discussion and design proposed by Tom Lane. Joe Conway 2007-07-09 01:32:58 +00:00
  • 7ff65db8b0 Restrict non-superusers to password authenticated connections to prevent possible escalation of privilege. Provide new SECURITY DEFINER functions with old behavior, but initially REVOKE ALL from public for these functions. Per list discussion and design proposed by Tom Lane. Joe Conway 2007-07-09 01:32:44 +00:00
  • 809b38ce27 Restrict non-superusers to password authenticated connections to prevent possible escalation of privilege. Provide new SECURITY DEFINER functions with old behavior, but initially REVOKE ALL from public for these functions. Per list discussion and design proposed by Tom Lane. Joe Conway 2007-07-09 01:32:30 +00:00
  • 9e09e3b15e Fix single-user mode so that interrupts (particularly SIGTERM and SIGQUIT) will be recognized and processed while waiting for input, rather than only after something has been typed. Also make SIGQUIT do the same thing as SIGTERM in single-user mode, ie, do a normal shutdown and exit. Since it's relatively easy to provoke SIGQUIT from the keyboard, people may try that instead of control-D, and we'd rather this leads to orderly shutdown. Per report from Leon Mergen and subsequent discussion. Tom Lane 2007-07-09 01:15:14 +00:00
  • 9b619679a8 Minor copy-editing. Tom Lane 2007-07-09 01:08:09 +00:00
  • 4ceaf35ff3 Remove the pgstat_drop_relation() call from smgr_internal_unlink(), because we don't know at that point which relation OID to tell pgstat to forget. The code was passing the relfilenode, which is incorrect, and could possibly cause some other relation's stats to be zeroed out. While we could try to clean this up, it seems much simpler and more reliable to let the next invocation of pgstat_vacuum_tabstat() fix things; which indeed is how it worked before I introduced the buggy code into 8.1.3 and later :-(. Problem noticed by Itagaki Takahiro, fix is per subsequent discussion. Tom Lane 2007-07-08 22:23:32 +00:00
  • 18e47a572c Remove the pgstat_drop_relation() call from smgr_internal_unlink(), because we don't know at that point which relation OID to tell pgstat to forget. The code was passing the relfilenode, which is incorrect, and could possibly cause some other relation's stats to be zeroed out. While we could try to clean this up, it seems much simpler and more reliable to let the next invocation of pgstat_vacuum_tabstat() fix things; which indeed is how it worked before I introduced the buggy code into 8.1.3 and later :-(. Problem noticed by Itagaki Takahiro, fix is per subsequent discussion. Tom Lane 2007-07-08 22:23:25 +00:00
  • b09cb0cf12 Remove the pgstat_drop_relation() call from smgr_internal_unlink(), because we don't know at that point which relation OID to tell pgstat to forget. The code was passing the relfilenode, which is incorrect, and could possibly cause some other relation's stats to be zeroed out. While we could try to clean this up, it seems much simpler and more reliable to let the next invocation of pgstat_vacuum_tabstat() fix things; which indeed is how it worked before I introduced the buggy code into 8.1.3 and later :-(. Problem noticed by Itagaki Takahiro, fix is per subsequent discussion. Tom Lane 2007-07-08 22:23:16 +00:00
  • 8331c11f3f Get rid of client-code dependencies on the exact text of the no-password error message, by using PQconnectionUsedPassword() instead. Someday we might be able to localize that error message, but not until this coding technique has disappeared everywhere. Tom Lane 2007-07-08 19:07:38 +00:00
  • 5f7b1f8d9d Closer code review for PQconnectionUsedPassword() patch: in particular, not OK to include postgres_fe.h into libpq-fe.h, hence declare it as returning int not bool. Tom Lane 2007-07-08 18:28:56 +00:00
  • 3f33d7bcb6 Fix broken markup. Tom Lane 2007-07-08 17:47:38 +00:00
  • d92583f88e Restrict non-superusers to password authenticated connections to prevent possible escalation of privilege. Provide new SECURITY DEFINER functions with old behavior, but initially REVOKE ALL from public for these functions. Per list discussion and design proposed by Tom Lane. A different approach will be used for back-branches, committed separately. Joe Conway 2007-07-08 17:12:38 +00:00
  • 51bc3dfe4b Arrange for the authentication request type to be preserved in PGconn. Invent a new libpq connection-status function, PQconnectionUsedPassword() that returns true if the server demanded a password during authentication, false otherwise. This may be useful to clients in general, but is immediately useful to help plug a privilege escalation path in dblink. Per list discussion and design proposed by Tom Lane. Joe Conway 2007-07-08 17:11:51 +00:00
  • 8c69d881ce Remove TODO.detail/win32intr, no longer needed. Bruce Momjian 2007-07-08 00:42:07 +00:00
  • 5b67de17ee Remove, per Magnus: Bruce Momjian 2007-07-08 00:41:11 +00:00
  • 48d9d8e131 Fix a couple of planner bugs introduced by the new ability to discard ORDER BY <constant> as redundant. One is that this means query_planner() has to canonicalize pathkeys even when the query jointree is empty; the canonicalization was always a no-op in such cases before, but no more. Also, we have to guard against thinking that a set-returning function is "constant" for this purpose. Add a couple of regression tests for these evidently under-tested cases. Per report from Greg Stark and subsequent experimentation. Tom Lane 2007-07-07 20:46:45 +00:00
  • d5eaa637ce Move parse.h into src/backend on msvc, which is where it is on Unix. Fixes builds from tarballs where the file is pre-generated. Magnus Hagander 2007-07-07 07:43:21 +00:00
  • 9fbcf6625e Changed new \usleep command into \sleep with an optional time unit argument to specify us, ms or s. As per suggestion by Peter E. Jan Wieck 2007-07-06 20:17:02 +00:00
  • 0f17da9b3e Added a new scripting meta command Jan Wieck 2007-07-06 13:36:55 +00:00
  • 7af3a6fc6f Fix up hash functions for datetime datatypes so that they don't take unwarranted liberties with int8 vs float8 values for these types. Specifically, be sure to apply either hashint8 or hashfloat8 depending on HAVE_INT64_TIMESTAMP. Per my gripe of even date. Tom Lane 2007-07-06 04:16:00 +00:00
  • ad9a99c24f Improve description of SPI_scroll_cursor_move's return values, per a gripe by Pavel Stehule awhile ago. Tom Lane 2007-07-05 19:15:12 +00:00
  • 83aaebba63 Fix incorrect comment about the timing of AbsorbFsyncRequests() during checkpoint. The comment claimed that we could do this anytime after setting the checkpoint REDO point, but actually BufferSync is relying on the assumption that buffers dumped by other backends will be fsync'd too. So we really could not do it any sooner than we are doing it. Tom Lane 2007-07-03 14:51:24 +00:00
  • a55898131e Add ALTER VIEW ... RENAME TO, and a RENAME TO clause to ALTER SEQUENCE. Sequences and views could previously be renamed using ALTER TABLE, but this was a repeated source of confusion for users. Update the docs, and psql tab completion. Patch from David Fetter; various minor fixes by myself. Neil Conway 2007-07-03 01:30:37 +00:00
  • 2f2c67f574 - Fix the -w (wait) option to work in Windows service mode, per bug #3382. - Prevent the -w option being passed to the postmaster. - Read the postmaster options file when starting as a Windows service. Magnus Hagander 2007-07-02 21:58:38 +00:00
  • a1587e41ae - Fix the -w (wait) option to work in Windows service mode, per bug #3382. - Prevent the -w option being passed to the postmaster. - Read the postmaster options file when starting as a Windows service. Magnus Hagander 2007-07-02 21:58:31 +00:00
  • 7ca6422075 Fix failure to restart Postgres when Linux kernel returns EIDRM for shmctl(). Tom Lane 2007-07-02 20:12:26 +00:00
  • 2a01e31443 Fix failure to restart Postgres when Linux kernel returns EIDRM for shmctl(). Tom Lane 2007-07-02 20:12:21 +00:00
  • 54faed3bc5 Fix failure to restart Postgres when Linux kernel returns EIDRM for shmctl(). Tom Lane 2007-07-02 20:12:11 +00:00
  • 5d798ba82f Fix failure to restart Postgres when Linux kernel returns EIDRM for shmctl(). Tom Lane 2007-07-02 20:12:05 +00:00
  • 4ece8fd17e Fix failure to restart Postgres when Linux kernel returns EIDRM for shmctl(). Tom Lane 2007-07-02 20:12:00 +00:00
  • 1c7fe33fdb Fix failure to restart Postgres when Linux kernel returns EIDRM for shmctl(). Tom Lane 2007-07-02 20:11:55 +00:00
  • 454333a687 Add notes about configuring Visual Studio Express for use with the Platform SDK. Magnus Hagander 2007-07-01 18:40:37 +00:00
  • bce7bacdf2 Reduce the maximum sleep interval in the autovac launcher to 1 second, so that it responds to SIGQUIT reasonably promptly even on machines where SA_RESTART signals restart a sleep from scratch. (This whole area could stand some rethinking, but for now make it work like the other processes do.) Also some marginal stylistic cleanups. Tom Lane 2007-07-01 18:30:54 +00:00
  • 421d50273f Treat the autovac launcher more like a regular backend, in that we wait for it to die before telling the bgwriter to initiate shutdown checkpoint. Since it's connected to shared memory, this seems more prudent than the alternative of letting it quit asynchronously. Resolves my complaint of yesterday about repeated shutdown checkpoints in CVS HEAD. Tom Lane 2007-07-01 18:28:41 +00:00
  • b60765944d Avoid memory leakage when a series of subtransactions invoke AFTER triggers that are fired at end-of-statement (as is the normal case for foreign keys, for example). In this situation the per-subxact deferred trigger context is always empty when subtransaction exit is reached; so we could free it, but were not doing so, leading to an intratransaction leak of 8K or more per subtransaction. Per off-list example from Viatcheslav Kalinin subsequent to bug #3418 (his original bug report omitted a foreign key constraint needed to cause this leak). Tom Lane 2007-07-01 17:45:49 +00:00
  • 8f55b9a8ba Avoid memory leakage when a series of subtransactions invoke AFTER triggers that are fired at end-of-statement (as is the normal case for foreign keys, for example). In this situation the per-subxact deferred trigger context is always empty when subtransaction exit is reached; so we could free it, but were not doing so, leading to an intratransaction leak of 8K or more per subtransaction. Per off-list example from Viatcheslav Kalinin subsequent to bug #3418 (his original bug report omitted a foreign key constraint needed to cause this leak). Tom Lane 2007-07-01 17:45:42 +00:00
  • beba73763b Fix comments not updated in recent patch. Tom Lane 2007-07-01 02:22:23 +00:00
  • 070907b241 Add 'volatile' to suppress 'variable might be clobbered by longjmp' warning emitted by some versions of gcc. Tom Lane 2007-07-01 02:20:59 +00:00
  • 9fc25c0511 Improve logging of checkpoints. Patch by Greg Smith, worked over by Heikki and a little bit by me. Tom Lane 2007-06-30 19:12:02 +00:00
  • 2910ccefb4 Avoid crash in interrupted autovacuum worker, caused by leaving the current memory context pointing at a context not long lived enough. Alvaro Herrera 2007-06-30 04:08:05 +00:00
  • 10af02b912 Arrange for SIGINT in autovacuum workers to cancel the current table and continue with the schedule. Change current uses of SIGINT to abort a worker into SIGTERM, which keeps the old behaviour of terminating the process. Alvaro Herrera 2007-06-29 17:07:39 +00:00
  • f6eafabc6e Fix computation of PG_VERSION_NUM by configure: remove unnecessary and unportable backslashes in awk script (per Patrick Welche), and add brackets to prevent autoconf from mangling sed's regexp (the sed call here never did what was expected). Tom Lane 2007-06-29 16:18:52 +00:00
  • c786796d0a Fix computation of PG_VERSION_NUM by configure: remove unnecessary and unportable backslashes in awk script (per Patrick Welche), and add brackets to prevent autoconf from mangling sed's regexp (the sed call here never did what was expected). Tom Lane 2007-06-29 16:18:43 +00:00
  • 4303c0fdbf Add a note that pg_start_backup will take awhile because of new distributed checkpoint behavior. Explain how to work around this by issuing a manual CHECKPOINT command. Per discussion with Heikki. Tom Lane 2007-06-29 15:46:21 +00:00
  • 175c3b853a Fix a passel of ancient bugs in to_char(), including two distinct buffer overruns (neither of which seem likely to be exploitable as security holes, fortunately, since the provoker can't control the data written). One of these is due to choosing to stomp on the output of a called function, which is bad news in any case; make it treat the called functions' results as read-only. Avoid some unnecessary palloc/pfree traffic too; it's not really helpful to free small temporary objects, and again this is presuming more than it ought to about the nature of the results of called functions. Per report from Patrick Welche and additional code-reading by Imad. Tom Lane 2007-06-29 01:52:21 +00:00
  • 4412d390fd Fix a passel of ancient bugs in to_char(), including two distinct buffer overruns (neither of which seem likely to be exploitable as security holes, fortunately, since the provoker can't control the data written). One of these is due to choosing to stomp on the output of a called function, which is bad news in any case; make it treat the called functions' results as read-only. Avoid some unnecessary palloc/pfree traffic too; it's not really helpful to free small temporary objects, and again this is presuming more than it ought to about the nature of the results of called functions. Per report from Patrick Welche and additional code-reading by Imad. Tom Lane 2007-06-29 01:52:14 +00:00
  • 2f5c37e94a Fix a passel of ancient bugs in to_char(), including two distinct buffer overruns (neither of which seem likely to be exploitable as security holes, fortunately, since the provoker can't control the data written). One of these is due to choosing to stomp on the output of a called function, which is bad news in any case; make it treat the called functions' results as read-only. Avoid some unnecessary palloc/pfree traffic too; it's not really helpful to free small temporary objects, and again this is presuming more than it ought to about the nature of the results of called functions. Per report from Patrick Welche and additional code-reading by Imad. Tom Lane 2007-06-29 01:52:04 +00:00
  • 2fc2402566 Fix a passel of ancient bugs in to_char(), including two distinct buffer overruns (neither of which seem likely to be exploitable as security holes, fortunately, since the provoker can't control the data written). One of these is due to choosing to stomp on the output of a called function, which is bad news in any case; make it treat the called functions' results as read-only. Avoid some unnecessary palloc/pfree traffic too; it's not really helpful to free small temporary objects, and again this is presuming more than it ought to about the nature of the results of called functions. Per report from Patrick Welche and additional code-reading by Imad. Tom Lane 2007-06-29 01:51:56 +00:00
  • e75311d10b Fix a passel of ancient bugs in to_char(), including two distinct buffer overruns (neither of which seem likely to be exploitable as security holes, fortunately, since the provoker can't control the data written). One of these is due to choosing to stomp on the output of a called function, which is bad news in any case; make it treat the called functions' results as read-only. Avoid some unnecessary palloc/pfree traffic too; it's not really helpful to free small temporary objects, and again this is presuming more than it ought to about the nature of the results of called functions. Per report from Patrick Welche and additional code-reading by Imad. Tom Lane 2007-06-29 01:51:49 +00:00
  • 6faf795662 Fix a passel of ancient bugs in to_char(), including two distinct buffer overruns (neither of which seem likely to be exploitable as security holes, fortunately, since the provoker can't control the data written). One of these is due to choosing to stomp on the output of a called function, which is bad news in any case; make it treat the called functions' results as read-only. Avoid some unnecessary palloc/pfree traffic too; it's not really helpful to free small temporary objects, and again this is presuming more than it ought to about the nature of the results of called functions. Per report from Patrick Welche and additional code-reading by Imad. Tom Lane 2007-06-29 01:51:35 +00:00
  • 700eabbe69 Done: Bruce Momjian 2007-06-28 21:55:00 +00:00
  • 71db4c703f Fix incorrect tests for undef Perl values in some places in plperl.c. The correct test for defined-ness is SvOK(sv), not anything involving SvTYPE. Per bug #3415 from Matt Taylor. Back-patch as far as 8.0; no apparent problem in 7.x. Tom Lane 2007-06-28 17:50:24 +00:00
  • ed368c1b8e Fix incorrect tests for undef Perl values in some places in plperl.c. The correct test for defined-ness is SvOK(sv), not anything involving SvTYPE. Per bug #3415 from Matt Taylor. Back-patch as far as 8.0; no apparent problem in 7.x. Tom Lane 2007-06-28 17:50:17 +00:00
  • 973e33dae7 Fix incorrect tests for undef Perl values in some places in plperl.c. The correct test for defined-ness is SvOK(sv), not anything involving SvTYPE. Per bug #3415 from Matt Taylor. Back-patch as far as 8.0; no apparent problem in 7.x. Tom Lane 2007-06-28 17:50:12 +00:00
  • 3cabc675ab Fix incorrect tests for undef Perl values in some places in plperl.c. The correct test for defined-ness is SvOK(sv), not anything involving SvTYPE. Per bug #3415 from Matt Taylor. Back-patch as far as 8.0; no apparent problem in 7.x. Tom Lane 2007-06-28 17:49:59 +00:00
  • 7c07b136bc Add the function's volatility to the output of psql's \df+ command. Update the psql reference page accordingly. Neil Conway 2007-06-28 06:40:16 +00:00
  • 867e2c91a0 Implement "distributed" checkpoints in which the checkpoint I/O is spread over a fairly long period of time, rather than being spat out in a burst. This happens only for background checkpoints carried out by the bgwriter; other cases, such as a shutdown checkpoint, are still done at full speed. Tom Lane 2007-06-28 00:02:40 +00:00
  • b09c248bdd Fix PGXS conventions so that extensions can be built against Postgres installations whose pg_config program does not appear first in the PATH. Per gripe from Eddie Stanley and subsequent discussions with Fabien Coelho and others. Tom Lane 2007-06-26 22:05:04 +00:00
  • 80f3b5ad2e Remove unused "caller" argument from stringToQualifiedNameList. Alvaro Herrera 2007-06-26 16:48:09 +00:00
  • d1eaa42fd5 Add extra checks for buildfarm to pick up errors when running on XP or earlier versions of Windows. Magnus Hagander 2007-06-26 11:43:56 +00:00
  • a03e8ad266 Remove unused BAD_LOCATION definition. Alvaro Herrera 2007-06-25 17:12:07 +00:00
  • bae0b56880 Improve autovacuum launcher's ability to detect a problem in worker startup, by having the postmaster signal it when certain failures occur. This requires the postmaster setting a flag in shared memory, but should be as safe as the pmsignal.c code is. Alvaro Herrera 2007-06-25 16:09:03 +00:00
  • 46379d6e60 Separate parse-analysis for utility commands out of parser/analyze.c (which now deals only in optimizable statements), and put that code into a new file parser/parse_utilcmd.c. This helps clarify and enforce the design rule that utility statements shouldn't be processed during the regular parse analysis phase; all interpretation of their meaning should happen after they are given to ProcessUtility to execute. (We need this because we don't retain any locks for a utility statement that's in a plan cache, nor have any way to detect that it's stale.) Tom Lane 2007-06-23 22:12:52 +00:00
  • ec0bb02db8 Add a <tip> that log_line_prefix should usually end with a space to provide visual separation from the rest of the log line; I've been noticing lately that quite a few newbies fail to figure this out for themselves. Also a little editorial cleanup of the log_line_prefix description. Tom Lane 2007-06-22 16:15:23 +00:00
  • ee9796e448 In psql, when running a SELECT query using a cursor, flush the query output after each FETCH. This ensures that incremental results are available to clients that are executing long-running SELECT queries via the FETCH_COUNT feature. Neil Conway 2007-06-22 03:19:57 +00:00
  • 2128e5c392 In psql, when running a SELECT query using a cursor, flush the query output after each FETCH. This ensures that incremental results are available to clients that are executing long-running SELECT queries via the FETCH_COUNT feature. Neil Conway 2007-06-22 01:09:28 +00:00
  • ba826299e0 Allow trailing whitespace in parse_real(), for consistency with parse_int() and with itself (strtod allows leading whitespace, so it seems odd not to allow trailing whitespace). parse_bool remains not-whitespace-friendly, but this is generically true for non-numeric GUC variables, so I'll desist from changing it. Tom Lane 2007-06-21 22:59:12 +00:00
  • aa55d05571 Provide a HINT listing the allowed unit names when a GUC variable seems to contain a wrong unit specification, per discussion. In passing, fix the code to avoid unnecessary integer overflows when converting units, and to detect overflows when they do occur. Tom Lane 2007-06-21 18:14:21 +00:00
  • 9f6aacd9e6 Update password example. Peter Eisentraut 2007-06-21 12:20:10 +00:00
  • 8ddb046bc9 Update examples of create/drop scripts. Peter Eisentraut 2007-06-21 10:43:09 +00:00
  • 4c2d3ccf8a Add a caveat pointing out that constraint exclusion doesn't work with constraints the planner is unable to disprove, hence simple btree-compatible conditions should be used. We've seen people try to get cute with stuff like date_part(something) = something at least twice now. Even if we wanted to try to teach predtest.c about the properties of date_part, most of the useful variants aren't immutable so nothing could be proved. Tom Lane 2007-06-20 23:11:38 +00:00
  • 8f3d07764f Remove some empty columns from a few system catalog tables in the SGML docs. Neil Conway 2007-06-20 19:24:05 +00:00
  • 6f0072df77 Restrict deadlock_timeout to the range for which the implementation actually works sanely, viz not 0 and not more than INT_MAX/1000 (else TimestampTzPlusMilliseconds can overflow). Per discussion with Greg Stark. Since this is a superuser-only setting and there was not previously any big reason to change it, not worth back-patching. Tom Lane 2007-06-20 18:31:39 +00:00