]> granicus.if.org Git - postgresql/log
postgresql
22 years agoFix misstatement in release-notes item.
Tom Lane [Mon, 26 May 2003 18:58:36 +0000 (18:58 +0000)]
Fix misstatement in release-notes item.

22 years agoUpdate for 7.3.3. REL7_3_3
Tom Lane [Thu, 22 May 2003 20:38:56 +0000 (20:38 +0000)]
Update for 7.3.3.

22 years agoBrand 7.3.3.
Tom Lane [Thu, 22 May 2003 20:17:24 +0000 (20:17 +0000)]
Brand 7.3.3.

22 years agoUpdate release history for impending 7.3.3 release.
Tom Lane [Thu, 22 May 2003 18:32:01 +0000 (18:32 +0000)]
Update release history for impending 7.3.3 release.

22 years agoRepair sometimes-incorrect computation of StartUpID after a crash, per
Tom Lane [Thu, 22 May 2003 14:39:49 +0000 (14:39 +0000)]
Repair sometimes-incorrect computation of StartUpID after a crash, per
example from Rao Kumar.  This is a very corner corner-case, requiring
a minimum of three closely-spaced database crashes and an unlucky
positioning of the second recovery's checkpoint record before you'd notice
any problem.  But the consequences are dire enough that it's a must-fix.

22 years agoBack-patch Jan's fix to avoid primary key lookup (and lock) if foreign key
Tom Lane [Wed, 21 May 2003 18:14:46 +0000 (18:14 +0000)]
Back-patch Jan's fix to avoid primary key lookup (and lock) if foreign key
does not change on UPDATE.

22 years agoUse -fPIC on Sparc, per Tom Callaway.
Tom Lane [Mon, 19 May 2003 17:51:08 +0000 (17:51 +0000)]
Use -fPIC on Sparc, per Tom Callaway.

22 years agoBack-patch change to avoid O(N^2) behavior with lots of deferred triggers,
Tom Lane [Mon, 19 May 2003 17:23:54 +0000 (17:23 +0000)]
Back-patch change to avoid O(N^2) behavior with lots of deferred triggers,
by making deferredTriggerInvokeEvents only scan events added since it last ran.

22 years agoUpped JDBC build number to 110 for the 7.3.3 release
Barry Lind [Mon, 19 May 2003 04:12:52 +0000 (04:12 +0000)]
Upped JDBC build number to 110 for the 7.3.3 release

 Modified Files:
  Tag: REL7_3_STABLE
  Driver.java.in

22 years agoRepair quoting sloppiness, lack of schema awareness in reindexdb.
Tom Lane [Mon, 19 May 2003 01:00:18 +0000 (01:00 +0000)]
Repair quoting sloppiness, lack of schema awareness in reindexdb.

22 years agoSmall translation updates for 7.3.3 release.
Peter Eisentraut [Sun, 18 May 2003 23:51:41 +0000 (23:51 +0000)]
Small translation updates for 7.3.3 release.

22 years agoFix failure when uniq-ifying an array of zero elements.
Tom Lane [Fri, 16 May 2003 18:50:00 +0000 (18:50 +0000)]
Fix failure when uniq-ifying an array of zero elements.

Teodor Sigaev

22 years agoBack-patch fix to allow createuser to exit on control-C (Oliver Elphick)
Tom Lane [Fri, 16 May 2003 15:17:02 +0000 (15:17 +0000)]
Back-patch fix to allow createuser to exit on control-C (Oliver Elphick)

22 years agoBack-patch fix from Oliver Elphick to force ISO datestyle in dumps.
Tom Lane [Fri, 16 May 2003 13:57:03 +0000 (13:57 +0000)]
Back-patch fix from Oliver Elphick to force ISO datestyle in dumps.

22 years agoSmall changes to use the absolute path to system catalogs.
Tom Lane [Fri, 16 May 2003 13:37:11 +0000 (13:37 +0000)]
Small changes to use the absolute path to system catalogs.

