]> granicus.if.org Git - postgresql/log
postgresql
22 years agofixed problem where information from previous updates was leaking into subsequent...
Dave Cramer [Tue, 25 Mar 2003 02:23:10 +0000 (02:23 +0000)]
fixed problem where information from previous updates was leaking into subsequent updates patch from Shawn Green, slightly modified

22 years agoadded DISTINCT to the query to get cross reference. This is required when two columns...
Dave Cramer [Tue, 25 Mar 2003 02:01:19 +0000 (02:01 +0000)]
added DISTINCT to the query to get cross reference. This is required when two columns in a table are both foreign keys to another table. From Peter Royal proyal@pace2020.com

22 years agofixed problem where information from previous updates was leaking into subsequent...
Dave Cramer [Tue, 25 Mar 2003 01:57:03 +0000 (01:57 +0000)]
fixed problem where information from previous updates was leaking into subsequent updates patch from Shawn Green

22 years agoNew build number
Barry Lind [Mon, 24 Mar 2003 04:01:38 +0000 (04:01 +0000)]
New build number

22 years agoBackport fix for parsing acls (didn't correctly interpret null acl to mean
Barry Lind [Mon, 24 Mar 2003 03:49:49 +0000 (03:49 +0000)]
Backport fix for parsing acls (didn't correctly interpret null acl to mean
table owner has privs)
 Modified Files:
  Tag: REL7_3_STABLE
  jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java

22 years agoBand-aid patch for Shraibman's 'out of free buffers' bug: disable the
Tom Lane [Sun, 23 Mar 2003 21:55:14 +0000 (21:55 +0000)]
Band-aid patch for Shraibman's 'out of free buffers' bug: disable the
keys_are_unique optimization introduced in 7.3.  A better fix will
appear in 7.4, but I think back-patching it is too risky for the stable
branch.

22 years agoTweak selectivity and related routines to cope with domains. Per report
Tom Lane [Sun, 23 Mar 2003 01:49:13 +0000 (01:49 +0000)]
Tweak selectivity and related routines to cope with domains.  Per report
from Andreas Pflug.

22 years agoThe attatched patch fixes a memory error with contrib/dbmirror/pending.c
Bruce Momjian [Thu, 20 Mar 2003 03:58:48 +0000 (03:58 +0000)]
The attatched patch fixes a memory error with contrib/dbmirror/pending.c
when running it with older(Pre 7.3.x) versions of Postgresql.

Backpatched to 7.3.X.

Steven Singer

22 years agoBackport patch to work around a server bug. Server incorrectly handles the
Barry Lind [Wed, 19 Mar 2003 04:09:09 +0000 (04:09 +0000)]
Backport patch to work around a server bug.  Server incorrectly handles the
following:  select 1; commit; set autocommit true;
If this is submitted in one call to the server (the select 1 doesn't start a
new transaction like it should), however if the select 1 is sent as a separate
call then it works correctly.

Modified Files:
 Tag: REL7_3_STABLE
jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java

22 years agoApplied translation fixes
Barry Lind [Tue, 18 Mar 2003 05:24:36 +0000 (05:24 +0000)]
Applied translation fixes

 Modified Files:
  Tag: REL7_3_STABLE
  errors_zh_TW.properties

22 years agopg_dumpall failed on groups having no members. Per report from
Tom Lane [Fri, 14 Mar 2003 22:45:56 +0000 (22:45 +0000)]
pg_dumpall failed on groups having no members.  Per report from
Nick Eskelinen.

22 years agoBackport fix for parsing \n in updateable result sets to 7.3 branch
Barry Lind [Fri, 14 Mar 2003 05:38:36 +0000 (05:38 +0000)]
Backport fix for parsing \n in updateable result sets to 7.3 branch

 Modified Files:
  Tag: REL7_3_STABLE
  jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java

22 years agoRepair incorrect prorettype entry for timestamptz_izone. Can't force
Tom Lane [Fri, 14 Mar 2003 04:44:05 +0000 (04:44 +0000)]
Repair incorrect prorettype entry for timestamptz_izone.  Can't force
initdb in the 7.3 branch, but we can at least make it right for people
who install 7.3.3 from scratch.

22 years agoBackport batch update error message improvements to 7.3 branch
Barry Lind [Fri, 14 Mar 2003 01:23:08 +0000 (01:23 +0000)]
Backport batch update error message improvements to 7.3 branch

 Modified Files:
  Tag: REL7_3_STABLE
  jdbc/org/postgresql/errors.properties
  jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
  jdbc/org/postgresql/util/PSQLException.java

22 years agoPrevent infinite loop in ln_var() due to roundoff error.
Tom Lane [Fri, 14 Mar 2003 00:15:41 +0000 (00:15 +0000)]
Prevent infinite loop in ln_var() due to roundoff error.
Per report from Dave Marin.

22 years agoGROUP BY got confused if there were multiple equal() GROUP BY items.
Tom Lane [Thu, 13 Mar 2003 16:58:49 +0000 (16:58 +0000)]
GROUP BY got confused if there were multiple equal() GROUP BY items.
This bug has been latent since 7.0 or maybe even further back, but it
was only exposed when parse_clause.c stopped suppressing duplicate
items (see its rev 1.96 of 18-Aug-02).

22 years agopg_restore failed to restore blobs if -X disable-triggers is specified.
Tom Lane [Sun, 9 Mar 2003 19:38:59 +0000 (19:38 +0000)]
pg_restore failed to restore blobs if -X disable-triggers is specified.

22 years agoBack ported patches from head to 7.3 branch (fixes for NPE in result set absolute...
Barry Lind [Sat, 8 Mar 2003 06:09:37 +0000 (06:09 +0000)]
Back ported patches from head to 7.3 branch (fixes for NPE in result set absolute() and NPE when logging enabled)
 Modified Files:
  Tag: REL7_3_STABLE
  jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
  jdbc/org/postgresql/util/PSQLException.java

22 years agoTweak dependency code to suppress NOTICEs generated by new method for
Tom Lane [Thu, 6 Mar 2003 22:55:03 +0000 (22:55 +0000)]
Tweak dependency code to suppress NOTICEs generated by new method for
cleaning out temp namespaces.  We don't really want the server log to be
cluttered with 'Drop cascades to table foo' every time someone uses a
temp table...

22 years agoAdd missing --globals-only (long form of -g).
Tom Lane [Thu, 6 Mar 2003 21:45:57 +0000 (21:45 +0000)]
Add missing --globals-only (long form of -g).

22 years agoRepair bug reported by Laurent Perez: bad plan generated when UPDATE or
Tom Lane [Wed, 5 Mar 2003 18:38:26 +0000 (18:38 +0000)]
Repair bug reported by Laurent Perez: bad plan generated when UPDATE or
DELETE of an inheritance tree references another inherited relation.
This bug has been latent since 7.1; I'm still not quite sure why 7.1 and
7.2 don't manifest it (at least, they don't crash on a simple test case).

22 years agoPrevent clustering on incomplete indexes: partial indexes are verboten,
Tom Lane [Mon, 3 Mar 2003 04:37:48 +0000 (04:37 +0000)]
Prevent clustering on incomplete indexes: partial indexes are verboten,
as are non-amindexnulls AMs unless first column is attnotnull.

22 years agoRepair memory leak introduced by recent change to make SPI return a
Tom Lane [Sun, 2 Mar 2003 20:45:59 +0000 (20:45 +0000)]
Repair memory leak introduced by recent change to make SPI return a
tupdesc even with zero tuples returned: some plpgsql routines assumed
they didn't need to do SPI_freetuptable() after retrieving no tuples.

22 years agoChange EXTRACT(EPOCH FROM timestamp) so that a timestamp without time zone
Tom Lane [Thu, 27 Feb 2003 21:37:24 +0000 (21:37 +0000)]
Change EXTRACT(EPOCH FROM timestamp) so that a timestamp without time zone
is assumed to be in local time, not GMT.  This improves consistency with
other operations, which all assume local timezone when it matters.  Per
bug #897.

22 years agoBack patch bug fix to quote function.
D'Arcy J.M. Cain [Thu, 27 Feb 2003 10:42:12 +0000 (10:42 +0000)]
Back patch bug fix to quote function.

22 years agoBackport a fix from 7.4 to 7.3 to better handle case in updateable result sets.
Barry Lind [Mon, 24 Feb 2003 16:38:25 +0000 (16:38 +0000)]
Backport a fix from 7.4 to 7.3 to better handle case in updateable result sets.
This backports part of the fix made in version 1.11.

 Modified Files:
  Tag: REL7_3_STABLE
  jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java

22 years agoIf a shutdown request comes in while we're still starting up, don't
Tom Lane [Sun, 23 Feb 2003 04:48:38 +0000 (04:48 +0000)]
If a shutdown request comes in while we're still starting up, don't
service it until after we execute SetThisStartUpID().  Else shutdown
process will write the wrong SUI into the shutdown checkpoint, which
seems likely to be trouble --- although I've not quite figured out
how significant it really is.

22 years agoRepair nasty oversight in bt_split: if the index is temporary, we weren't
Tom Lane [Fri, 21 Feb 2003 18:24:54 +0000 (18:24 +0000)]
Repair nasty oversight in bt_split: if the index is temporary, we weren't
updating the left-link from the split page's right sibling.  This could
result in backwards index scans missing some entries.
Same bug exists in HEAD, will be patched later.

22 years agoFix timestamptz_in so that parsing of 'now'::timestamptz gives right
Tom Lane [Thu, 20 Feb 2003 05:25:25 +0000 (05:25 +0000)]
Fix timestamptz_in so that parsing of 'now'::timestamptz gives right
answer when SET TIMEZONE has been done since the start of the current
transaction.  Per bug report from Robert Haas.
I plan some futher cleanup in HEAD, but this is a low-risk patch for
the immediate issue in 7.3.

22 years agoBack patch for GUC client_encoding variable not being handled
Tatsuo Ishii [Wed, 19 Feb 2003 14:14:58 +0000 (14:14 +0000)]
Back patch for GUC client_encoding variable not being handled
correctly. However the patch for PostgresPollingStatusType() is not
included to avoid 7.3 libpq vs. pre-7.3 backend
compatibility problem. See following thread for more details.

Subject: [HACKERS] client_encoding directive is ignored in postgresql.conf
From: Tatsuo Ishii <t-ishii@sra.co.jp>
Date: Wed, 29 Jan 2003 22:24:04 +0900 (JST)

22 years agoPlease apply patches for contrib/ltree.
Bruce Momjian [Wed, 19 Feb 2003 03:50:49 +0000 (03:50 +0000)]
Please apply patches for contrib/ltree.

ltree_73.patch.gz - for 7.3 :
        Fix ~ operation bug: eg '1.1.1' ~ '*.1'

ltree_74.patch.gz - for current CVS
    Fix ~ operation bug: eg '1.1.1' ~ '*.1'
    Add ? operation
    Optimize index storage

Last change needs drop/create all ltree indexes, so only for 7.4

Teodor Sigaev

22 years agoAsync_NotifyHandler must save and restore ImmediateInterruptOK. Fixes
Tom Lane [Tue, 18 Feb 2003 02:53:46 +0000 (02:53 +0000)]
Async_NotifyHandler must save and restore ImmediateInterruptOK.  Fixes
known problem with failure to respond to 'pg_ctl stop -m fast', and
probable problems if SIGINT or SIGTERM arrives while processing a
SIGUSR2 interrupt that arrived while waiting for a new client query.

22 years agoFix SPI result logic for case where there are multiple statements of the
Tom Lane [Fri, 14 Feb 2003 21:12:54 +0000 (21:12 +0000)]
Fix SPI result logic for case where there are multiple statements of the
same type in a rule.  Per bug report from Pavel Hanak.

22 years agoUpdate FAQ's in head and 7.3.X.
Bruce Momjian [Fri, 14 Feb 2003 14:05:52 +0000 (14:05 +0000)]
Update FAQ's in head and 7.3.X.

22 years agoRepair incorrect indexing for atttypmod, per Brad McLean.
Tom Lane [Thu, 13 Feb 2003 23:06:19 +0000 (23:06 +0000)]
Repair incorrect indexing for atttypmod, per Brad McLean.

22 years agoResult of lo_read() is int, not size_t. Per Oleg Drokin.
Tom Lane [Thu, 13 Feb 2003 22:56:59 +0000 (22:56 +0000)]
Result of lo_read() is int, not size_t.  Per Oleg Drokin.

22 years agoParser was dropping foreign-key constraints on the floor if present in
Tom Lane [Thu, 13 Feb 2003 22:50:09 +0000 (22:50 +0000)]
Parser was dropping foreign-key constraints on the floor if present in
an ALTER TABLE ADD COLUMN command.  Per bug #896.

22 years agoRepair rule permissions-checking bug reported by Tim Burgess 10-Feb-02:
Tom Lane [Thu, 13 Feb 2003 21:40:00 +0000 (21:40 +0000)]
Repair rule permissions-checking bug reported by Tim Burgess 10-Feb-02:
the table(s) modified by the original query would get checked for the
type of write permission needed by a rule query.

22 years agoPrevent timetz2tm() from scribbling on its input in HAVE_INT64_TIMESTAMP case.
Tom Lane [Thu, 13 Feb 2003 17:04:24 +0000 (17:04 +0000)]
Prevent timetz2tm() from scribbling on its input in HAVE_INT64_TIMESTAMP case.

22 years ago> > They work the same as table constraints with in-line declaration (no
Bruce Momjian [Thu, 13 Feb 2003 05:32:58 +0000 (05:32 +0000)]
> > They work the same as table constraints with in-line declaration (no
> > comma).
>
> OK. But the documentation implies there is a comma, so it should probably
> get chenged then.

Yes, it should. (attached)

[ Backpatched to 7.3.X too.]

Rod Taylor

22 years agoApplied patch to update translation file, submitted by Zhenbang Wei
Barry Lind [Wed, 12 Feb 2003 20:39:53 +0000 (20:39 +0000)]
Applied patch to update translation file, submitted by Zhenbang Wei
Modified Files:
  Tag: REL7_3_STABLE
  jdbc/org/postgresql/errors_zh_TW.properties

22 years agoBackport patch from Fernando Nasser and Harald Krake to fix an invalid datatype problem.
Barry Lind [Wed, 12 Feb 2003 17:14:49 +0000 (17:14 +0000)]
Backport patch from Fernando Nasser and Harald Krake to fix an invalid datatype problem.

 Modified Files:
  Tag: REL7_3_STABLE
  jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java

22 years agoBackport a patch from Kris Jurka to 7.3. Allows getTables() method to work
Barry Lind [Wed, 12 Feb 2003 06:01:02 +0000 (06:01 +0000)]
Backport a patch from Kris Jurka to 7.3.  Allows getTables() method to work
against 7.1 servers.

 Modified Files:
  Tag: REL7_3_STABLE
  jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java

22 years agoUse a varno not chosen at random for dummy variables in the top-level
Tom Lane [Tue, 11 Feb 2003 04:13:39 +0000 (04:13 +0000)]
Use a varno not chosen at random for dummy variables in the top-level
targetlist of a set-operation tree.  I'm not sure that this solution
will really stand the test of time --- perhaps we need to make a special
RTE for such vars to refer to.  But this quick hack fixes Brandon Craig
Rhodes' complaint of 10-Feb-02 about EXCEPT in CREATE RULE, while not
changing any behavior in the better-tested cases where leftmostRTI is
one anyway.

22 years agoup build # to 108
Barry Lind [Sun, 9 Feb 2003 23:43:41 +0000 (23:43 +0000)]
up build # to 108

22 years agoMerge changes from head to 7.3 branch: better error message on character set conversi...
Barry Lind [Sun, 9 Feb 2003 23:41:46 +0000 (23:41 +0000)]
Merge changes from head to 7.3 branch: better error message on character set conversion problems and patch from Kris Jurka for numeric scale
 Modified Files:
  Tag: REL7_3_STABLE
  jdbc/org/postgresql/errors.properties
  jdbc/org/postgresql/core/Encoding.java
  jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java

22 years agoRevise mechanism for getting rid of temp tables at backend shutdown.
Tom Lane [Fri, 7 Feb 2003 01:33:39 +0000 (01:33 +0000)]
Revise mechanism for getting rid of temp tables at backend shutdown.
Instead of grovelling through pg_class to find them, make use of the
handy dandy dependency mechanism: just delete everything that depends
on our temp schema.  Unlike the pg_class scan, the dependency mechanism
is smart enough to delete things in an order that doesn't fall foul of
any dependency restrictions.  Fixes problem reported by David Heggie:
a temp table with a serial column may cause a backend FATAL exit at
shutdown time, if it chances to try to delete the temp sequence first.

22 years agoAvoid generating relid lists with duplicate entries. Fixes bugs
Tom Lane [Fri, 7 Feb 2003 00:02:43 +0000 (00:02 +0000)]
Avoid generating relid lists with duplicate entries.  Fixes bugs
reported by Stefanos Harhalakis 2/2/2003.

22 years agoFix core dump when pltcl_elog is called with wrong number of parameters,
Tom Lane [Thu, 6 Feb 2003 17:02:22 +0000 (17:02 +0000)]
Fix core dump when pltcl_elog is called with wrong number of parameters,
per report from Ian Harding.

22 years agoFix regexp slowness reported by Wade Klaver.
Tatsuo Ishii [Thu, 6 Feb 2003 00:00:24 +0000 (00:00 +0000)]
Fix regexp slowness reported by Wade Klaver.

22 years agoAllow qualified type names in CREATE CAST, DROP CAST. Also allow the
Tom Lane [Wed, 5 Feb 2003 20:16:55 +0000 (20:16 +0000)]
Allow qualified type names in CREATE CAST, DROP CAST.  Also allow the
construction 'SETOF type[]' which for some reason was previously
overlooked (you'd have to name the array type directly to make it work).

22 years agoFix for rollback SQLException from Kris Jurka
Dave Cramer [Tue, 4 Feb 2003 11:16:00 +0000 (11:16 +0000)]
Fix for rollback SQLException from Kris Jurka

22 years agoAdd mention of CURRENT_SCHEMA for object creation. REL7_3_2
Bruce Momjian [Mon, 3 Feb 2003 15:57:03 +0000 (15:57 +0000)]
Add mention of CURRENT_SCHEMA for object creation.

22 years agoBrand 7.3.2.
Tom Lane [Sun, 2 Feb 2003 19:56:46 +0000 (19:56 +0000)]
Brand 7.3.2.

22 years agoUpdate release history for 7.3.2.
Tom Lane [Sun, 2 Feb 2003 19:48:30 +0000 (19:48 +0000)]
Update release history for 7.3.2.

22 years agoFix nodeUnique to behave correctly when reversing direction after reaching
Tom Lane [Sun, 2 Feb 2003 19:09:08 +0000 (19:09 +0000)]
Fix nodeUnique to behave correctly when reversing direction after reaching
either end of subplan results.  This prevents misbehavior of cursors
on SELECT DISTINCT ... queries.  Per bug report 1-Feb-02.

22 years agoRemove restriction that cast functions cannot be volatile. This
Tom Lane [Sat, 1 Feb 2003 22:09:41 +0000 (22:09 +0000)]
Remove restriction that cast functions cannot be volatile.  This
restriction was debatable to begin with, but it has now become obvious
that it breaks forward-porting of user-defined types; contrib/lo being
the most salient example.

22 years agoCleaner solution to the problem of loading pre-7.3 dumps containing
Tom Lane [Sat, 1 Feb 2003 22:07:14 +0000 (22:07 +0000)]
Cleaner solution to the problem of loading pre-7.3 dumps containing
columns of type lo (see contrib/lo).  Rather than hacking the function
definitions on-the-fly, just modify the queries issued by FixupBlobRefs
so that they work even if CREATE CAST hasn't been issued.

22 years agoChanges of 6-Sep-02 broke pg_restore's ability to recognize tar-format
Tom Lane [Sat, 1 Feb 2003 19:29:26 +0000 (19:29 +0000)]
Changes of 6-Sep-02 broke pg_restore's ability to recognize tar-format
files.  Fix it.

22 years agoFix assign_session_authorization() to not be confused by all-numeric
Tom Lane [Sat, 1 Feb 2003 18:31:37 +0000 (18:31 +0000)]
Fix assign_session_authorization() to not be confused by all-numeric
user names.  Per recent reports.

22 years agoPrevent core dump from calling Tcl_DontCallWhenDeleted() with a null
Tom Lane [Sat, 1 Feb 2003 00:22:23 +0000 (00:22 +0000)]
Prevent core dump from calling Tcl_DontCallWhenDeleted() with a null
interp pointer.  Per report from Gerhard Hintermayer.

22 years agoApply ljb's patch to prevent both memory leak and core dump during
Tom Lane [Sat, 1 Feb 2003 00:07:19 +0000 (00:07 +0000)]
Apply ljb's patch to prevent both memory leak and core dump during
connection shutdown.  This is a grotty workaround for a Tcl bug, but
said bug has been there long enough that I'm not holding my breath
for a real fix.  Per discussions and testing from ljb and g.hintermayer.

22 years agoMake plpython's spi_execute interface handle NULLs properly.
Tom Lane [Fri, 31 Jan 2003 22:35:27 +0000 (22:35 +0000)]
Make plpython's spi_execute interface handle NULLs properly.
From Andrew Bosma.

22 years agoClean up plpython error reporting so that its regression test passes
Tom Lane [Fri, 31 Jan 2003 22:25:18 +0000 (22:25 +0000)]
Clean up plpython error reporting so that its regression test passes
with some amount of cleanliness.  I see no need to report the internal
Python name rather than the SQL procedure name in error tracebacks.

22 years agoTweak bison build rules so that we get the same error messages from
Tom Lane [Fri, 31 Jan 2003 20:58:28 +0000 (20:58 +0000)]
Tweak bison build rules so that we get the same error messages from
bison 1.875 and later as we did from earlier bison releases.  Eventually
we will probably want to adopt the newer message spelling ... but not yet.
Per recent discussion on pgpatches.
Note: I didn't change the build rules for bootstrap, ecpg, or plpgsql
grammars, since these do not affect regression test results.

22 years agoHandle mixed-case names properly in plpgsql_parse_tripwordtype.
Tom Lane [Fri, 31 Jan 2003 00:32:00 +0000 (00:32 +0000)]
Handle mixed-case names properly in plpgsql_parse_tripwordtype.
From Neil Conway.

22 years agoFix regression in .pgpass support. From Neil Conway.
Tom Lane [Thu, 30 Jan 2003 19:50:07 +0000 (19:50 +0000)]
Fix regression in .pgpass support.  From Neil Conway.

22 years agoUpdate release history for 7.2.4.
Tom Lane [Wed, 29 Jan 2003 22:13:56 +0000 (22:13 +0000)]
Update release history for 7.2.4.

22 years agoSPI_exec shouldn't return SPI_OK_SELECT if it hasn't actually returned
Tom Lane [Wed, 29 Jan 2003 15:24:57 +0000 (15:24 +0000)]
SPI_exec shouldn't return SPI_OK_SELECT if it hasn't actually returned
a tuple table.  Fixes core dump in pltcl (and probably other PLs) when
executing a query rewritten by a rule.  Per bug report from Wolfgang Walter.

22 years agoRepair array subscript overrun identified by Yichen Xie. Reduce the
Tom Lane [Wed, 29 Jan 2003 01:09:03 +0000 (01:09 +0000)]
Repair array subscript overrun identified by Yichen Xie.  Reduce the
value of MAX_TIME_PRECISION in floating-point-timestamp-storage case
from 13 to 10, which is as much as time_out is actually willing to print.
(The alternative of increasing the number of digits we are willing to
print looks risky; we might find ourselves printing roundoff garbage.)

22 years agoFix array subscript overruns identified by Yichen Xie.
Tom Lane [Wed, 29 Jan 2003 01:01:15 +0000 (01:01 +0000)]
Fix array subscript overruns identified by Yichen Xie.

22 years agoConvert variable name to canonical spelling before checking for matches
Tom Lane [Tue, 28 Jan 2003 18:04:13 +0000 (18:04 +0000)]
Convert variable name to canonical spelling before checking for matches
in GUCArrayAdd/GUCArrayDelete.  This prevents the multiple-entry bug
exhibited by Frank Lupo 28-Jan-2003.

22 years agoRevert off setting mention for client_min_messages.
Bruce Momjian [Tue, 28 Jan 2003 03:44:09 +0000 (03:44 +0000)]
Revert off setting mention for client_min_messages.

Set log_min_error_messages to the proper and agreed-upon default, PANIC
(off).  (BACKPATCH)

22 years agoPrevent core dump when die_horribly() is called with null AH pointer.
Tom Lane [Mon, 27 Jan 2003 00:23:49 +0000 (00:23 +0000)]
Prevent core dump when die_horribly() is called with null AH pointer.
Problem reported and fixed by Oliver Elphick.

22 years agoBack-patch fix for not shell-quoting editor name, as it also fixes
Tom Lane [Fri, 24 Jan 2003 05:23:55 +0000 (05:23 +0000)]
Back-patch fix for not shell-quoting editor name, as it also fixes
silly buffer overrun (someone needs to learn to count characters...)

22 years agoFix obsolete error message (isImmutable doesn't exist).
Tom Lane [Thu, 23 Jan 2003 15:18:50 +0000 (15:18 +0000)]
Fix obsolete error message (isImmutable doesn't exist).

22 years agoChange CREATE TABLE AS / SELECT INTO to create the new table with OIDs,
Tom Lane [Thu, 23 Jan 2003 05:10:57 +0000 (05:10 +0000)]
Change CREATE TABLE AS / SELECT INTO to create the new table with OIDs,
for backwards compatibility with pre-7.3 behavior.  Per discussion on
pgsql-general and pgsql-hackers.

22 years agoUpdate 'Mathematical Functions' table to reflect 7.3 addition of float8
Tom Lane [Thu, 23 Jan 2003 01:23:14 +0000 (01:23 +0000)]
Update 'Mathematical Functions' table to reflect 7.3 addition of float8
forms of ceil(), floor(), sign().  Back-patch this and other recent
doc fixes in this file to the 7.3 branch.

22 years agoMake estimation of mergejoin scan selectivities more robust, per recent
Tom Lane [Wed, 22 Jan 2003 20:17:07 +0000 (20:17 +0000)]
Make estimation of mergejoin scan selectivities more robust, per recent
example from RaÇl GutiÅrrez.

22 years agoFix coredump problem in plpgsql's RETURN NEXT. When a SELECT INTO
Tom Lane [Tue, 21 Jan 2003 22:06:36 +0000 (22:06 +0000)]
Fix coredump problem in plpgsql's RETURN NEXT.  When a SELECT INTO
that's selecting into a RECORD variable returns zero rows, make it
assign an all-nulls row to the RECORD; this is consistent with what
happens when the SELECT INTO target is not a RECORD.  In support of
this, tweak the SPI code so that a valid tuple descriptor is returned
even when a SPI select returns no rows.

22 years agoBack-patch typprtlen fix, two other minor post-7.3 fixes.
Tom Lane [Tue, 21 Jan 2003 19:57:50 +0000 (19:57 +0000)]
Back-patch typprtlen fix, two other minor post-7.3 fixes.

22 years agoFix bogus formatting of DROP DATABASE command, per Christopher Kings-Lynne.
Tom Lane [Thu, 16 Jan 2003 15:28:06 +0000 (15:28 +0000)]
Fix bogus formatting of DROP DATABASE command, per Christopher Kings-Lynne.

22 years agoRepair an embarrassingly large number of alphabetization mistakes in the
Tom Lane [Thu, 16 Jan 2003 00:27:17 +0000 (00:27 +0000)]
Repair an embarrassingly large number of alphabetization mistakes in the
datetime token tables.  Even more embarrassing, the regression tests
revealed some of the problems --- but evidently the bogus output wasn't
questioned.  Add code to postmaster startup to directly check the tables
for correct ordering, in hopes of not being embarrassed like this again.

22 years agoMore comment cleanups for shared_buffers in postgresql.conf.
Bruce Momjian [Wed, 15 Jan 2003 20:50:18 +0000 (20:50 +0000)]
More comment cleanups for shared_buffers in postgresql.conf.

22 years agoUpdate shared_buffer comment in postgresql.conf.
Bruce Momjian [Wed, 15 Jan 2003 20:41:33 +0000 (20:41 +0000)]
Update shared_buffer comment in postgresql.conf.

22 years agoThis patch fixes an incorrect statement and makes a few cleanups to
Bruce Momjian [Wed, 15 Jan 2003 16:45:34 +0000 (16:45 +0000)]
This patch fixes an incorrect statement and makes a few cleanups to
contrib/fulltextindex/README.fti

Backpatched to 7.3.X too.

Neil Conway

22 years agoBumped up build number to 107
Barry Lind [Tue, 14 Jan 2003 09:40:48 +0000 (09:40 +0000)]
Bumped up build number to 107

22 years agoBackport to 7.3 of patch to correctly handle fractional seconds
Barry Lind [Tue, 14 Jan 2003 09:15:35 +0000 (09:15 +0000)]
Backport to 7.3 of patch to correctly handle fractional seconds

 Modified Files:
  Tag: REL7_3_STABLE
  jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
  jdbc/org/postgresql/test/jdbc2/TimestampTest.java

22 years agoPatch from Kris Jurka to improve the performance of getImportedKeys(). The
Barry Lind [Tue, 14 Jan 2003 05:07:56 +0000 (05:07 +0000)]
Patch from Kris Jurka to improve the performance of getImportedKeys().  The
fix uses explicit joins to avoid using the genetic query optimizer for
consistent results.

 Modified Files:
  Tag: REL7_3_STABLE
  jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java

22 years agoFix capitalization.
Bruce Momjian [Sat, 11 Jan 2003 21:03:21 +0000 (21:03 +0000)]
Fix capitalization.

22 years agoCause symlinks for shared-library versioning to run in the standard
Tom Lane [Sat, 11 Jan 2003 17:22:34 +0000 (17:22 +0000)]
Cause symlinks for shared-library versioning to run in the standard
direction on HP-UX; our former approach has been obsolete since HPUX 9.

Giles Lean

22 years agoFix typo in an error messages
Tatsuo Ishii [Sat, 11 Jan 2003 06:59:30 +0000 (06:59 +0000)]
Fix typo in an error messages

22 years ago> > This patch improves the documentation for the shared_buffers GUC param.
Bruce Momjian [Sat, 11 Jan 2003 05:04:27 +0000 (05:04 +0000)]
> > This patch improves the documentation for the shared_buffers GUC param.
>
> I'd suggest that the runtime.sgml description explicitly say "values of
> at least a few thousand are recommended for production installations".

Neil Conway

22 years agoA tiny patch to fix a typo in configure.in and another one in
Bruce Momjian [Sat, 11 Jan 2003 04:59:08 +0000 (04:59 +0000)]
A tiny patch to fix a typo in configure.in and another one in
RELEASE_CHANGES.

Manfred Koizar

22 years agoAdd missing <limits.h> for INT64_IS_BUSTED case.
Tom Lane [Fri, 10 Jan 2003 23:51:46 +0000 (23:51 +0000)]
Add missing <limits.h> for INT64_IS_BUSTED case.

22 years agoFix indenting of log_min_error_statement.
Bruce Momjian [Thu, 9 Jan 2003 05:19:18 +0000 (05:19 +0000)]
Fix indenting of log_min_error_statement.

22 years agoRepair inconsistent rounding behavior for timestamp, time, interval,
Tom Lane [Thu, 9 Jan 2003 01:07:18 +0000 (01:07 +0000)]
Repair inconsistent rounding behavior for timestamp, time, interval,
per gripe from Csaba Nagy.  There is still potential for platform-specific
behavior for values that are exactly halfway between integers, but at
least we now get the expected answer for all other cases.

22 years agoRemove 'const' from secure_write, to prevent compiler warning.
Bruce Momjian [Wed, 8 Jan 2003 23:34:37 +0000 (23:34 +0000)]
Remove 'const' from secure_write, to prevent compiler warning.

22 years agoThe second was that renegotiation was just plain broken. I can't
Bruce Momjian [Wed, 8 Jan 2003 23:18:35 +0000 (23:18 +0000)]
The second was that renegotiation was just plain broken.  I can't
believe I didn't notice this before -- once 64k was sent to/from the
server the client would crash.  Basicly, in 7.3 the server SSL code set
the initial state to "about to renegotiate" without actually starting
the renegotiation.  In addition, the server and client didn't properly
handle the SSL_ERROR_WANT_(READ|WRITE) error.  This is fixed in the
second patch.

Nathan Mueller

22 years agoI was playing around with 7.3.1 and found some more SSL problems. The
Bruce Momjian [Wed, 8 Jan 2003 22:57:05 +0000 (22:57 +0000)]
I was playing around with 7.3.1 and found some more SSL problems.  The
first, that I missed when checking over 7.3.1, was that the client
method was switched to SSLv23 along with the server.  The SSLv23 client
method does SSLv2 by default, but can also understand SSLv3.  In our
situation the SSLv2 backwords compatibility is really only needed on the
server.  This is the first patch.

The last thing is that I found a way for the server to understand SSLv2
HELLO messages (sent by pre-7.3 clients) but then get them to talk
SSLv3.  This is the last one.

Nathan Mueller