]> granicus.if.org Git - postgresql/log
postgresql
21 years agoTranslation updates
Peter Eisentraut [Thu, 12 Feb 2004 19:17:41 +0000 (19:17 +0000)]
Translation updates

21 years agoProperly set NEED_REENTRANT_FUNCS for threaded libpq/ecpg.
Bruce Momjian [Wed, 11 Feb 2004 17:32:09 +0000 (17:32 +0000)]
Properly set NEED_REENTRANT_FUNCS for threaded libpq/ecpg.

Without this patch, no thread locking or *_r functions were being used.

21 years agoRepair missing inclusions of -lintl for shared libraries.
Tom Lane [Tue, 10 Feb 2004 07:26:48 +0000 (07:26 +0000)]
Repair missing inclusions of -lintl for shared libraries.

21 years agoDon't try to turn the random bytes from a md5 salt into a String
Kris Jurka [Tue, 10 Feb 2004 01:58:48 +0000 (01:58 +0000)]
Don't try to turn the random bytes from a md5 salt into a String
because it may not be a valid String depending on the encoding.

Per report from Nadeem Bitar.

21 years agoEnsure that memcmp() does not run off the end of memory, per Kurt Roeckx.
Tom Lane [Tue, 3 Feb 2004 17:56:04 +0000 (17:56 +0000)]
Ensure that memcmp() does not run off the end of memory, per Kurt Roeckx.
(Same patch committed to HEAD but I fat-fingered the commit message...)

21 years agoV3 NotificationResonse messages were trying to be received as V2
Kris Jurka [Tue, 3 Feb 2004 05:43:24 +0000 (05:43 +0000)]
V3 NotificationResonse messages were trying to be received as V2
messages.  Also the PID was being read in the wrong byte order.
Finally add a test case for listen/notify.

Per report from Hans Nather.

21 years agoConnectionPool and SimpleDataSource are marked Serializable, but their
Kris Jurka [Tue, 3 Feb 2004 05:28:17 +0000 (05:28 +0000)]
ConnectionPool and SimpleDataSource are marked Serializable, but their
superclass (which contains a number of state variables) is not.  To
correctly serialize these objects we need to manually implement
writeObject and readObject.

Per report from R. Lemos

21 years agoResultSet.next() and previous() incremented or decremented the
Kris Jurka [Tue, 3 Feb 2004 05:25:38 +0000 (05:25 +0000)]
ResultSet.next() and previous() incremented or decremented the
internal current_row variable regardless of wether they succeeded or
not.  This generated some ArrayIndexOutOfBoundsExceptions when the
errorneous adjustment current_row led to out of range values.

Per report from Fischer Krisztian.

21 years agoFix the setXXXStream methods. If passed a null InputStream, convert
Kris Jurka [Tue, 3 Feb 2004 05:13:56 +0000 (05:13 +0000)]
Fix the setXXXStream methods.  If passed a null InputStream, convert
this to a setNull call.  The code originally would try to read the
whole stream in one call to read(), but this doesn't work.  The
InputStream API makes it clear you must be prepared to loop and
continue reading if you didn't get the whole request on the first
try.

Per report from Martin Holz.

21 years agoNewer versions of the 1.4.2 jdk give warnings about having return in a
Kris Jurka [Tue, 3 Feb 2004 05:00:21 +0000 (05:00 +0000)]
Newer versions of the 1.4.2 jdk give warnings about having return in a
finally clause.

21 years agoDo not let external specification of CFLAGS stop us from adding
Tom Lane [Mon, 2 Feb 2004 04:07:40 +0000 (04:07 +0000)]
Do not let external specification of CFLAGS stop us from adding
-fno-strict-aliasing.

21 years agoAvoid generating invalid character encoding sequences in make_greater_string.
Tom Lane [Mon, 2 Feb 2004 03:07:14 +0000 (03:07 +0000)]
Avoid generating invalid character encoding sequences in make_greater_string.
Not sure how this mistake evaded detection for so long.

