Kris Jurka [Mon, 13 Sep 2004 07:14:26 +0000 (07:14 +0000)]
ResultSet.moveToCurrentRow was checking the cached updateability flag
assuming it had been set instead of correctly calling the
isUpdateable() method which sets the flag if needed. This usually
worked because moveToCurrentRow is only useful after a
moveToInsertRow call which would set the flag, but this is not
required.
David Bucciarelli
Neil Conway [Mon, 13 Sep 2004 01:59:35 +0000 (01:59 +0000)]
Due to popular domand, backport fix for a typo in the SELECT reference
page, per Thomas F. O'Connell.
Tom Lane [Sat, 11 Sep 2004 16:15:26 +0000 (16:15 +0000)]
Fix bogus example for bit-string XOR (already fixed in HEAD).
Per Grzegorz Wojdyla.
Tom Lane [Mon, 6 Sep 2004 18:23:09 +0000 (18:23 +0000)]
Back-patch fix to disallow BEGIN/COMMIT/ROLLBACK inside SQL functions.
Not sure why this isn't causing serious problems in some simple tests,
but it definitely isn't going to do anything desirable...
Tom Lane [Tue, 31 Aug 2004 23:16:36 +0000 (23:16 +0000)]
Repair 'expected both swapped tables to have TOAST tables' bug in 7.4
branch. I wasn't excited about doing this when the first report came in,
but now that we have two of 'em, I suppose it had better get fixed.
Bruce Momjian [Sat, 28 Aug 2004 21:10:00 +0000 (21:10 +0000)]
Prevent pg_ctl restart from adding -D datadir multiple times.
Tom Lane [Fri, 27 Aug 2004 17:47:56 +0000 (17:47 +0000)]
Make gistindex_keytest safe against NULL values. Same fix was already
made in passing for 8.0, but now that we have a bug report showing it's
needed, we should put it into 7.4 branch.
Peter Eisentraut [Tue, 24 Aug 2004 21:45:13 +0000 (21:45 +0000)]
Translation update
Tom Lane [Wed, 18 Aug 2004 03:11:25 +0000 (03:11 +0000)]
Brand 7.4.5 ... now that was our shortest-lived release ever ...
Tom Lane [Wed, 18 Aug 2004 03:03:49 +0000 (03:03 +0000)]
Update release history for 7.4.5.
Tom Lane [Tue, 17 Aug 2004 23:16:07 +0000 (23:16 +0000)]
Fix bug introduced into _bt_getstackbuf() on 2003-Feb-21: the initial
value of 'start' could be past the end of the page, if the page was
split by some concurrent inserting process since we visited it. In
this situation the code could look at bogus entries and possibly find
a match (since after all those entries still contain what they had
before the split). This would lead to 'specified item offset is too large'
followed by 'PANIC: failed to add item to the page', as reported by Joe
Conway for scenarios involving heavy concurrent insertion activity.
Tom Lane [Sun, 15 Aug 2004 00:24:04 +0000 (00:24 +0000)]
Stamp 7.4.4.
Tom Lane [Sat, 14 Aug 2004 22:24:49 +0000 (22:24 +0000)]
Back-patch fix for \r\n line endings in psql's COPY support.
Andrew Dunstan.
Peter Eisentraut [Sat, 14 Aug 2004 19:14:28 +0000 (19:14 +0000)]
Translation update
Peter Eisentraut [Fri, 13 Aug 2004 16:42:51 +0000 (16:42 +0000)]
Translation update
Kris Jurka [Fri, 13 Aug 2004 05:18:45 +0000 (05:18 +0000)]
New build for the 7.4.4 release.
Tom Lane [Wed, 11 Aug 2004 21:10:52 +0000 (21:10 +0000)]
Avoid crashing when restoring a saved GUC session_authorization value
that refers to a now-deleted userid. Per gripe from Chris Ochs.
Kris Jurka [Wed, 11 Aug 2004 06:56:00 +0000 (06:56 +0000)]
Decode V3 notice messages instead of leaving them in raw form.
From Donald Fraser.
Kris Jurka [Wed, 11 Aug 2004 06:40:16 +0000 (06:40 +0000)]
DatabaseMetaData.getSearchString escape was a \ short of working
because both Java's String constructor and pg's input parser strip
off backslashes.
Tom Lane [Wed, 11 Aug 2004 04:08:02 +0000 (04:08 +0000)]
Fix failure to guarantee that a checkpoint will write out pg_clog updates
for transaction commits that occurred just before the checkpoint. This is
an EXTREMELY serious bug --- kudos to Satoshi Okada for creating a
reproducible test case to prove its existence.
Joe Conway [Wed, 11 Aug 2004 01:02:08 +0000 (01:02 +0000)]
Hashed crosstab was dying with an SPI_finish error when the source SQL
produced no rows. Now it returns 0 rows instead. Adjusted regression
test for this case.
Peter Eisentraut [Tue, 10 Aug 2004 18:37:53 +0000 (18:37 +0000)]
Translation update
Peter Eisentraut [Sun, 25 Jul 2004 11:49:20 +0000 (11:49 +0000)]
Change declared encoding
Peter Eisentraut [Sun, 25 Jul 2004 11:44:57 +0000 (11:44 +0000)]
New translation
Michael Meskes [Tue, 20 Jul 2004 18:22:53 +0000 (18:22 +0000)]
Fixed handling of cyclic defines.
Tom Lane [Mon, 19 Jul 2004 21:02:42 +0000 (21:02 +0000)]
Fix incorrect tracking of session authorization in the presence of ACLs
that contain rights granted by non-owners. Per bug report from
Nishad Prakash.
Tom Lane [Sat, 17 Jul 2004 17:28:47 +0000 (17:28 +0000)]
When renaming a column that participates in a foreign key, we must
force relcache rebuild for the other table as well as the column's
own table. Otherwise, already-cached foreign key triggers will stop
working. Per example from Alexander Pravking.
Kris Jurka [Thu, 15 Jul 2004 10:00:20 +0000 (10:00 +0000)]
When retrieving an array of numerics it attempted to set the scale on
the retrieved data to zero, which doesn't work for non-integer values.
Oliver Dauben
Tom Lane [Sat, 10 Jul 2004 18:39:44 +0000 (18:39 +0000)]
Test HAVING condition before computing targetlist of an Aggregate node.
This is required by SQL spec to avoid failures in cases like
SELECT sum(win)/sum(lose) FROM ... GROUP BY ... HAVING sum(lose) > 0;
AFAICT we have gotten this wrong since day one. Kudos to Holger Jakobs
for being the first to notice.
Bruce Momjian [Thu, 8 Jul 2004 18:25:22 +0000 (18:25 +0000)]
OK, another try at Darwin threads.
Bruce Momjian [Thu, 8 Jul 2004 16:27:58 +0000 (16:27 +0000)]
Remove OSX thread flags. No consistent report.
Bruce Momjian [Wed, 7 Jul 2004 13:04:48 +0000 (13:04 +0000)]
Add OSX thread support for next 7.4.X
Tom Lane [Tue, 6 Jul 2004 04:50:54 +0000 (04:50 +0000)]
Fix broken logic for pretty-printing parenthesis-suppression in UNION
et al.
Michael Meskes [Mon, 5 Jul 2004 18:54:01 +0000 (18:54 +0000)]
Added free() calls against memory leak in interval.c.
Peter Eisentraut [Fri, 2 Jul 2004 15:02:29 +0000 (15:02 +0000)]
Translation update
Peter Eisentraut [Tue, 29 Jun 2004 20:46:35 +0000 (20:46 +0000)]
Override upstream DSSSL style sheet formatting changes
Michael Meskes [Sun, 27 Jun 2004 12:32:47 +0000 (12:32 +0000)]
- Only use typedefs inside their scope.
- Variables that are out of scope, were not removed all the time.
- Make a varchar NULL set everything to 0 when not using indicators.
Kris Jurka [Thu, 24 Jun 2004 09:51:44 +0000 (09:51 +0000)]
Fix apparently harmless typo. {$srcdir} -> ${srcdir}
Markus Schaber
Teodor Sigaev [Wed, 23 Jun 2004 10:03:57 +0000 (10:03 +0000)]
Fix stupid bug in installcheck
Kris Jurka [Tue, 22 Jun 2004 09:37:03 +0000 (09:37 +0000)]
Close the existing socket connection when reverting to the V2
protocol, or encountering other connection failures.
Laurent Sylvain
Kris Jurka [Mon, 21 Jun 2004 03:12:01 +0000 (03:12 +0000)]
Fix some problems with result sets positioned before the start or
after the end of results. You could still call a number of methods
on them like getXXX, updateXXX, and updateRow().
Kris Jurka [Mon, 21 Jun 2004 02:01:12 +0000 (02:01 +0000)]
Fix updatable ResultSets stream methods (ascii, character, binary).
The existing code didn't correctly allocate data arrays, and it
failed to loop when a stream didn't provide the full amount of
data requested of it.
Reported by Jan de Visser.
Kris Jurka [Fri, 18 Jun 2004 05:29:11 +0000 (05:29 +0000)]
Foreign key information results should have column name FKTABLE_CAT
instead of FK_TABLE_CAT.
From jeff@bonevich.com.
Michael Meskes [Thu, 17 Jun 2004 11:52:59 +0000 (11:52 +0000)]
Added patch by ISHIDA Akio to allow indicators in execute statements.
Kris Jurka [Wed, 16 Jun 2004 18:28:45 +0000 (18:28 +0000)]
Don't throw an Exception in locatorsUpdateCopy() even though the
ability to update LOBs is unimplemented. The 1.5 JDK's CachedRowSet
implementation calls this method regardless of whether large objects
are used or not.
Kris Jurka [Wed, 16 Jun 2004 05:23:33 +0000 (05:23 +0000)]
Bump the build number to relase a new version.
Kris Jurka [Wed, 16 Jun 2004 05:12:13 +0000 (05:12 +0000)]
When deleteRow() is called on an updateable ResultSet the ResultSet
should be positioned on the previous row.
Reported by Bob Messenger and Chris Pesarchick.
Bruce Momjian [Wed, 16 Jun 2004 03:47:35 +0000 (03:47 +0000)]
Do PGAC_FUNC_GETPWUID_R_5ARG check with the proper thread flags. This
fixes Solaris thread compiles.
Kris Jurka [Wed, 16 Jun 2004 03:36:56 +0000 (03:36 +0000)]
Fix DatabaseMetaData results for determining foreign key
relationships. Resulting columns from getImportedExportedKeys should
be FKTABLE_SCHEM and PKTABLE_SCHEM, not _SCHEMA.
Per report from jeff@bonevich.com.
Peter Eisentraut [Sun, 13 Jun 2004 21:50:04 +0000 (21:50 +0000)]
Remove README.CVS when making a distribution.
Peter Eisentraut [Sun, 13 Jun 2004 21:41:20 +0000 (21:41 +0000)]
Translation update
Tom Lane [Sun, 13 Jun 2004 17:51:16 +0000 (17:51 +0000)]
Correct erroneous table title, per Halley Pacheco de Oliveira.
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.
Tom Lane [Sat, 12 Jun 2004 20:31:48 +0000 (20:31 +0000)]
Now needs to include <ctype.h>.
Tom Lane [Sat, 12 Jun 2004 19:30:36 +0000 (19:30 +0000)]
Some editorializing on 7.4.3 release notes.
Bruce Momjian [Sat, 12 Jun 2004 04:08:39 +0000 (04:08 +0000)]
Markup fix.
Bruce Momjian [Sat, 12 Jun 2004 04:03:45 +0000 (04:03 +0000)]
Fix markup
Bruce Momjian [Sat, 12 Jun 2004 03:56:25 +0000 (03:56 +0000)]
Update release notes for 7.4.3.
Bruce Momjian [Fri, 11 Jun 2004 18:17:54 +0000 (18:17 +0000)]
Stamp 7.4.3. Still need release notes.
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
Peter Eisentraut [Thu, 10 Jun 2004 22:43:28 +0000 (22:43 +0000)]
Translation updates
Peter Eisentraut [Thu, 10 Jun 2004 17:23:12 +0000 (17:23 +0000)]
Translation updates
Peter Eisentraut [Thu, 10 Jun 2004 17:19:47 +0000 (17:19 +0000)]
Translation update
Bruce Momjian [Thu, 10 Jun 2004 03:46:45 +0000 (03:46 +0000)]
Add Brazilian version of FAQ.
Euler Taveira de Oliveira
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.
PostgreSQL Daemon [Tue, 8 Jun 2004 15:36:35 +0000 (15:36 +0000)]
tag this as 7.4.3 and copyright date 2004
Teodor Sigaev [Mon, 7 Jun 2004 16:48:49 +0000 (16:48 +0000)]
Remove asymetrical word processing in query and text
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.
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.
Peter Eisentraut [Sat, 29 May 2004 06:22:33 +0000 (06:22 +0000)]
Translation update
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.
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
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.
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.
Michael Meskes [Fri, 21 May 2004 13:50:59 +0000 (13:50 +0000)]
Fixed DEALLOCATE PREPARE to use correct function call
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.
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.
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.
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.
Tom Lane [Tue, 11 May 2004 13:15:23 +0000 (13:15 +0000)]
Fix oversights in processing of LIMIT expressions during planning.
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.
Michael Meskes [Mon, 10 May 2004 13:46:39 +0000 (13:46 +0000)]
Just another bug in adjust_informix.
Michael Meskes [Fri, 7 May 2004 13:43:29 +0000 (13:43 +0000)]
- Fixed bug that reversed string length in typedefs.
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.
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.
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.
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.
Michael Meskes [Wed, 5 May 2004 15:06:21 +0000 (15:06 +0000)]
Fixed bug in adjust_informix that treated arrays as simple variables.
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.
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.
Tom Lane [Sat, 24 Apr 2004 20:10:47 +0000 (20:10 +0000)]
Ensure getaddrinfo_all returns null result on failure.
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.
Michael Meskes [Fri, 23 Apr 2004 06:17:27 +0000 (06:17 +0000)]
Fixed memory misusage in variable handling.
Peter Eisentraut [Thu, 22 Apr 2004 08:34:13 +0000 (08:34 +0000)]
Fix typo
Peter Eisentraut [Thu, 22 Apr 2004 08:31:36 +0000 (08:31 +0000)]
New link for Solaris IPC article
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.
Peter Eisentraut [Thu, 15 Apr 2004 08:13:00 +0000 (08:13 +0000)]
Translation updates
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.
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.
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.