1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00
Commit Graph

14408 Commits

Author SHA1 Message Date
74a665a8b3 New build number 2003-03-24 04:01:38 +00:00
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
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
2d0cf42cd4 Tweak selectivity and related routines to cope with domains. Per report
from Andreas Pflug.
2003-03-23 01:49:13 +00:00
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
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
d10ed0263e Applied translation fixes
Modified Files:
  Tag: REL7_3_STABLE
 	errors_zh_TW.properties
2003-03-18 05:24:36 +00:00
1a0172fbbd pg_dumpall failed on groups having no members. Per report from
Nick Eskelinen.
2003-03-14 22:45:56 +00:00
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
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
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
cebedc36ed Prevent infinite loop in ln_var() due to roundoff error.
Per report from Dave Marin.
2003-03-14 00:15:41 +00:00
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
db825e3743 pg_restore failed to restore blobs if -X disable-triggers is specified. 2003-03-09 19:38:59 +00:00
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
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
8afc577123 Add missing --globals-only (long form of -g). 2003-03-06 21:45:57 +00:00
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
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
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
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
db34282fe3 Back patch bug fix to quote function. 2003-02-27 10:42:12 +00:00
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
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
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
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
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
00cb9384a1 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
2003-02-19 03:50:49 +00:00
c89000f346 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.
2003-02-18 02:53:46 +00:00
79c049ddaa Fix SPI result logic for case where there are multiple statements of the
same type in a rule.  Per bug report from Pavel Hanak.
2003-02-14 21:12:54 +00:00
56650f3fda Update FAQ's in head and 7.3.X. 2003-02-14 14:05:52 +00:00
abe07ff174 Repair incorrect indexing for atttypmod, per Brad McLean. 2003-02-13 23:06:19 +00:00
5dc8478d20 Result of lo_read() is int, not size_t. Per Oleg Drokin. 2003-02-13 22:56:59 +00:00
c6d801f3bf Parser was dropping foreign-key constraints on the floor if present in
an ALTER TABLE ADD COLUMN command.  Per bug #896.
2003-02-13 22:50:09 +00:00
55570581f5 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.
2003-02-13 21:40:00 +00:00
35710e0d76 Prevent timetz2tm() from scribbling on its input in HAVE_INT64_TIMESTAMP case. 2003-02-13 17:04:24 +00:00
cc3c67784a > > 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
2003-02-13 05:32:58 +00:00
c73a769076 Applied patch to update translation file, submitted by Zhenbang Wei
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/errors_zh_TW.properties
2003-02-12 20:39:53 +00:00
e4851e54ca 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
2003-02-12 17:14:49 +00:00
fa0c09bffc 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
2003-02-12 06:01:02 +00:00
02c614dc85 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.
2003-02-11 04:13:39 +00:00
d3038e6e2c up build # to 108 2003-02-09 23:43:41 +00:00
3448835967 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
2003-02-09 23:41:46 +00:00
521d70f661 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.
2003-02-07 01:33:39 +00:00
c228ef1587 Avoid generating relid lists with duplicate entries. Fixes bugs
reported by Stefanos Harhalakis 2/2/2003.
2003-02-07 00:02:43 +00:00
2425ab3ece Fix core dump when pltcl_elog is called with wrong number of parameters,
per report from Ian Harding.
2003-02-06 17:02:22 +00:00
de42a5f53d Fix regexp slowness reported by Wade Klaver. 2003-02-06 00:00:24 +00:00
47729caf2d 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).
2003-02-05 20:16:55 +00:00
62ca0fce8f Fix for rollback SQLException from Kris Jurka 2003-02-04 11:16:00 +00:00
caa72ad57f Add mention of CURRENT_SCHEMA for object creation. REL7_3_2 2003-02-03 15:57:03 +00:00