]> granicus.if.org Git - postgresql/log
postgresql
21 years agoSuppress compile warnings on machines where the INT64CONST() decoration
Tom Lane [Sun, 13 Jun 2004 17:17:49 +0000 (17:17 +0000)]
Suppress compile warnings on machines where the INT64CONST() decoration
is actually needed.  Backport of Oliver Elphick's recent patch.

21 years agoNow needs to include <ctype.h>.
Tom Lane [Sat, 12 Jun 2004 20:31:48 +0000 (20:31 +0000)]
Now needs to include <ctype.h>.

21 years agoSome editorializing on 7.4.3 release notes.
Tom Lane [Sat, 12 Jun 2004 19:30:36 +0000 (19:30 +0000)]
Some editorializing on 7.4.3 release notes.

21 years agoMarkup fix.
Bruce Momjian [Sat, 12 Jun 2004 04:08:39 +0000 (04:08 +0000)]
Markup fix.

21 years agoFix markup
Bruce Momjian [Sat, 12 Jun 2004 04:03:45 +0000 (04:03 +0000)]
Fix markup

21 years agoUpdate release notes for 7.4.3.
Bruce Momjian [Sat, 12 Jun 2004 03:56:25 +0000 (03:56 +0000)]
Update release notes for 7.4.3.

21 years agoStamp 7.4.3. Still need release notes.
Bruce Momjian [Fri, 11 Jun 2004 18:17:54 +0000 (18:17 +0000)]
Stamp 7.4.3.  Still need release notes.

21 years agoECPG preprocessor for PostgreSQL 7.4.1, 7.4.2 doubles const,
Bruce Momjian [Fri, 11 Jun 2004 17:32:55 +0000 (17:32 +0000)]
ECPG preprocessor for PostgreSQL 7.4.1, 7.4.2 doubles const,
volatile, static, and register keywords before variables,
declared as VARCHAR.

Sergey N. Yatskevich

21 years agoTranslation updates
Peter Eisentraut [Thu, 10 Jun 2004 22:43:28 +0000 (22:43 +0000)]
Translation updates

21 years agoTranslation updates
Peter Eisentraut [Thu, 10 Jun 2004 17:23:12 +0000 (17:23 +0000)]
Translation updates

21 years agoTranslation update
Peter Eisentraut [Thu, 10 Jun 2004 17:19:47 +0000 (17:19 +0000)]
Translation update

21 years agoAdd Brazilian version of FAQ.
Bruce Momjian [Thu, 10 Jun 2004 03:46:45 +0000 (03:46 +0000)]
Add Brazilian version of FAQ.

Euler Taveira de Oliveira

21 years agoAdd missing check for too-few-inputs when replacing a zero-dimensional
Tom Lane [Tue, 8 Jun 2004 20:28:29 +0000 (20:28 +0000)]
Add missing check for too-few-inputs when replacing a zero-dimensional
array.

21 years agotag this as 7.4.3 and copyright date 2004
PostgreSQL Daemon [Tue, 8 Jun 2004 15:36:35 +0000 (15:36 +0000)]
tag this as 7.4.3 and copyright date 2004

21 years agoRemove asymetrical word processing in query and text
Teodor Sigaev [Mon, 7 Jun 2004 16:48:49 +0000 (16:48 +0000)]
Remove asymetrical word processing in query and text

21 years agoAdjust PageGetMaxOffsetNumber to ensure sane behavior on uninitialized
Tom Lane [Sat, 5 Jun 2004 17:42:50 +0000 (17:42 +0000)]
Adjust PageGetMaxOffsetNumber to ensure sane behavior on uninitialized
pages, even when the macro's result is stored into an unsigned variable.

21 years agoI think I've finally identified the cause of the off-by-one-second
Tom Lane [Mon, 31 May 2004 18:32:23 +0000 (18:32 +0000)]
I think I've finally identified the cause of the off-by-one-second
issue in timestamp conversion that we hacked around for so long by
ignoring the seconds field from localtime().  It's simple: you have
to watch out for platform-specific roundoff error when reducing a
possibly-fractional timestamp to integral time_t form.  In particular
we should subtract off the already-determined fractional fsec field.
This should be enough to get an exact answer with int64 timestamps;
with float timestamps, throw in a rint() call just to be sure.

21 years agoTranslation update
Peter Eisentraut [Sat, 29 May 2004 06:22:33 +0000 (06:22 +0000)]
Translation update