21 years agoUse Tcl_PutEnv() in place of putenv() in libpgtcl, as the latter can
Neil Conway [Mon, 2 Feb 2004 01:00:58 +0000 (01:00 +0000)]
Use Tcl_PutEnv() in place of putenv() in libpgtcl, as the latter can
apparently corrupt the Tcl runtime. Per suggestion from Michael
Brusser <michael@synchronicity.com>

21 years agoFix text_position to not scan past end of source string in multibyte
Tom Lane [Sat, 31 Jan 2004 00:45:34 +0000 (00:45 +0000)]
Fix text_position to not scan past end of source string in multibyte
case, per report from Korea PostgreSQL Users' Group.

21 years ago- Fixed prototype for ECPGprepared_statement to not moan about "const char"
Michael Meskes [Wed, 28 Jan 2004 09:55:53 +0000 (09:55 +0000)]
- Fixed prototype for ECPGprepared_statement to not moan about "const char"
- Fixed parsing of nested structures.

21 years agoFix oversight in check_ungrouped_columns optimization that avoids
Tom Lane [Wed, 28 Jan 2004 07:47:07 +0000 (07:47 +0000)]
Fix oversight in check_ungrouped_columns optimization that avoids
unnecessary checks for complex grouping expressions: we cannot check
whether the expressions are simple Vars until after we apply
flatten_join_alias_vars, because in the case of FULL JOIN that routine
can introduce non-Var expressions.  Per example from Joel Knight.

21 years agosimplify_function() mustn't try to evaluate functions that return
Tom Lane [Wed, 28 Jan 2004 00:05:25 +0000 (00:05 +0000)]
simplify_function() mustn't try to evaluate functions that return
composite types, because TupleTableSlots aren't Datums and can't be
stored in Const nodes.  We can remove this restriction if we ever
adopt a cleaner runtime representation for whole-tuple results, but
at the moment it's broken.  Per example from Thomas Hallgren.

21 years agoRun stats test separately, not as part of a parallel group, to avoid
Tom Lane [Tue, 27 Jan 2004 00:50:52 +0000 (00:50 +0000)]
Run stats test separately, not as part of a parallel group, to avoid
possible failures due to stats collector not updating fast enough under
heavy load.  Per report from Jeremy Yoder.

21 years agoRepair incorrect order of operations in GetNewTransactionId(). We must
Tom Lane [Mon, 26 Jan 2004 19:16:23 +0000 (19:16 +0000)]
Repair incorrect order of operations in GetNewTransactionId().  We must
complete ExtendCLOG() before advancing nextXid, so that if that routine
fails, the next incoming transaction will try it again.  Per trouble
report from Christopher Kings-Lynne.

21 years agoDocs fix from Kris Jurka <books@ejurka.com>
Teodor Sigaev [Mon, 26 Jan 2004 15:08:58 +0000 (15:08 +0000)]
Docs fix from  Kris Jurka <books@ejurka.com>

21 years agoFix problems with dropped columns in pltcl triggers, per report from Patrick Samson.
Tom Lane [Sat, 24 Jan 2004 23:06:41 +0000 (23:06 +0000)]
Fix problems with dropped columns in pltcl triggers, per report from Patrick Samson.

21 years agoRepair planner failure for cases involving Cartesian products inside
Tom Lane [Sat, 24 Jan 2004 00:37:42 +0000 (00:37 +0000)]
Repair planner failure for cases involving Cartesian products inside
IN (sub-SELECT) constructs.  We must force a clauseless join of the
sub-select member relations, but it wasn't happening because the code
thought it would be able to use the join clause arising from the IN.

21 years agoTranslation update
Peter Eisentraut [Thu, 22 Jan 2004 21:13:45 +0000 (21:13 +0000)]
Translation update

21 years agoFix incorrect dumping of database LOCATION from 7.0.* servers.
Tom Lane [Thu, 22 Jan 2004 19:09:48 +0000 (19:09 +0000)]
Fix incorrect dumping of database LOCATION from 7.0.* servers.
Per report from Mattias Kregert.

21 years agoFix oversight in optimization that avoids an unnecessary projection step
Tom Lane [Thu, 22 Jan 2004 02:23:35 +0000 (02:23 +0000)]
Fix oversight in optimization that avoids an unnecessary projection step
when scanning a table that we need all the columns from.  In case of
SELECT INTO, we have to check that the hasoids flag matches the desired
output type, too.  Per report from Mike Mascari.