Greg Sabino Mullane

22 years agoCheck calling context for connectby_text(), per Joe Conway.
Tom Lane [Fri, 16 May 2003 06:07:58 +0000 (06:07 +0000)]
Check calling context for connectby_text(), per Joe Conway.

22 years agoApply fixes for problems with dropped columns whose types have also been
Tom Lane [Mon, 12 May 2003 00:17:34 +0000 (00:17 +0000)]
Apply fixes for problems with dropped columns whose types have also been
dropped.  Add regression test, too.

22 years agoAdjust CreateCheckpoint so that buffer dumping activities and cleanup of
Tom Lane [Sat, 10 May 2003 18:01:49 +0000 (18:01 +0000)]
Adjust CreateCheckpoint so that buffer dumping activities and cleanup of
dead xlog segments are not considered part of a critical section.  It is
not necessary to force a database-wide panic if we get a failure in these
operations.  Per recent trouble reports.

22 years agoBe more precise about check for flex 2.5.3, backpatched to 7.3.X.
Bruce Momjian [Wed, 7 May 2003 04:49:02 +0000 (04:49 +0000)]
Be more precise about check for flex 2.5.3, backpatched to 7.3.X.

22 years agoAllow 60 in seconds fields of timestamp, time, interval input values.
Tom Lane [Sun, 4 May 2003 04:30:35 +0000 (04:30 +0000)]
Allow 60 in seconds fields of timestamp, time, interval input values.
Per recent discussion on pgsql-general, this is appropriate for spec
compliance, and has the nice side-effect of easing porting from old
pg_dump files that exhibit the 59.999=>60.000 roundoff problem.

22 years agoWhen a TIMESTAMP, TIME, or INTERVAL precision is specified larger than our
Tom Lane [Sun, 4 May 2003 00:04:10 +0000 (00:04 +0000)]
When a TIMESTAMP, TIME, or INTERVAL precision is specified larger than our
implementation limits, do not issue an ERROR; instead issue a NOTICE and use
the max supported value.  Per pgsql-general discussion of 28-Apr, this is
needed to allow easy porting from pre-7.3 releases where the limits were
higher.

Unrelated change in same area: accept GLOBAL TEMP/TEMPORARY as a synonym
for TEMPORARY, as per pgsql-hackers discussion of 15-Apr.  We previously
rejected it, but that was based on a misreading of the spec --- SQL92's
GLOBAL temp tables are really closer to what we have than their LOCAL ones.

22 years agoFix erroneous space calculation leading to core dump in dumpProcLangs,
Tom Lane [Sat, 3 May 2003 22:19:18 +0000 (22:19 +0000)]
Fix erroneous space calculation leading to core dump in dumpProcLangs,
per report from Olivier Prenant.  Also fix off-by-one space calculation
in ReadToc; this woould not have hurt us until we had more than 100
dependencies for a single object, but wrong is wrong.

22 years agoRepair permissions problem in RI triggers: query parsing has to be done
Tom Lane [Sat, 26 Apr 2003 22:21:58 +0000 (22:21 +0000)]
Repair permissions problem in RI triggers: query parsing has to be done
as the correct user, not only query execution.  Per report from Sean
Chittenden.

22 years agoCorrect oversight in createlang: test for pre-existing handler function
Tom Lane [Sat, 26 Apr 2003 15:19:05 +0000 (15:19 +0000)]
Correct oversight in createlang: test for pre-existing handler function
was broken by opaque->language_handler change.  I see this is already
fixed in CVS tip, but must back-patch for 7.3.3.

22 years agoBack-patch fixes for zero-column tables in COPY, pg_dump.
Tom Lane [Fri, 25 Apr 2003 22:14:33 +0000 (22:14 +0000)]
Back-patch fixes for zero-column tables in COPY, pg_dump.

