]> granicus.if.org Git - postgresql/log
postgresql
21 years agoTranslation updates
Peter Eisentraut [Mon, 5 Apr 2004 08:57:21 +0000 (08:57 +0000)]
Translation updates

21 years agoFix for bug with the jdbc driver not properly working with binary cursors and
Barry Lind [Mon, 29 Mar 2004 17:47:47 +0000 (17:47 +0000)]
Fix for bug with the jdbc driver not properly working with binary cursors and
the V3 protocol.
 Modified Files:
  Tag: REL7_4_STABLE
  jdbc/org/postgresql/Driver.java.in
  jdbc/org/postgresql/core/BaseResultSet.java
  jdbc/org/postgresql/core/BaseStatement.java
  jdbc/org/postgresql/core/Field.java
  jdbc/org/postgresql/core/PGStream.java
  jdbc/org/postgresql/core/QueryExecutor.java
  jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
  jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
  jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
  jdbc/org/postgresql/jdbc1/Jdbc1CallableStatement.java
  jdbc/org/postgresql/jdbc1/Jdbc1PreparedStatement.java
  jdbc/org/postgresql/jdbc1/Jdbc1RefCursorResultSet.java
  jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java
  jdbc/org/postgresql/jdbc1/Jdbc1Statement.java
  jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
  jdbc/org/postgresql/jdbc2/Array.java
  jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java
  jdbc/org/postgresql/jdbc2/Jdbc2PreparedStatement.java
  jdbc/org/postgresql/jdbc2/Jdbc2RefCursorResultSet.java
  jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
  jdbc/org/postgresql/jdbc2/Jdbc2Statement.java
  jdbc/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java
  jdbc/org/postgresql/jdbc3/Jdbc3CallableStatement.java
  jdbc/org/postgresql/jdbc3/Jdbc3PreparedStatement.java
  jdbc/org/postgresql/jdbc3/Jdbc3RefCursorResultSet.java
  jdbc/org/postgresql/jdbc3/Jdbc3ResultSet.java
  jdbc/org/postgresql/jdbc3/Jdbc3Statement.java
  jdbc/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
  jdbc/org/postgresql/test/jdbc2/OID74Test.java
 Added Files:
  Tag: REL7_4_STABLE
  jdbc/org/postgresql/test/jdbc2/ServerCursorTest.java

21 years agoFixed possible segfault in type.c (by Juergen Cappel)
Michael Meskes [Mon, 29 Mar 2004 15:12:08 +0000 (15:12 +0000)]
Fixed possible segfault in type.c (by Juergen Cappel)

21 years agoSome further editorializing on README.CVS.
Tom Lane [Sun, 28 Mar 2004 06:09:14 +0000 (06:09 +0000)]
Some further editorializing on README.CVS.

21 years agoAdd -D_REENTRANT for Solaris threading.
Bruce Momjian [Fri, 26 Mar 2004 18:24:16 +0000 (18:24 +0000)]
Add -D_REENTRANT for Solaris threading.

21 years agoUpdate solaris for threading.
Bruce Momjian [Thu, 25 Mar 2004 22:13:44 +0000 (22:13 +0000)]
Update solaris for threading.

21 years agoMinimize memory allocation for void (but not null) value.
Teodor Sigaev [Thu, 25 Mar 2004 16:50:49 +0000 (16:50 +0000)]
Minimize memory allocation for void (but not null) value.

21 years agofflush() FILE buffer to descriptor so stat call gets proper size in fseeko.c.
Bruce Momjian [Tue, 23 Mar 2004 05:27:02 +0000 (05:27 +0000)]
fflush() FILE buffer to descriptor so stat call gets proper size in fseeko.c.

Fixed problem with pg_dump tar backups.  Only happens on platforms that
use our port/fseeko.c, which is currently BSD/OS and NetBSD.

21 years agoFix getpwuid_r call:
Bruce Momjian [Tue, 23 Mar 2004 02:04:33 +0000 (02:04 +0000)]
Fix getpwuid_r call:

    *result = getpwuid_r(uid, resultbuf, buffer, buflen);