21 years agoEnsure fflush(stdout) happens in all cases, per gripe from Jon Sablatnig.
Tom Lane [Wed, 21 Jan 2004 22:05:53 +0000 (22:05 +0000)]
Ensure fflush(stdout) happens in all cases, per gripe from Jon Sablatnig.

21 years agoBack-patch repairs for --disable-shared support.
Tom Lane [Wed, 21 Jan 2004 19:25:11 +0000 (19:25 +0000)]
Back-patch repairs for --disable-shared support.

21 years agoAdded WHENEVER NOT_FOUND to SELECT/INSERT/UPDATE/DELETE.
Michael Meskes [Wed, 21 Jan 2004 14:11:03 +0000 (14:11 +0000)]
Added WHENEVER NOT_FOUND to SELECT/INSERT/UPDATE/DELETE.

21 years agoCorrect type for isalnum
Teodor Sigaev [Mon, 19 Jan 2004 18:40:23 +0000 (18:40 +0000)]
Correct type for isalnum

21 years agoFix typo.
Peter Eisentraut [Mon, 19 Jan 2004 14:28:06 +0000 (14:28 +0000)]
Fix typo.

21 years agoTranslation update
Peter Eisentraut [Sun, 18 Jan 2004 14:54:18 +0000 (14:54 +0000)]
Translation update

21 years agoDon't use %s-with-precision format spec to truncate data being displayed
Tom Lane [Sun, 18 Jan 2004 02:15:57 +0000 (02:15 +0000)]
Don't use %s-with-precision format spec to truncate data being displayed
in a COPY error message.  It seems that glibc gets indigestion if it is
asked to truncate strings that contain invalid UTF-8 encoding sequences.
vsnprintf will return -1 in such cases, leading to looping and eventual
memory overflow in elog.c.  Instead use our own, more robust pg_mbcliplen
routine.  I believe this problem accounts for several recent reports of
unexpected 'out of memory' errors during COPY IN.

21 years agoRepair faulty plan generation in cases where we choose to implement an
Tom Lane [Sun, 18 Jan 2004 00:31:53 +0000 (00:31 +0000)]
Repair faulty plan generation in cases where we choose to implement an
IN clause by mergejoin, and a type coercion is needed just above the subplan.
A more extensive patch will follow in HEAD.

21 years agoTranslation updates
Dennis Bjorklund [Wed, 14 Jan 2004 12:14:18 +0000 (12:14 +0000)]
Translation updates

21 years agopg_settings should have UPDATE privilege allowed to public.
Tom Lane [Wed, 14 Jan 2004 03:47:12 +0000 (03:47 +0000)]
pg_settings should have UPDATE privilege allowed to public.
(Can't force initdb for this in 7.4 branch, but we can at least see to it
that post-7.4.2 installations will get it right.)

21 years agoThe no-updates-to-system-catalogs-unless-usecatupd restriction should
Tom Lane [Wed, 14 Jan 2004 03:45:02 +0000 (03:45 +0000)]
The no-updates-to-system-catalogs-unless-usecatupd restriction should
not apply to system views.  It never mattered before 7.4, but it does now.

21 years agoRevert ill-starred change of 13-Feb-02: it appeared to fix a problem of
Tom Lane [Wed, 14 Jan 2004 03:39:29 +0000 (03:39 +0000)]
Revert ill-starred change of 13-Feb-02: it appeared to fix a problem of
incorrect permissions checking, but in fact disabled most all permissions
checks for view updates.  This corrects problems reported by Sergey
Yatskevich among others, at the cost of re-introducing the problem
previously reported by Tim Burgess.  However, since we'd lived with that
problem for quite awhile without knowing it, we can live with it awhile
longer until a proper fix can be made in 7.5.

21 years agoFix format string error.
Peter Eisentraut [Tue, 13 Jan 2004 22:43:25 +0000 (22:43 +0000)]
Fix format string error.

21 years agoTranslation update
Peter Eisentraut [Tue, 13 Jan 2004 18:58:42 +0000 (18:58 +0000)]
Translation update