21 years agoFix problems in pg_autovacuum:
Bruce Momjian [Wed, 26 May 2004 18:48:37 +0000 (18:48 +0000)]
Fix problems in pg_autovacuum:

1) temp table crash

2) Check send_query() function call return value.

Backpatch to 7.4.X.

21 years ago[ Backpatch to 7.4.X.]
Bruce Momjian [Wed, 26 May 2004 18:27:23 +0000 (18:27 +0000)]
[ Backpatch to 7.4.X.]

Fix problem with doing 7.0.X dumps on character varying[] fields.

Christopher Kings-Lynne

21 years agoFix erroneous error message printout when a configuration file contains
Tom Lane [Tue, 25 May 2004 19:11:26 +0000 (19:11 +0000)]
Fix erroneous error message printout when a configuration file contains
an overlength token.  Printout was always garbage and could dump core
entirely :-(.  Per report from Martin Pitt.

21 years agoReduce pg_listener lock taken by NOTIFY et al from AccessExclusiveLock
Tom Lane [Sat, 22 May 2004 21:58:41 +0000 (21:58 +0000)]
Reduce pg_listener lock taken by NOTIFY et al from AccessExclusiveLock
to ExclusiveLock.  This still serializes the operations of this module,
but doesn't conflict with concurrent ANALYZE operations.  Per trouble
report from Philip Warner a few weeks ago.

21 years agoFixed DEALLOCATE PREPARE to use correct function call
Michael Meskes [Fri, 21 May 2004 13:50:59 +0000 (13:50 +0000)]
Fixed DEALLOCATE PREPARE to use correct function call

21 years agoFix setting timestamp values with very early year values, like 2, by
Kris Jurka [Mon, 17 May 2004 20:38:56 +0000 (20:38 +0000)]
Fix setting timestamp values with very early year values, like 2, by
formatting all years with four digits.  Previously 0002-10-30 was
being sent as 2-10-30 which got turned into 2030-02-10.

Per report from oneway_111.

21 years agoPropagate enlargeStringInfo() fixes into the equivalent code in
Tom Lane [Fri, 14 May 2004 00:20:51 +0000 (00:20 +0000)]
Propagate enlargeStringInfo() fixes into the equivalent code in
pqexpbuffer.c.  While a client-side failure doesn't seem like a
security issue, it's still a bug.

21 years agoTighten up overflow check in path_recv, pursuant to code review inspired
Tom Lane [Wed, 12 May 2004 22:39:00 +0000 (22:39 +0000)]
Tighten up overflow check in path_recv, pursuant to code review inspired
by Ken Ashcraft's report.  I think there is no actual bug here since if
the int32 value does wrap a little bit, palloc will still reject it.
Still it's better that the code be obviously correct.

21 years agoAdd tests to enlargeStringInfo() to avoid possible buffer-overrun or
Tom Lane [Tue, 11 May 2004 20:07:38 +0000 (20:07 +0000)]
Add tests to enlargeStringInfo() to avoid possible buffer-overrun or
infinite-loop problems if a bogus data length is passed.

21 years agoFix oversights in processing of LIMIT expressions during planning.
Tom Lane [Tue, 11 May 2004 13:15:23 +0000 (13:15 +0000)]
Fix oversights in processing of LIMIT expressions during planning.

21 years agoRepair recalculation failure for nested sub-SELECTs, per bug report from
Tom Lane [Tue, 11 May 2004 02:21:55 +0000 (02:21 +0000)]
Repair recalculation failure for nested sub-SELECTs, per bug report from
Didier Moens.  Bug is new in 7.4, and was caused by not updating everyplace
I should've when replacing locParam markers by allParam.

21 years agoJust another bug in adjust_informix.
Michael Meskes [Mon, 10 May 2004 13:46:39 +0000 (13:46 +0000)]
Just another bug in adjust_informix.

21 years ago- Fixed bug that reversed string length in typedefs.
Michael Meskes [Fri, 7 May 2004 13:43:29 +0000 (13:43 +0000)]
- Fixed bug that reversed string length in typedefs.

21 years agoAllow public access to radius field to match other geometric types
Kris Jurka [Fri, 7 May 2004 05:28:22 +0000 (05:28 +0000)]
Allow public access to radius field to match other geometric types
behavior.

Per report from Declan Lynch.

21 years agoNATURAL CROSS JOIN is a contradiction in terms, not to mention disallowed
Tom Lane [Fri, 7 May 2004 03:20:01 +0000 (03:20 +0000)]
NATURAL CROSS JOIN is a contradiction in terms, not to mention disallowed
by the SQL spec and by our parser.  Thanks to Jonathan Scott for finding
this longstanding error.

21 years agoDon't assume that struct timeval's tv_sec field is the same datatype as
Tom Lane [Wed, 5 May 2004 17:28:57 +0000 (17:28 +0000)]
Don't assume that struct timeval's tv_sec field is the same datatype as
time_t; on some platforms they are not the same width.  Per Manfred Koizar.

21 years agoUnset PGCLIENTENCODING to prevent backend from dying if it's set
Tom Lane [Wed, 5 May 2004 16:09:56 +0000 (16:09 +0000)]
Unset PGCLIENTENCODING to prevent backend from dying if it's set
to something incompatible with the -E option.

21 years agoFixed bug in adjust_informix that treated arrays as simple variables.
Michael Meskes [Wed, 5 May 2004 15:06:21 +0000 (15:06 +0000)]
Fixed bug in adjust_informix that treated arrays as simple variables.

21 years agoI thought we'd made initdb safe against newline-munging issues, but on
Tom Lane [Thu, 29 Apr 2004 19:56:35 +0000 (19:56 +0000)]
I thought we'd made initdb safe against newline-munging issues, but on
inspection we fixed only one of the two uses of COPY :-(.  Fix the other.
This is already correct in CVS tip, but 7.4.3 could use the patch.

21 years agoUpdate the build.xml file to support building with the new 1.5 jdk
Kris Jurka [Mon, 26 Apr 2004 08:28:32 +0000 (08:28 +0000)]
Update the build.xml file to support building with the new 1.5 jdk
and ant 1.6.

21 years agoEnsure getaddrinfo_all returns null result on failure.
Tom Lane [Sat, 24 Apr 2004 20:10:47 +0000 (20:10 +0000)]
Ensure getaddrinfo_all returns null result on failure.

21 years agoAllow updateable ResultSets to support types that aren't directly
Kris Jurka [Sat, 24 Apr 2004 01:54:45 +0000 (01:54 +0000)]
Allow updateable ResultSets to support types that aren't directly
mappable to Java types, for example cidr.

Per report from Moray Taylor.

21 years agoFixed memory misusage in variable handling.
Michael Meskes [Fri, 23 Apr 2004 06:17:27 +0000 (06:17 +0000)]
Fixed memory misusage in variable handling.

21 years agoFix typo
Peter Eisentraut [Thu, 22 Apr 2004 08:34:13 +0000 (08:34 +0000)]
Fix typo

21 years agoNew link for Solaris IPC article
Peter Eisentraut [Thu, 22 Apr 2004 08:31:36 +0000 (08:31 +0000)]
New link for Solaris IPC article

21 years agoTweak findTargetlistEntry so that bare names occurring in GROUP BY clauses
Tom Lane [Sun, 18 Apr 2004 18:13:31 +0000 (18:13 +0000)]
Tweak findTargetlistEntry so that bare names occurring in GROUP BY clauses
are sought first as local FROM columns, then as local SELECT-list aliases,
and finally as outer FROM columns; the former behavior made outer FROM
columns take precedence over aliases.  This does not change spec
conformance because SQL99 allows only the first case anyway, and it seems
more useful and self-consistent.  Per gripe from Dennis Bjorklund 2004-04-05.

21 years agoTranslation updates
Peter Eisentraut [Thu, 15 Apr 2004 08:13:00 +0000 (08:13 +0000)]
Translation updates

21 years agoStill another place to make the world safe for zero-column tables.
Tom Lane [Wed, 7 Apr 2004 18:46:20 +0000 (18:46 +0000)]
Still another place to make the world safe for zero-column tables.
Per example from Jiang Wei.

21 years agoSupport FULL JOIN with no join clauses, such as X FULL JOIN Y ON TRUE.
Tom Lane [Tue, 6 Apr 2004 18:46:25 +0000 (18:46 +0000)]
Support FULL JOIN with no join clauses, such as X FULL JOIN Y ON TRUE.
That particular corner case is not exactly compelling, but given 7.4's
ability to discard redundant join clauses, it is possible for the situation
to arise from queries that are not so obviously silly.  Per bug report
of 6-Apr-04.

21 years agoALTER SEQUENCE RESTART did the wrong thing if sequence last_value was
Tom Lane [Tue, 6 Apr 2004 16:39:40 +0000 (16:39 +0000)]
ALTER SEQUENCE RESTART did the wrong thing if sequence last_value was
equal to the desired restart value (must clear is_called, did not).
Per bug report #1127 from Piotr Konieczny.

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.