21 years agoIn working through a pg_autovacuum problem with Joe Conway (which turned
Bruce Momjian [Mon, 22 Mar 2004 03:57:19 +0000 (03:57 +0000)]
In working through a pg_autovacuum problem with Joe Conway (which turned
out to be the same problem reported by Cott Lang which the previous
patch resolved) a new bug was uncovered when running with a debug level
of greater than 1.

This patch resolves this new found bug and fixes some of the other
debugging output to be more consistent.

Please apply to both HEAD and the 7.4 branch.

Matthew T. O'Connor

21 years agoHandle draft version of getpwuid_r() that accepts only four arguments.
Bruce Momjian [Sat, 20 Mar 2004 15:39:40 +0000 (15:39 +0000)]
Handle draft version of getpwuid_r() that accepts only four arguments.

Backpatch to 7.4.X.  Required for Solaris 7 & 8.

21 years agoFix pg_autovacuum to handle unsigned and oids better.
Bruce Momjian [Wed, 17 Mar 2004 13:16:28 +0000 (13:16 +0000)]
Fix pg_autovacuum to handle unsigned and oids better.

Matthew T. O'Connor

21 years agoUpdate Solaris thread flags, per Jim Seymour
Bruce Momjian [Sun, 14 Mar 2004 23:51:57 +0000 (23:51 +0000)]
Update Solaris thread flags, per Jim Seymour

21 years agoFix error in termination of COPY IN mode when using V2 protocol.
Tom Lane [Sun, 14 Mar 2004 22:01:01 +0000 (22:01 +0000)]
Fix error in termination of COPY IN mode when using V2 protocol.
Report and fix per ljb, 8-Mar-04.

21 years ago> (I also see some post-7.4.1 changes in src/template/solaris, so you
Bruce Momjian [Sun, 14 Mar 2004 14:01:54 +0000 (14:01 +0000)]
> (I also see some post-7.4.1 changes in src/template/solaris, so you
> possibly should look there too.)
[snip]
>

I think I have the fix for part of it, but this remains...

    gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
    -Wmissing-declarations -fPIC -I. -I../../../src/include
    -D_POSIX_PTHREAD_SEMANTICS -DFRONTEND
    -DSYSCONFDIR='"/usr/local/pgsql/etc"'  -c -o thread.o thread.c
    thread.c: In function `pqGethostbyname':
    thread.c:189: error: `resbuf' undeclared (first use in this
function)

Looking at src/port/thread.c, line 189, it looks like somebody typo'd.
Looks like that second parameter should be "resultbuf", not "resbuf"?

Jim Seymour

21 years agoCommitted Informix compat bug fix to 7.4 as well.
Michael Meskes [Sun, 14 Mar 2004 12:18:35 +0000 (12:18 +0000)]
Committed Informix compat bug fix to 7.4 as well.

21 years agoRepair memory leakage introduced into the non-hashed aggregate case by
Tom Lane [Sat, 13 Mar 2004 00:54:35 +0000 (00:54 +0000)]
Repair memory leakage introduced into the non-hashed aggregate case by
7.4 rewrite for hashed aggregate support.  If the transition data type
is pass-by-reference, the transValue must be pfreed when starting a new
group boundary, else we have a one-value-per-group leakage.  Thanks to
Rae Steining for providing a reproducible test case.

21 years agoImprovements to README.CVS
Neil Conway [Wed, 10 Mar 2004 01:34:53 +0000 (01:34 +0000)]
Improvements to README.CVS

21 years agoRemove HISTORY and INSTALL. Have them generated by the tarball scripts.
Bruce Momjian [Wed, 10 Mar 2004 00:28:27 +0000 (00:28 +0000)]
Remove HISTORY and INSTALL.  Have them generated by the tarball scripts.

Add README.CVS to help CVS folks find this information.

21 years agoRemove blank line in Makefile.
Bruce Momjian [Tue, 9 Mar 2004 20:10:19 +0000 (20:10 +0000)]
Remove blank line in Makefile.

21 years agoAdd HISTORY/INSTALL clean target to 7.4.X.
Bruce Momjian [Tue, 9 Mar 2004 20:08:21 +0000 (20:08 +0000)]
Add HISTORY/INSTALL clean target to 7.4.X.

21 years agoRebuild HISTORY file to match our official style sheets.
Bruce Momjian [Tue, 9 Mar 2004 17:40:52 +0000 (17:40 +0000)]
Rebuild HISTORY file to match our official style sheets.

21 years agoUpdate German FAQ.
Bruce Momjian [Mon, 8 Mar 2004 17:39:04 +0000 (17:39 +0000)]
Update German FAQ.

Ian Barwick

21 years agoSome editorial work on 7.4.2 release notes. REL7_4_2
Tom Lane [Sun, 7 Mar 2004 22:08:09 +0000 (22:08 +0000)]
Some editorial work on 7.4.2 release notes.

21 years agoBrand 7.4.2. Release notes still need work.
Bruce Momjian [Fri, 5 Mar 2004 19:57:22 +0000 (19:57 +0000)]
Brand 7.4.2.  Release notes still need work.

21 years agoFirst update of release notes for 7.4.2. Still needs work.
Bruce Momjian [Fri, 5 Mar 2004 19:52:39 +0000 (19:52 +0000)]
First update of release notes for 7.4.2.  Still needs work.

21 years agolibpq's query to get the OIDs of large-object support functions was not
Tom Lane [Fri, 5 Mar 2004 01:54:13 +0000 (01:54 +0000)]
libpq's query to get the OIDs of large-object support functions was not
schema-safe.  Make it so, and improve the internal support for knowledge
of server version.

21 years agoFix log_executor_stats for non-multi queries. Backpatch to 7.4.X.
Bruce Momjian [Fri, 5 Mar 2004 00:21:51 +0000 (00:21 +0000)]
Fix log_executor_stats for non-multi queries.  Backpatch to 7.4.X.

21 years ago- Fixed segfault due to missing check for variable declaration.
Michael Meskes [Thu, 4 Mar 2004 07:38:50 +0000 (07:38 +0000)]
- Fixed segfault due to missing check for variable declaration.
- Added check for multidimensional array usage.

21 years agoUpdate build number in anticipation of 7.4.2 release. With no
Kris Jurka [Thu, 4 Mar 2004 03:25:10 +0000 (03:25 +0000)]
Update build number in anticipation of 7.4.2 release.  With no
currently outstanding issues we'll flag now, so the release doesn't
slip out the door without it.

21 years agoAlways schema-qualify the name of a function referenced in CREATE CAST.
Tom Lane [Tue, 2 Mar 2004 21:14:59 +0000 (21:14 +0000)]
Always schema-qualify the name of a function referenced in CREATE CAST.
The former coding failed if the cast function was not in the pg_catalog
schema.  How'd this escape detection?

21 years agoJunkfilter logic to force a projection step during SELECT INTO was too
Tom Lane [Tue, 2 Mar 2004 18:56:28 +0000 (18:56 +0000)]
Junkfilter logic to force a projection step during SELECT INTO was too
simplistic; it recognized SELECT * FROM but not SELECT * FROM LIMIT.
Per bug report from Jeff Bohmer.

21 years ago[ backpatch]
Bruce Momjian [Tue, 2 Mar 2004 18:38:28 +0000 (18:38 +0000)]
[ backpatch]

Add missing checks for Borland C compiler.

L J Bayuk

21 years agoUpdate Turkish FAQ, Devrim GUNDUZ
Bruce Momjian [Tue, 2 Mar 2004 15:46:34 +0000 (15:46 +0000)]
Update Turkish FAQ, Devrim GUNDUZ

21 years agoAdd missing sprompt.obj psql usage for Borland compiler, per private
Bruce Momjian [Tue, 2 Mar 2004 15:17:32 +0000 (15:17 +0000)]
Add missing sprompt.obj psql usage for Borland compiler, per private
report from krizsan.

Backpatch to 7.4.X.

21 years agoAdded the missing rules for VOLATILE.
Michael Meskes [Tue, 2 Mar 2004 06:52:18 +0000 (06:52 +0000)]
Added the missing rules for VOLATILE.

21 years agoUpdate release notes for 7.3.6.
Tom Lane [Tue, 2 Mar 2004 00:38:56 +0000 (00:38 +0000)]
Update release notes for 7.3.6.

21 years agoReplace unportable use of /dev/stdin with lynx's -stdin switch.
Tom Lane [Tue, 2 Mar 2004 00:03:08 +0000 (00:03 +0000)]
Replace unportable use of /dev/stdin with lynx's -stdin switch.

21 years agomake_sort_from_pathkeys()'s method for choosing which of several
Tom Lane [Sun, 29 Feb 2004 17:36:48 +0000 (17:36 +0000)]
make_sort_from_pathkeys()'s method for choosing which of several
equivalent sort expressions to use was broken: you can't just look
at the relation membership, you have to actually grovel over the
individual Vars in each expression.  I think this did work when it
was written, but it was broken by subsequent optimizations that made
join relations not propagate every single input variable upward.
Must find the Var that got propagated, not choose one at random.
Per bug report from Daniel O'Neill.

21 years agoTranslation updates
Dennis Bjorklund [Sat, 28 Feb 2004 11:16:58 +0000 (11:16 +0000)]
Translation updates

21 years agogenericcostestimate() neglected to include qual startup cost in
Tom Lane [Fri, 27 Feb 2004 21:44:44 +0000 (21:44 +0000)]
genericcostestimate() neglected to include qual startup cost in
indexTotalCost.  I think this may not make any real difference in 7.4,
but it definitely is a problem with CVS tip's new equation.

21 years agoprocess_implied_equality must copy the substructure of the clauses it
Tom Lane [Fri, 27 Feb 2004 21:42:10 +0000 (21:42 +0000)]
process_implied_equality must copy the substructure of the clauses it
is generating, to avoid problems when subselects are involved.  Per
report from Damon Hart.

21 years agoanyarray really needs to be declared with typalign = 'd', so that entries
Tom Lane [Tue, 24 Feb 2004 22:59:22 +0000 (22:59 +0000)]
anyarray really needs to be declared with typalign = 'd', so that entries
in pg_statistic are correctly aligned if they contain values that require
double alignment.  Too bad we cannot force initdb for this in 7.4 branch.

21 years ago- Corrected error handling in PGTYPEStimestamp_from_asc.
Michael Meskes [Tue, 24 Feb 2004 16:09:16 +0000 (16:09 +0000)]
- Corrected error handling in PGTYPEStimestamp_from_asc.
- Set pgtypeslib version to 1.2.

21 years agoClosing a Connection or Statement object twice should be a no-op
Kris Jurka [Tue, 24 Feb 2004 13:11:45 +0000 (13:11 +0000)]
Closing a Connection or Statement object twice should be a no-op
instead of throwing an Exception.

Per report from Victor Sergienko.

21 years agoWhen returning type "record", replace use of pgresultGetTupleDesc
Joe Conway [Tue, 24 Feb 2004 06:07:34 +0000 (06:07 +0000)]
When returning type "record", replace use of pgresultGetTupleDesc
with ReturnSetInfo->expectedDesc. This allows custom datatypes
(e.g. from tsearch2) to be returned at runtime. Previous behavior
depended on the type oid to match between the remote and local
database, which obviously doesn't work well for custom types.
Per report from Mark Gibson.

21 years agoApply quote_literal to the start_with argument of connectby. Fixes problem
Joe Conway [Tue, 24 Feb 2004 05:26:07 +0000 (05:26 +0000)]
Apply quote_literal to the start_with argument of connectby. Fixes problem
reported by David Garamond when working with bytea parent and child keys.

21 years agoCause pg_dump to emit a 'SET client_encoding' command at the start of
Tom Lane [Tue, 24 Feb 2004 03:35:45 +0000 (03:35 +0000)]
Cause pg_dump to emit a 'SET client_encoding' command at the start of
any restore operation, thereby ensuring that dumped data is interpreted
the same way it was dumped even if the target database has a different
encoding.  Per suggestions from Pavel Stehule and others.  Also,
simplify scheme for handling check_function_bodies ... we may as well
just set that at the head of the script.

21 years agoDon't crash when a rowtype argument to a plpgsql function is NULL.
Tom Lane [Tue, 24 Feb 2004 01:44:47 +0000 (01:44 +0000)]
Don't crash when a rowtype argument to a plpgsql function is NULL.
Per report from Chris Campbell.

21 years agoReplace opendir/closedir calls throughout the backend with AllocateDir
Tom Lane [Mon, 23 Feb 2004 23:03:43 +0000 (23:03 +0000)]
Replace opendir/closedir calls throughout the backend with AllocateDir
and FreeDir routines modeled on the existing AllocateFile/FreeFile.
Like the latter, these routines will avoid failing on EMFILE/ENFILE
conditions whenever possible, and will prevent leakage of directory
descriptors if an elog() occurs while one is open.
Also, reduce PANIC to ERROR in MoveOfflineLogs() --- this is not
critical code and there is no reason to force a DB restart on failure.
All per recent trouble report from Olivier Hubaut.

21 years agoDo a direct probe during postmaster startup to determine the maximum
Tom Lane [Mon, 23 Feb 2004 20:46:16 +0000 (20:46 +0000)]
Do a direct probe during postmaster startup to determine the maximum
number of openable files and the number already opened.  This eliminates
depending on sysconf(_SC_OPEN_MAX), and allows much saner behavior on
platforms where open-file slots are used up by semaphores.

21 years agoFixed incorrect output of indicator structs using the name of the data struct.
Michael Meskes [Mon, 23 Feb 2004 18:14:30 +0000 (18:14 +0000)]
Fixed incorrect output of indicator structs using the name of the data struct.

21 years agoThe following bug has been logged online:
Bruce Momjian [Sat, 21 Feb 2004 03:48:55 +0000 (03:48 +0000)]
The following bug has been logged online:

Bug reference:      1081
Logged by:          Aarjav Trivedi

Email address:      aarjav@cc.gatech.edu

PostgreSQL version: 7.4

Operating system:   Linux

Description:        Spelling error in tsearch2.sql leading to problems
with
tsearch

Details:

On line 620 of tsearch2.sql which is required to install and run
TSEARCH,

REATE FUNCTION tsstat_in(cstring)

should be

CREATE FUNCTION tsstat_in(cstring)

because of this error, TSEARCH fails to work as specified,

21 years agoImplement a solution to the 'Turkish locale downcases I incorrectly'
Tom Lane [Sat, 21 Feb 2004 00:35:13 +0000 (00:35 +0000)]
Implement a solution to the 'Turkish locale downcases I incorrectly'
problem, per previous discussion.  Make some additional changes to
centralize the knowledge of just how identifier downcasing is done,
in hopes of simplifying any future tweaking in this area.

21 years ago- Allowed some C keywords to be used as SQL column names. This used to work in 7.3.*
Michael Meskes [Sun, 15 Feb 2004 15:40:54 +0000 (15:40 +0000)]
- Allowed some C keywords to be used as SQL column names. This used to work in 7.3.*

21 years ago - Added missing braces to array parsing.
Michael Meskes [Sun, 15 Feb 2004 13:50:02 +0000 (13:50 +0000)]
    - Added missing braces to array parsing.
        - Set ecpg version to 3.1.1.
        - Removed that old debugging output that I forgot the last time.

21 years agoRepair optimization bug I introduced in a moment of brain fade back in
Tom Lane [Fri, 13 Feb 2004 22:26:43 +0000 (22:26 +0000)]
Repair optimization bug I introduced in a moment of brain fade back in
Nov 2002: when constant-expression simplification removes all the
aggregate function calls from a query, that doesn't mean we can act as
though there never were any aggregates.  Per bug report from Gabor Szucs.

21 years agoTom Lane wrote:
Bruce Momjian [Fri, 13 Feb 2004 04:40:43 +0000 (04:40 +0000)]
Tom Lane wrote:
> momjian@svr1.postgresql.org (Bruce Momjian) writes:
>>      someone asked me about the FK deadlock fix, mentioned in the 7.3.3
>>      release notes as 3rd change:
>>      http://www.postgresql.org/docs/current/static/release-7-3-3.html
>>      Actually, that fix was available with 7.4, not 7.3. Don't know if we can
>>      retroactively change the release-notes though.
>
> This is completely erroneous, please undo it.
>
> 2003-05-21 14:14  tgl
>
>       * src/: backend/utils/adt/ri_triggers.c,
>       test/regress/expected/foreign_key.out (REL7_3_STABLE): Back-patch
>       Jan's fix to avoid primary key lookup (and lock) if foreign key
>       does not change on UPDATE.

Oh ... didn't know that you did a backpatch. Sorry

Jan

21 years agoJan:
Bruce Momjian [Thu, 12 Feb 2004 20:18:13 +0000 (20:18 +0000)]
Jan:

someone asked me about the FK deadlock fix, mentioned in the 7.3.3
release notes as 3rd change:

     http://www.postgresql.org/docs/current/static/release-7-3-3.html

Actually, that fix was available with 7.4, not 7.3. Don't know if we can
retroactively change the release-notes though.

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.