21 years agoTranslation updates
Dennis Bjorklund [Sun, 11 Jan 2004 19:30:42 +0000 (19:30 +0000)]
Translation updates

21 years agoMark string for translation.
Dennis Bjorklund [Sun, 11 Jan 2004 19:25:44 +0000 (19:25 +0000)]
Mark string for translation.

21 years agoFix subquery pullup logic to not be fooled when a view that appears
Tom Lane [Sat, 10 Jan 2004 00:30:39 +0000 (00:30 +0000)]
Fix subquery pullup logic to not be fooled when a view that appears
'simple' references another view that is not simple.  Must recheck
conditions after performing recursive pullup.  Per example from
Laurent Perez, 9-Jan-04.

21 years agoFix incorrect SQL syntax emitted when -E is given without -P.
Tom Lane [Fri, 9 Jan 2004 00:15:19 +0000 (00:15 +0000)]
Fix incorrect SQL syntax emitted when -E is given without -P.
Report and fix from Martin Pitt.

21 years agoRemove broken (and unnecessary) definition of operator <> for _int4
Tom Lane [Thu, 8 Jan 2004 23:40:36 +0000 (23:40 +0000)]
Remove broken (and unnecessary) definition of operator <> for _int4
datatype; the generic array comparators added in 7.4 supersede this.
Per report and patch from Korea PostgreSQL Users' Group.

21 years agoUpdate OSF thread flags for non-gcc compiles.
Bruce Momjian [Thu, 8 Jan 2004 15:51:38 +0000 (15:51 +0000)]
Update OSF thread flags for non-gcc compiles.

21 years agoTranslation updates
Dennis Bjorklund [Thu, 8 Jan 2004 08:51:31 +0000 (08:51 +0000)]
Translation updates

21 years agoUpdate Solaris thread setting for non-gcc compilers.
Bruce Momjian [Thu, 8 Jan 2004 04:21:20 +0000 (04:21 +0000)]
Update Solaris thread setting for non-gcc compilers.

21 years agoTranslation updates
Peter Eisentraut [Wed, 7 Jan 2004 17:44:07 +0000 (17:44 +0000)]
Translation updates

21 years agoTranslation updates
Peter Eisentraut [Mon, 5 Jan 2004 19:15:55 +0000 (19:15 +0000)]
Translation updates

21 years agoCorrect gettext URL.
Peter Eisentraut [Sun, 4 Jan 2004 16:44:22 +0000 (16:44 +0000)]
Correct gettext URL.

21 years agoFixed bug in GRANT OPTION FOR parsing.
Michael Meskes [Sun, 4 Jan 2004 14:50:13 +0000 (14:50 +0000)]
Fixed bug in GRANT OPTION FOR parsing.

21 years agoFix portability bugs: char values passed to <ctype.h> functions must
Tom Lane [Sun, 4 Jan 2004 04:17:14 +0000 (04:17 +0000)]
Fix portability bugs: char values passed to <ctype.h> functions must
be cast to unsigned char.  We have learned this the hard way before.

21 years agoFix discrepancy in prototypes for HPUX pg_dlerror.
Tom Lane [Sun, 4 Jan 2004 04:06:45 +0000 (04:06 +0000)]
Fix discrepancy in prototypes for HPUX pg_dlerror.

21 years agoFix ReadOffset() to work correctly when off_t is wider than int.
Tom Lane [Sun, 4 Jan 2004 04:02:22 +0000 (04:02 +0000)]
Fix ReadOffset() to work correctly when off_t is wider than int.

21 years agoRemove trailing semicolons from macro initializations in plpython.
Bruce Momjian [Sun, 4 Jan 2004 00:14:55 +0000 (00:14 +0000)]
Remove trailing semicolons from macro initializations in plpython.

Problem report on True64 Unix by Nikola Milutinovic.
]

21 years agoDo an explicit fflush after writing a progress message with puts.
Tom Lane [Thu, 1 Jan 2004 19:27:28 +0000 (19:27 +0000)]
Do an explicit fflush after writing a progress message with puts.
This ensures stdout is kept in sync with messages on stderr.
Per report from Olaf Ferger.