22 years agoMake [VACUUM] ANALYZE safe on zero-column tables.
Tom Lane [Fri, 25 Apr 2003 21:29:22 +0000 (21:29 +0000)]
Make [VACUUM] ANALYZE safe on zero-column tables.

22 years agoFix misbehavior of func_error() on type names containing '%'.
Tom Lane [Wed, 23 Apr 2003 18:20:10 +0000 (18:20 +0000)]
Fix misbehavior of func_error() on type names containing '%'.
Will patch separately but equivalently in HEAD.

22 years agoFix misbehavior of replace() on strings containing '%'.
Tom Lane [Wed, 23 Apr 2003 18:19:23 +0000 (18:19 +0000)]
Fix misbehavior of replace() on strings containing '%'.
Will patch separately but equivalently in HEAD.

22 years agoPrevent palloc(0) error when parent table has zero columns.
Tom Lane [Mon, 21 Apr 2003 15:20:02 +0000 (15:20 +0000)]
Prevent palloc(0) error when parent table has zero columns.

22 years agoFix char-vs-pg_wchar confusion in p_ere(), per failure report from
Tom Lane [Sun, 20 Apr 2003 17:37:22 +0000 (17:37 +0000)]
Fix char-vs-pg_wchar confusion in p_ere(), per failure report from
Tom O'Dowd.  This fix is not relevant to CVS tip anymore, but we should
fix it in 7.3.*.

22 years agoFix abstime-to-time cast function, which has had broken implementation
Tom Lane [Thu, 17 Apr 2003 04:50:35 +0000 (04:50 +0000)]
Fix abstime-to-time cast function, which has had broken implementation
since 7.2, per bug #947.  Turns out it had wrong volatility label, too.
Can't force initdb in 7.3 branch, but fix anyway for future installs.

22 years agoApplied patches from Kris Jurka fixing a string tokenizing problem and
Barry Lind [Thu, 17 Apr 2003 04:19:55 +0000 (04:19 +0000)]
Applied patches from Kris Jurka fixing a string tokenizing problem and
fixing an order by problem for index metadata results.
Also includes removing some unused code as well as a fix to the toString
method on statement.

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

22 years agoFix stupid oversight ...
Tom Lane [Wed, 16 Apr 2003 04:38:05 +0000 (04:38 +0000)]
Fix stupid oversight ...

22 years agoeqjoinsel's logic for case where MCV lists are not present should
Tom Lane [Tue, 15 Apr 2003 05:18:30 +0000 (05:18 +0000)]
eqjoinsel's logic for case where MCV lists are not present should
account for NULLs; in hindsight this is obvious since the code for
the MCV-lists case would reduce to this when there are zero entries
in both lists.  Per example from Alec Mitchell.

22 years agoSecond try at avoiding conflicts with system isblank().
Tom Lane [Sun, 13 Apr 2003 04:07:31 +0000 (04:07 +0000)]
Second try at avoiding conflicts with system isblank().

22 years agoGuard against macro versions of isblank().
Tom Lane [Sat, 12 Apr 2003 22:28:40 +0000 (22:28 +0000)]
Guard against macro versions of isblank().

22 years agoFix encoding conversion function bug.
Tatsuo Ishii [Sat, 12 Apr 2003 08:01:23 +0000 (08:01 +0000)]
Fix encoding conversion function bug.
See following posting for more details.

Subject: Re: [HACKERS] [BUGS] Bug #943: Server-Encoding from EUC_TW to UTF-8 doesn't
From: Tatsuo Ishii <t-ishii@sra.co.jp>
To: michael.enke@wincor-nixdorf.com, pgsql-bugs@postgresql.org
Cc: pgsql-hackers@postgresql.org
Date: Sat, 12 Apr 2003 10:51:45 +0900 (JST)

22 years agoFix error recovery for SSL_read/SSL_write calls.
Tom Lane [Thu, 10 Apr 2003 23:03:13 +0000 (23:03 +0000)]
Fix error recovery for SSL_read/SSL_write calls.

