1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-28 11:44:57 +03:00
Commit Graph

14531 Commits

Author SHA1 Message Date
Tom Lane
8363ed70ad 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.
2003-04-17 04:50:35 +00:00
Barry Lind
52eeb494e7 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
2003-04-17 04:19:55 +00:00
Tom Lane
dc3e14d3d5 Fix stupid oversight ... 2003-04-16 04:38:05 +00:00
Tom Lane
d38fdbc939 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.
2003-04-15 05:18:30 +00:00
Tom Lane
811c512f62 Second try at avoiding conflicts with system isblank(). 2003-04-13 04:07:31 +00:00
Tom Lane
041ab272c7 Guard against macro versions of isblank(). 2003-04-12 22:28:40 +00:00
Tatsuo Ishii
5d6b0a43dc 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)
2003-04-12 08:01:23 +00:00
Tom Lane
8d477bd33a Fix error recovery for SSL_read/SSL_write calls. 2003-04-10 23:03:13 +00:00
Tom Lane
19f60754e1 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.
2003-04-10 02:47:57 +00:00
Dave Cramer
6ee2c29354 added addDataType to the interface 2003-04-08 17:26:39 +00:00
Tom Lane
8fe728b009 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.
2003-04-04 00:32:57 +00:00
Tom Lane
a880697f09 Repair incorrect checking of grouped/ungrouped variables in the presence
of unnamed joins; per pghackers discussion 31-Mar-03.
2003-04-03 18:04:17 +00:00
Tom Lane
8af8be8633 Fix buffer overrun in to_ascii(), per report from Guido Notari. 2003-04-02 21:08:07 +00:00
Bruce Momjian
7c100e96b7 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
2003-03-31 20:59:20 +00:00
Tom Lane
28295da0a5 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.
2003-03-31 20:32:50 +00:00
Bruce Momjian
ba4de4e06a Properly document default value of log_min_error_statement in postgresql.conf. 2003-03-30 21:38:13 +00:00
Bruce Momjian
b602639dc6 Backpatch SSL return value changes. 2003-03-30 21:36:44 +00:00
Bruce Momjian
8df03b2c86 [ 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)
2003-03-29 03:57:05 +00:00
Tom Lane
a69550a363 Fix bogus coding of SET DEFAULT ri triggers ... or at least make it less
bogus than it was.  Per bug report from Adrian Pop.
2003-03-27 19:25:52 +00:00
Tom Lane
9ae5b8cb92 GetTupleForTrigger must use outer transaction's command counter for time
qual checking, not GetCurrentCommandId.  Per test case from Steve Wolfe.
2003-03-27 14:33:21 +00:00
Dave Cramer
a6f056987e fixed problem where information from previous updates was leaking into subsequent updates patch from Shawn Green, slightly modified 2003-03-25 02:23:10 +00:00
Dave Cramer
1c4f2a63c0 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 2003-03-25 02:01:19 +00:00
Dave Cramer
b27eb64e61 fixed problem where information from previous updates was leaking into subsequent updates patch from Shawn Green 2003-03-25 01:57:03 +00:00
Barry Lind
74a665a8b3 New build number 2003-03-24 04:01:38 +00:00
Barry Lind
8e2ca1a7d8 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
2003-03-24 03:49:49 +00:00
Tom Lane
579adfd654 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.
2003-03-23 21:55:14 +00:00
Tom Lane
2d0cf42cd4 Tweak selectivity and related routines to cope with domains. Per report
from Andreas Pflug.
2003-03-23 01:49:13 +00:00
Bruce Momjian
e8b9aeea41 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
2003-03-20 03:58:48 +00:00
Barry Lind
e02ace4418 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
2003-03-19 04:09:09 +00:00
Barry Lind
d10ed0263e Applied translation fixes
Modified Files:
  Tag: REL7_3_STABLE
 	errors_zh_TW.properties
2003-03-18 05:24:36 +00:00
Tom Lane
1a0172fbbd pg_dumpall failed on groups having no members. Per report from
Nick Eskelinen.
2003-03-14 22:45:56 +00:00
Barry Lind
1ad6337fd5 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
2003-03-14 05:38:36 +00:00
Tom Lane
dabb2fbc0d 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.
2003-03-14 04:44:05 +00:00
Barry Lind
8f390674de 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
2003-03-14 01:23:08 +00:00
Tom Lane
cebedc36ed Prevent infinite loop in ln_var() due to roundoff error.
Per report from Dave Marin.
2003-03-14 00:15:41 +00:00
Tom Lane
d144f96bf0 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).
2003-03-13 16:58:49 +00:00
Tom Lane
db825e3743 pg_restore failed to restore blobs if -X disable-triggers is specified. 2003-03-09 19:38:59 +00:00
Barry Lind
899c711070 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
2003-03-08 06:09:37 +00:00
Tom Lane
f069bd0560 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...
2003-03-06 22:55:03 +00:00
Tom Lane
8afc577123 Add missing --globals-only (long form of -g). 2003-03-06 21:45:57 +00:00
Tom Lane
d8e2689e32 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).
2003-03-05 18:38:26 +00:00
Tom Lane
6b305090ed Prevent clustering on incomplete indexes: partial indexes are verboten,
as are non-amindexnulls AMs unless first column is attnotnull.
2003-03-03 04:37:48 +00:00
Tom Lane
73e3fad1e8 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.
2003-03-02 20:45:59 +00:00
Tom Lane
4b60df3aa6 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.
2003-02-27 21:37:24 +00:00
D'Arcy J.M. Cain
db34282fe3 Back patch bug fix to quote function. 2003-02-27 10:42:12 +00:00
Barry Lind
d47a0f7c76 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
2003-02-24 16:38:25 +00:00
Tom Lane
1f3e24dee7 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.
2003-02-23 04:48:38 +00:00
Tom Lane
a78e12f96a 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.
2003-02-21 18:24:54 +00:00
Tom Lane
2bba78d605 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.
2003-02-20 05:25:25 +00:00
Tatsuo Ishii
d1bb0db8dd 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)
2003-02-19 14:14:58 +00:00