21 years agoBackpatch Solaris non-gcc thread compile fix to 7.4.X.
Bruce Momjian [Thu, 1 Jan 2004 17:35:32 +0000 (17:35 +0000)]
Backpatch Solaris non-gcc thread compile fix to 7.4.X.

21 years agoAvoid running out of memory during hash_create, by not passing a
Tom Lane [Tue, 30 Dec 2003 20:05:15 +0000 (20:05 +0000)]
Avoid running out of memory during hash_create, by not passing a
number-of-buckets that exceeds the size we actually plan to allow
the hash table to grow to.  Per trouble report from Sean Shanny.

21 years agoAdded missing whitespaces to array argument parsing.
Michael Meskes [Mon, 29 Dec 2003 13:53:17 +0000 (13:53 +0000)]
Added missing whitespaces to array argument parsing.

21 years agoFix sanity-check code that mistakenly assumed error and notice messages
Tom Lane [Sun, 28 Dec 2003 17:44:05 +0000 (17:44 +0000)]
Fix sanity-check code that mistakenly assumed error and notice messages
could never exceed 30K.  Per report from Andreas Pflug.

21 years agoAvoid infinite loop if connection is lost during PQexecStart() or
Tom Lane [Sun, 28 Dec 2003 17:29:51 +0000 (17:29 +0000)]
Avoid infinite loop if connection is lost during PQexecStart() or
PQexecFinish().  Per report from Andreas Pflug.

21 years agoFixed segfault in parsing of EXEC SQL SELECT * FROM foo() AS TBL( c int, i int);
Michael Meskes [Wed, 24 Dec 2003 22:05:06 +0000 (22:05 +0000)]
Fixed segfault in parsing of EXEC SQL SELECT * FROM foo() AS TBL( c int, i int);

21 years agoMore bogosity in alter_table test: sometimes causes prepare test to fail
Tom Lane [Tue, 23 Dec 2003 20:34:51 +0000 (20:34 +0000)]
More bogosity in alter_table test: sometimes causes prepare test to fail
by means of arbitrarily renaming tables the other test depends on.

21 years agoalter_table test sometimes failed in parallel mode, because of transient
Tom Lane [Tue, 23 Dec 2003 20:17:55 +0000 (20:17 +0000)]
alter_table test sometimes failed in parallel mode, because of transient
table name conflict against rangefuncs test.

21 years agoRegenerate HISTORY for release.
Bruce Momjian [Mon, 22 Dec 2003 07:28:46 +0000 (07:28 +0000)]
Regenerate HISTORY for release.

21 years agoUpdate HISTORY for 7.4.1 release. REL7_4_1
Tom Lane [Sun, 21 Dec 2003 23:44:40 +0000 (23:44 +0000)]
Update HISTORY for 7.4.1 release.

21 years agoFix broken markup, adjust 7.4.1 release date, re-sync HEAD with branch.
Tom Lane [Sun, 21 Dec 2003 18:06:26 +0000 (18:06 +0000)]
Fix broken markup, adjust 7.4.1 release date, re-sync HEAD with branch.

21 years agoSome refining of release notes. Markup is still broken by someone else,
Peter Eisentraut [Sun, 21 Dec 2003 16:36:34 +0000 (16:36 +0000)]
Some refining of release notes.  Markup is still broken by someone else,
so I cannot remake HISTORY.

21 years agoUpdate 7.4.1 release notes in preparation for release.
Bruce Momjian [Sun, 21 Dec 2003 05:24:00 +0000 (05:24 +0000)]
Update 7.4.1 release notes in preparation for release.

21 years agoDept. of third thoughts: in fact, libpq should support SCM_CREDS challenge
Tom Lane [Sat, 20 Dec 2003 18:46:02 +0000 (18:46 +0000)]
Dept. of third thoughts: in fact, libpq should support SCM_CREDS challenge
even when HAVE_GETPEEREID is defined, else it will be unable to connect to
pre-7.4 backends that are using IDENT authentication.