22 years agoRemove premature attempt to constant-fold type coercion expressions.
Tom Lane [Thu, 10 Apr 2003 02:47:57 +0000 (02:47 +0000)]
Remove premature attempt to constant-fold type coercion expressions.
While usually safe, this fails if the coercion function needs the
query snapshot to be set already.  Per example from Nigel Andrews.

22 years agoadded addDataType to the interface
Dave Cramer [Tue, 8 Apr 2003 17:26:39 +0000 (17:26 +0000)]
added addDataType to the interface

22 years agoBack-patch changes to validate page header fields immediately after
Tom Lane [Fri, 4 Apr 2003 00:32:57 +0000 (00:32 +0000)]
Back-patch changes to validate page header fields immediately after
reading in any page.  Also back-port the zero_damaged_pages boolean
that determines what to do about it.

22 years agoRepair incorrect checking of grouped/ungrouped variables in the presence
Tom Lane [Thu, 3 Apr 2003 18:04:17 +0000 (18:04 +0000)]
Repair incorrect checking of grouped/ungrouped variables in the presence
of unnamed joins; per pghackers discussion 31-Mar-03.

22 years agoFix buffer overrun in to_ascii(), per report from Guido Notari.
Tom Lane [Wed, 2 Apr 2003 21:08:07 +0000 (21:08 +0000)]
Fix buffer overrun in to_ascii(), per report from Guido Notari.

22 years agoPlease, apply patch for contrib/ltree to current CVS and 7.3.2
Bruce Momjian [Mon, 31 Mar 2003 20:59:20 +0000 (20:59 +0000)]
Please, apply patch for contrib/ltree to current CVS and 7.3.2

CHANGES

Mar 28, 2003
Added finctions index(ltree,ltree,offset), text2ltree(text),
ltree2text(text)

Teodor Sigaev

22 years agoTestConfiguration returns int, not bool. This mistake is relatively
Tom Lane [Mon, 31 Mar 2003 20:32:50 +0000 (20:32 +0000)]
TestConfiguration returns int, not bool.  This mistake is relatively
harmless on signed-char machines but would lead to core dump in the
deadlock detection code if char is unsigned.  Amazingly, this bug has
been here since 7.1 and yet wasn't reported till now.  Thanks to Robert
Bruccoleri for providing the opportunity to track it down.

22 years agoProperly document default value of log_min_error_statement in postgresql.conf.
Bruce Momjian [Sun, 30 Mar 2003 21:38:13 +0000 (21:38 +0000)]
Properly document default value of log_min_error_statement in postgresql.conf.

22 years agoBackpatch SSL return value changes.
Bruce Momjian [Sun, 30 Mar 2003 21:36:44 +0000 (21:36 +0000)]
Backpatch SSL return value changes.

22 years ago[ Backpatch to 7.3.X.]
Bruce Momjian [Sat, 29 Mar 2003 03:57:05 +0000 (03:57 +0000)]
[ Backpatch to 7.3.X.]

typing error in src/backend/libpq/be-secure.c ???

Long Description
In src/backend/libpq/be-secure.c: secure_write
on SSL_ERROR_WANT_WRITE call secure_read instead
secure_write again. May be is this a typing error?

Sergey N. Yatskevich (syatskevich@n21lab.gosniias.msk.ru)

22 years agoFix bogus coding of SET DEFAULT ri triggers ... or at least make it less
Tom Lane [Thu, 27 Mar 2003 19:25:52 +0000 (19:25 +0000)]
Fix bogus coding of SET DEFAULT ri triggers ... or at least make it less
bogus than it was.  Per bug report from Adrian Pop.

22 years agoGetTupleForTrigger must use outer transaction's command counter for time
Tom Lane [Thu, 27 Mar 2003 14:33:21 +0000 (14:33 +0000)]
GetTupleForTrigger must use outer transaction's command counter for time
qual checking, not GetCurrentCommandId.  Per test case from Steve Wolfe.

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.