21 years agoFix broken IDENT support for FreeBSD (appears to have been broken by
Tom Lane [Sat, 20 Dec 2003 18:25:02 +0000 (18:25 +0000)]
Fix broken IDENT support for FreeBSD (appears to have been broken by
ill-considered conditional logic in getpeereid patch of 3-Dec-2002).
Per bug #1021.

21 years agoUpdate INSTALL file for 7.4.1.
Peter Eisentraut [Sat, 20 Dec 2003 15:32:18 +0000 (15:32 +0000)]
Update INSTALL file for 7.4.1.

21 years agoUpdate HISTORY file for 7.4.1.
Bruce Momjian [Sat, 20 Dec 2003 00:57:32 +0000 (00:57 +0000)]
Update HISTORY file for 7.4.1.

21 years agoBackpatch pg_service.conf file change to not default dbname to match
Bruce Momjian [Fri, 19 Dec 2003 23:32:36 +0000 (23:32 +0000)]
Backpatch pg_service.conf file change to not default dbname to match
service name.

21 years agoSupress ecpg thread test if configure didn't enable threads. Fix
Bruce Momjian [Fri, 19 Dec 2003 23:29:29 +0000 (23:29 +0000)]
Supress ecpg thread test if configure didn't enable threads.  Fix
tools/thread to run even if configure didn't enable threads because this
test is used before enabling threads for the OS.

21 years ago7.4.1 release note improvements
Peter Eisentraut [Fri, 19 Dec 2003 20:06:14 +0000 (20:06 +0000)]
7.4.1 release note improvements

21 years agoForbid REVOKE on untrusted languages, and don't dump privileges of
Peter Eisentraut [Fri, 19 Dec 2003 14:21:43 +0000 (14:21 +0000)]
Forbid REVOKE on untrusted languages, and don't dump privileges of
untrusted languages (in case they sneak in).

21 years agoAdd missing $(X).
Peter Eisentraut [Fri, 19 Dec 2003 11:54:23 +0000 (11:54 +0000)]
Add missing $(X).

21 years agoMake to_hex() behave portably on negative input values (treat them as
Tom Lane [Fri, 19 Dec 2003 04:56:54 +0000 (04:56 +0000)]
Make to_hex() behave portably on negative input values (treat them as
unsigned integers).  Per report from Jim Crate.

21 years agoUse a shutdown callback to ensure proper clean up when rescanning
Joe Conway [Fri, 19 Dec 2003 00:00:27 +0000 (00:00 +0000)]
Use a shutdown callback to ensure proper clean up when rescanning
partially-evaluated SRFs. Per report found here:
http://archives.postgresql.org/pgsql-general/2003-12/msg00851.php

21 years agoFix memory leak with SSL connections due to missing X509_free() calls.
Tom Lane [Thu, 18 Dec 2003 22:49:34 +0000 (22:49 +0000)]
Fix memory leak with SSL connections due to missing X509_free() calls.
Per Neil Conway.

21 years agoUse a shutdown callback to clear setArgsValid in a FuncExprState that is
Tom Lane [Thu, 18 Dec 2003 22:23:55 +0000 (22:23 +0000)]
Use a shutdown callback to clear setArgsValid in a FuncExprState that is
evaluating a set-valued function.  This fixes some additional problems
with rescanning partially-evaluated SRFs.

21 years agoForgot to change one compatlib.h.
Peter Eisentraut [Thu, 18 Dec 2003 20:25:57 +0000 (20:25 +0000)]
Forgot to change one compatlib.h.

21 years agoEnsure set-returning functions in the targetlist of a plan node will be
Tom Lane [Thu, 18 Dec 2003 20:21:53 +0000 (20:21 +0000)]
Ensure set-returning functions in the targetlist of a plan node will be
shut down cleanly if the plan node is ReScanned before the SRFs are run
to completion.  This fixes the problem for SQL-language functions, but
still need work on functions using the SRF_XXX() macros.

21 years agoMove Informix compatibility include files out of the way. compatlib.h
Peter Eisentraut [Thu, 18 Dec 2003 18:55:06 +0000 (18:55 +0000)]
Move Informix compatibility include files out of the way.  compatlib.h
was integrated into ecpg_informix.h, the other ones go into their own
subdirectory that is automatically considered by the embedded preprocessor
when in Informix mode.

21 years agopatch for new OID74Test
Dave Cramer [Thu, 18 Dec 2003 04:18:15 +0000 (04:18 +0000)]
patch for new OID74Test

21 years agobackpatch for OID74Test to conform with jdbc tests
Dave Cramer [Thu, 18 Dec 2003 04:10:12 +0000 (04:10 +0000)]
backpatch for OID74Test to conform with jdbc tests

21 years agobackpatch for rs.previous from Kris Jurka, reported by Andrew Fyfe
Dave Cramer [Thu, 18 Dec 2003 03:35:55 +0000 (03:35 +0000)]
backpatch for rs.previous from Kris Jurka, reported by Andrew Fyfe

21 years agopatch for building for an alternate port
Dave Cramer [Thu, 18 Dec 2003 03:32:05 +0000 (03:32 +0000)]
patch for building for an alternate port

21 years agoback patch by Kris Jurka to get the correct protocol version from the server
Dave Cramer [Thu, 18 Dec 2003 03:29:12 +0000 (03:29 +0000)]
back patch by Kris Jurka to get the correct protocol version from the server

21 years agoAdjust rules output for unknown-vs-any change (affects expected contents
Tom Lane [Thu, 18 Dec 2003 01:48:59 +0000 (01:48 +0000)]
Adjust rules output for unknown-vs-any change (affects expected contents
of pg_stats view definition).

21 years agoinformation_schema.constraint_column_usage and key_column_usage should
Tom Lane [Wed, 17 Dec 2003 22:11:42 +0000 (22:11 +0000)]
information_schema.constraint_column_usage and key_column_usage should
not discriminate against system columns, since we support constraints on
system columns, and in fact constraints on OID are moderately useful.

21 years agoFix DecodeInterval to handle '-0.1' sanely, per gripe from Tilo Schwarz.
Tom Lane [Wed, 17 Dec 2003 21:45:51 +0000 (21:45 +0000)]
Fix DecodeInterval to handle '-0.1' sanely, per gripe from Tilo Schwarz.

21 years agoRepair badly broken estimation of output buffer size in lquery_out().
Tom Lane [Wed, 17 Dec 2003 20:15:53 +0000 (20:15 +0000)]
Repair badly broken estimation of output buffer size in lquery_out().

21 years agoReorder tests in parse_coerce so that ANY/ANYELEMENT/ANYARRAY coercion
Tom Lane [Wed, 17 Dec 2003 19:49:52 +0000 (19:49 +0000)]
Reorder tests in parse_coerce so that ANY/ANYELEMENT/ANYARRAY coercion
does not affect UNKNOWN-type literals or Params.  This fixes the recent
complaint about count('x') being broken, and improves consistency in
a few other respects too.

21 years agoRepair planner failure when there are multiple IN clauses, each with
Tom Lane [Wed, 17 Dec 2003 17:08:06 +0000 (17:08 +0000)]
Repair planner failure when there are multiple IN clauses, each with
a join in its subselect.  In this situation we *must* build a bushy
plan because there are no valid left-sided or right-sided join trees.
Accordingly, hoary sanity check needs an update.  Per report from
Alessandro Depase.

21 years agoback patching fix for compat 7.1 binary stream issues with the new protocol
Dave Cramer [Wed, 17 Dec 2003 15:48:40 +0000 (15:48 +0000)]
back patching fix for compat 7.1 binary stream issues with the new protocol
added test for same

21 years agoApplied all bug fixes from head also to 7.4. Just bugfixes, no new features.
Michael Meskes [Wed, 17 Dec 2003 15:31:51 +0000 (15:31 +0000)]
Applied all bug fixes from head also to 7.4. Just bugfixes, no new features.

21 years agoRestore information schema upgrade instructions of Peter.
Bruce Momjian [Wed, 17 Dec 2003 07:07:46 +0000 (07:07 +0000)]
Restore information schema upgrade instructions of Peter.

21 years agoFix constraint_column_usage for foreign keys.
Peter Eisentraut [Tue, 16 Dec 2003 14:56:34 +0000 (14:56 +0000)]
Fix constraint_column_usage for foreign keys.