]> granicus.if.org Git - postgresql/log
postgresql
20 years agoAdd comment about permissions on pg_ts* tables
Teodor Sigaev [Tue, 19 Apr 2005 13:59:06 +0000 (13:59 +0000)]
Add comment about permissions on pg_ts* tables

20 years agoWhen positioned before the start of a ResultSet issuing relative(0)
Kris Jurka [Mon, 18 Apr 2005 18:25:11 +0000 (18:25 +0000)]
When positioned before the start of a ResultSet issuing relative(0)
results in an exception being thrown when it really should be a
no-op.

20 years agoDon't try to constant-fold functions returning RECORD, since the optimizer
Tom Lane [Thu, 14 Apr 2005 21:44:35 +0000 (21:44 +0000)]
Don't try to constant-fold functions returning RECORD, since the optimizer
isn't presently set up to pass them an expected tuple descriptor.  Bug has
been there since 7.3 but was just recently reported by Thomas Hallgren.

20 years agoMake constant-folding produce sane output for COALESCE(NULL,NULL),
Tom Lane [Sun, 10 Apr 2005 20:58:03 +0000 (20:58 +0000)]
Make constant-folding produce sane output for COALESCE(NULL,NULL),
that is a plain NULL and not a COALESCE with no inputs.  Fixes crash
reported by Michael Williamson.

20 years agoIn cost_mergejoin, the early-exit effect should not apply to the
Tom Lane [Mon, 4 Apr 2005 01:43:33 +0000 (01:43 +0000)]
In cost_mergejoin, the early-exit effect should not apply to the
outer side of an outer join.  Per andrew@supernews.

20 years agoFlush any remaining statistics counts out to the collector at process
Tom Lane [Thu, 31 Mar 2005 23:21:32 +0000 (23:21 +0000)]
Flush any remaining statistics counts out to the collector at process
exit.  Without this, operations triggered during backend exit (such as
temp table deletions) won't be counted ... which given heavy usage of
temp tables can lead to pg_autovacuum falling way behind on the need
to vacuum pg_class and pg_attribute.  Per reports from Steve Crawford
and others.

20 years agoFix various comparing functions
Teodor Sigaev [Thu, 31 Mar 2005 15:12:08 +0000 (15:12 +0000)]
Fix various comparing functions

20 years agoPrevent to_char(interval) from dumping core on month-related formats
Tom Lane [Sat, 26 Mar 2005 00:42:21 +0000 (00:42 +0000)]
Prevent to_char(interval) from dumping core on month-related formats
when a zero-month interval is given.  Per discussion with Karel.

20 years agoarray_map can't use the fn_extra field of the provided fcinfo struct as
Tom Lane [Thu, 24 Mar 2005 21:51:04 +0000 (21:51 +0000)]
array_map can't use the fn_extra field of the provided fcinfo struct as
its private storage, because that belongs to the function that it is
supposed to call.  Per report from Ezequiel Tolnay.

20 years agoPrevious "64-bit fix" for intagg didn't actually work. This is already
Tom Lane [Wed, 23 Mar 2005 19:07:03 +0000 (19:07 +0000)]
Previous "64-bit fix" for intagg didn't actually work.  This is already
fixed properly in CVS tip, but we need a band-aid for back branches.
Per report from Ron Mayer.

20 years agoFix ALTER DATABASE RENAME to allow the operation if user is a superuser
Tom Lane [Sat, 12 Mar 2005 21:12:18 +0000 (21:12 +0000)]
Fix ALTER DATABASE RENAME to allow the operation if user is a superuser
who for some reason isn't marked usecreatedb.  Per report from Alexander
Pravking.  Also fix sloppy coding in have_createdb_privilege().

20 years agoSome builds (depends on crypto engine support?) of OpenSSL
Neil Conway [Sat, 12 Mar 2005 06:55:14 +0000 (06:55 +0000)]
Some builds (depends on crypto engine support?) of OpenSSL
0.9.7x have EVP_DigestFinal function which which clears all of
EVP_MD_CTX.  This makes pgcrypto crash in functions which
re-use one digest context several times: hmac() and crypt()
with md5 algorithm.

Following patch fixes it by carring the digest info around
EVP_DigestFinal and re-initializing cipher.

Marko Kreen.

20 years agoPrevent rank change in case of duplicate search terms
Teodor Sigaev [Sat, 5 Mar 2005 16:19:33 +0000 (16:19 +0000)]
Prevent rank change in case of duplicate search terms

20 years agoRelease proclock immediately in RemoveFromWaitQueue() if it represents
Tom Lane [Tue, 1 Mar 2005 21:15:26 +0000 (21:15 +0000)]
Release proclock immediately in RemoveFromWaitQueue() if it represents
no held locks.  This maintains the invariant that proclocks are present
only for procs that are holding or awaiting a lock; when this is not
true, LockRelease will fail.  Per report from Stephen Clouse.

20 years agoDocument that only a table's owner may TRUNCATE it. Per Keith Worthington.
Tom Lane [Tue, 22 Feb 2005 19:06:49 +0000 (19:06 +0000)]
Document that only a table's owner may TRUNCATE it.  Per Keith Worthington.

20 years agoEnsure that the resolved datatype of any unknown Param is propagated
Tom Lane [Sat, 19 Feb 2005 19:33:42 +0000 (19:33 +0000)]
Ensure that the resolved datatype of any unknown Param is propagated
into the sub-SELECT targetlist when it appears in the context
INSERT INTO foo SELECT $1 ...  Per report from Abhijit Menon-Sen.

20 years agoALTER LANGUAGE RENAME has never worked. Per Sergey Yatskevich.
Tom Lane [Mon, 14 Feb 2005 06:18:09 +0000 (06:18 +0000)]
ALTER LANGUAGE RENAME has never worked.  Per Sergey Yatskevich.

20 years agoBack-patch fix for a typo that unintentionally disabled backward scans
Tom Lane [Thu, 10 Feb 2005 20:37:15 +0000 (20:37 +0000)]
Back-patch fix for a typo that unintentionally disabled backward scans
for all SPI-created cursors.

20 years agoIf we're gonna check for array overrun, we really should do so before
Tom Lane [Tue, 8 Feb 2005 18:22:11 +0000 (18:22 +0000)]
If we're gonna check for array overrun, we really should do so before
overrunning the array, not after.

20 years agoPrevent 4 more buffer overruns in the PL/PgSQL parser. This is just a
Neil Conway [Mon, 7 Feb 2005 03:55:28 +0000 (03:55 +0000)]
Prevent 4 more buffer overruns in the PL/PgSQL parser. This is just a
minimally-invasive fix for stable branches; a cleaner fix will be
committed to HEAD soon.

20 years agoRepair CLUSTER failure after ALTER TABLE SET WITHOUT OIDS. Turns out
Tom Lane [Sun, 6 Feb 2005 20:19:42 +0000 (20:19 +0000)]
Repair CLUSTER failure after ALTER TABLE SET WITHOUT OIDS.  Turns out
there are corner cases involving dropping toasted columns in which the
previous coding would fail, too: the new version of the table might not
have any TOAST table, but we'd still propagate possibly-wide values of
dropped columns forward.

20 years agoBack-port heap_deformtuple() into 7.4 branch; needed for planned fix for
Tom Lane [Sun, 6 Feb 2005 20:15:32 +0000 (20:15 +0000)]
Back-port heap_deformtuple() into 7.4 branch; needed for planned fix for
CLUSTER failure after ALTER TABLE SET WITHOUT OIDS.

20 years agoRecommend security@postgresql.org as the contact point for security-related bugs. REL7_4_7
Tom Lane [Sun, 30 Jan 2005 21:32:10 +0000 (21:32 +0000)]
Recommend security@postgresql.org as the contact point for security-related bugs.

20 years agoStamp release 7.4.7.
Tom Lane [Sun, 30 Jan 2005 19:32:22 +0000 (19:32 +0000)]
Stamp release 7.4.7.

20 years agoWe haven't had a fixed limit on rule recursion depth since 7.3 ...
Tom Lane [Sat, 29 Jan 2005 23:46:16 +0000 (23:46 +0000)]
We haven't had a fixed limit on rule recursion depth since 7.3 ...
but the documentation still said so.

20 years agoMake sure contrib C functions are marked strict where needed.
Tom Lane [Sat, 29 Jan 2005 22:35:30 +0000 (22:35 +0000)]
Make sure contrib C functions are marked strict where needed.
Kris Jurka

20 years agoCheck that aggregate creator has the right to execute the transition
Tom Lane [Thu, 27 Jan 2005 23:43:16 +0000 (23:43 +0000)]
Check that aggregate creator has the right to execute the transition
functions of the aggregate, at both aggregate creation and execution times.

20 years agoNow that I look at it, int_array_enum() didn't work either.
Tom Lane [Thu, 27 Jan 2005 21:50:15 +0000 (21:50 +0000)]
Now that I look at it, int_array_enum() didn't work either.

20 years agoFix security and 64-bit issues in contrib/intagg. This code could
Tom Lane [Thu, 27 Jan 2005 21:35:56 +0000 (21:35 +0000)]
Fix security and 64-bit issues in contrib/intagg.  This code could
stand to be rewritten altogether, but for now just stick a finger in
the dike.

20 years agoBack-patch 8.0 version of plperl_hash_from_tuple() into prior releases
Tom Lane [Wed, 26 Jan 2005 17:09:21 +0000 (17:09 +0000)]
Back-patch 8.0 version of plperl_hash_from_tuple() into prior releases
to fix failure to cope with quote marks in field values; not to mention
that it is shorter and faster.  Per report from Charles Haron.

20 years agoMark the text_soundex() function as "strict", to avoid crashing on NULL
Neil Conway [Wed, 26 Jan 2005 08:10:08 +0000 (08:10 +0000)]
Mark the text_soundex() function as "strict", to avoid crashing on NULL
input. Also, may as well mark it "cacheable" as well. From Kris Jurka.

20 years agoDisallow LOAD to non-superusers. Per report from John Heasman.
Tom Lane [Mon, 24 Jan 2005 17:46:41 +0000 (17:46 +0000)]
Disallow LOAD to non-superusers.  Per report from John Heasman.

20 years agoFix memory leak in rtdosplit, per report from Clive Page.
Tom Lane [Mon, 24 Jan 2005 02:48:15 +0000 (02:48 +0000)]
Fix memory leak in rtdosplit, per report from Clive Page.

20 years agoThe result of a FULL or RIGHT join can't be assumed to be sorted by the
Tom Lane [Sun, 23 Jan 2005 02:23:30 +0000 (02:23 +0000)]
The result of a FULL or RIGHT join can't be assumed to be sorted by the
left input's sorting, because null rows may be inserted at various points.
Per report from Ferenc Lutischá¸n.

20 years agoPrevent overrunning a heap-allocated buffer if more than 1024 parameters
Neil Conway [Fri, 21 Jan 2005 00:31:21 +0000 (00:31 +0000)]
Prevent overrunning a heap-allocated buffer if more than 1024 parameters
to a refcursor declaration are specified. This is a minimally-invasive fix
for the buffer overrun -- a more thorough cleanup will be checked into
HEAD.

20 years agoFix mapping infinite timestamp values to arbitrary dates.
Kris Jurka [Thu, 13 Jan 2005 14:22:23 +0000 (14:22 +0000)]
Fix mapping infinite timestamp values to arbitrary dates.
Report from Oliver Siegmar.

20 years agointerval_out failed to mention 'ago' for negative intervals in SQL and
Tom Lane [Tue, 11 Jan 2005 18:34:01 +0000 (18:34 +0000)]
interval_out failed to mention 'ago' for negative intervals in SQL and
GERMAN datestyles.  Ancient bug reported by Terry Lee Tucker.

20 years agoAvoid memory leakage during VACUUM FULL when an index expression or
Tom Lane [Thu, 23 Dec 2004 22:42:32 +0000 (22:42 +0000)]
Avoid memory leakage during VACUUM FULL when an index expression or
index predicate uses temporary memory for evaluation.  Per example
from Jean-Gerard Pailloncy.

20 years agoMake array_cat more paranoid about checking datatypes in empty arrays.
Tom Lane [Fri, 17 Dec 2004 21:00:07 +0000 (21:00 +0000)]
Make array_cat more paranoid about checking datatypes in empty arrays.

20 years agoarray_map failed to insert correct result type in an empty array.
Tom Lane [Fri, 17 Dec 2004 20:58:36 +0000 (20:58 +0000)]
array_map failed to insert correct result type in an empty array.
Per example from Florian Pflug.

20 years agoAvoid generating excess (and illegal) parentheses around an aliased JOIN
Tom Lane [Mon, 13 Dec 2004 00:33:18 +0000 (00:33 +0000)]
Avoid generating excess (and illegal) parentheses around an aliased JOIN
in prettyprint mode.  Andreas Pflug

20 years agoBack-patch copyOject fix for EXPLAIN/PREPARE.
Tom Lane [Mon, 13 Dec 2004 00:17:52 +0000 (00:17 +0000)]
Back-patch copyOject fix for EXPLAIN/PREPARE.

20 years agoTranslation update
Peter Eisentraut [Sat, 11 Dec 2004 20:08:49 +0000 (20:08 +0000)]
Translation update

20 years agoTranslation update
Peter Eisentraut [Sat, 11 Dec 2004 19:51:53 +0000 (19:51 +0000)]
Translation update

20 years agoUse StrNCpy not strncpy to fill hash key, to ensure the resulting key
Tom Lane [Fri, 3 Dec 2004 21:26:52 +0000 (21:26 +0000)]
Use StrNCpy not strncpy to fill hash key, to ensure the resulting key
is null-terminated.  I think this is not a real bug because the parser
would always have truncated the identifier to NAMEDATALEN-1 already,
but let's be safe.  Per report from Klocwork.

20 years agoTranslation fix by Julien Cristau
Peter Eisentraut [Fri, 3 Dec 2004 19:52:10 +0000 (19:52 +0000)]
Translation fix by Julien Cristau

20 years agoTeach regex_fixed_prefix() the correct handling of advanced regex
Tom Lane [Thu, 2 Dec 2004 02:45:24 +0000 (02:45 +0000)]
Teach regex_fixed_prefix() the correct handling of advanced regex
escapes --- they aren't simply quoted characters.  Problem noted by
Antti Salmela.  Also fix problem with incorrect handling of multibyte
characters when followed by a quantifier.

20 years agoFix timestamptz_age() to do calculation in local timezone not GMT, per bug 1332.
Tom Lane [Wed, 1 Dec 2004 19:57:56 +0000 (19:57 +0000)]
Fix timestamptz_age() to do calculation in local timezone not GMT, per bug 1332.

20 years agoAvoid scribbling on original parsetree during DECLARE CURSOR. This
Tom Lane [Sun, 28 Nov 2004 22:16:49 +0000 (22:16 +0000)]
Avoid scribbling on original parsetree during DECLARE CURSOR.  This
prevents problems when the DECLARE is in a portal and is executed
repeatedly, as is possible in v3 protocol.  Per analysis by Oliver
Jowett, though I didn't use his patch exactly.

20 years agoInstall Tcl regex fixes to sync our regex engine with Tcl 8.4.8 (up from
Tom Lane [Wed, 24 Nov 2004 22:57:09 +0000 (22:57 +0000)]
Install Tcl regex fixes to sync our regex engine with Tcl 8.4.8 (up from
8.4.1).  This corrects some curious regex bugs, though not the greediness
issue I was hoping to find a solution for :-(

20 years agoOur interface code for Spencer's regexp package was checking for regexp
Tom Lane [Wed, 24 Nov 2004 22:44:27 +0000 (22:44 +0000)]
Our interface code for Spencer's regexp package was checking for regexp
error conditions during regexp compile, but not during regexp execution;
any sort of "can't happen" errors would be treated as no-match instead
of being reported as they should be.  Noticed while trying to duplicate
a reported Tcl bug.

20 years agoBack-patch fix for ALTER DATABASE failing to flush pg_database changes
Tom Lane [Thu, 18 Nov 2004 01:19:40 +0000 (01:19 +0000)]
Back-patch fix for ALTER DATABASE failing to flush pg_database changes
to disk right away.  This is just a one-liner change rather than trying
to use FlushRelationBuffers().

20 years agoFix off-by-one memory allocation, as reported by Rod Taylor. Also
Tom Lane [Wed, 17 Nov 2004 19:54:34 +0000 (19:54 +0000)]
Fix off-by-one memory allocation, as reported by Rod Taylor.  Also
avoid repalloc'ing twice when once is sufficient.

20 years agoBackpatch fix from HEAD:
Neil Conway [Wed, 17 Nov 2004 00:18:26 +0000 (00:18 +0000)]
Backpatch fix from HEAD:

Prevent a backend crash when processing CREATE TABLE commands with
more than 65K columns, or when the created table has more than 65K columns
due to adding inherited columns from parent relations. Fix a similar
crash when processing SELECT queries with more than 65K target list
entries. In all three cases we would eventually detect the error and
elog, but the check was being made too late.

20 years agoTranslation update
Peter Eisentraut [Tue, 16 Nov 2004 22:49:24 +0000 (22:49 +0000)]
Translation update

20 years agoList VALUE as a keyword.
Michael Meskes [Wed, 10 Nov 2004 13:49:17 +0000 (13:49 +0000)]
List VALUE as a keyword.

20 years agoIn PGSharedMemoryIsInUse, assume that EACCES indicates a shmem segment
Tom Lane [Tue, 9 Nov 2004 20:35:16 +0000 (20:35 +0000)]
In PGSharedMemoryIsInUse, assume that EACCES indicates a shmem segment
that is of no concern to us --- it must belong to a different userid,
which means it is not a Postgres shmem segment (or at least,
not one that is relevant to our data directory).  I plan a more extensive
fix in HEAD, but this is a simple change that prevents failure-to-reboot
problems for single-postmaster installations.

20 years agoFix unportable code in SockAddr_cidr_mask: you can't assume that
Tom Lane [Mon, 8 Nov 2004 01:54:58 +0000 (01:54 +0000)]
Fix unportable code in SockAddr_cidr_mask: you can't assume that
shifting left by full word width gives zero.  Per bug report from
Tyson Thomson.

20 years agofixed bug in REVOKE statement cat_str only has 8 arguments
Dave Cramer [Mon, 1 Nov 2004 13:35:54 +0000 (13:35 +0000)]
fixed bug in REVOKE statement cat_str only has 8 arguments

20 years agoNew translations
Peter Eisentraut [Sat, 30 Oct 2004 08:22:17 +0000 (08:22 +0000)]
New translations

20 years agoRearrange order of pre-commit operations: must close cursors before doing
Tom Lane [Fri, 29 Oct 2004 22:20:03 +0000 (22:20 +0000)]
Rearrange order of pre-commit operations: must close cursors before doing
ON COMMIT actions.  Per bug report from Michael Guerin.

20 years agoTranslation update
Peter Eisentraut [Wed, 27 Oct 2004 11:52:05 +0000 (11:52 +0000)]
Translation update

20 years agoStamp release 7.4.6. REL7_4_6
Tom Lane [Fri, 22 Oct 2004 00:26:24 +0000 (00:26 +0000)]
Stamp release 7.4.6.

20 years agoPrevent pg_ctl from being run as root. Since it uses configuration files
Tom Lane [Fri, 22 Oct 2004 00:24:27 +0000 (00:24 +0000)]
Prevent pg_ctl from being run as root.  Since it uses configuration files
owned by postgres, doing "pg_ctl start" as root could allow a privilege
escalation attack, as pointed out by iDEFENSE.  Of course the postmaster would
fail, but we ought to fail a little sooner to protect sysadmins unfamiliar
with Postgres.  The chosen fix is to disable root use of pg_ctl in all cases,
just to be confident there are no other holes.

20 years agoUpdate obsolete comments about COPY vs INSERT options, per Uwe Schroeder.
Tom Lane [Thu, 21 Oct 2004 22:49:04 +0000 (22:49 +0000)]
Update obsolete comments about COPY vs INSERT options, per Uwe Schroeder.

20 years agoCorrectly cast the return value of a CallableStatement when getShort
Kris Jurka [Thu, 21 Oct 2004 19:13:55 +0000 (19:13 +0000)]
Correctly cast the return value of a CallableStatement when getShort
is called.  getByte presents a can't happen situation as no function
can return a TINYINT because pg doesn't have an equivalent type.
Make this throw an exception if we get to this point.

Thanks to Christian Niles.

20 years agoBack-patch make_oidjoins_check security improvement.
Tom Lane [Thu, 21 Oct 2004 17:12:19 +0000 (17:12 +0000)]
Back-patch make_oidjoins_check security improvement.

20 years agoRepair possible failure to update hint bits back to disk, per
Tom Lane [Wed, 13 Oct 2004 22:22:03 +0000 (22:22 +0000)]
Repair possible failure to update hint bits back to disk, per
http://archives.postgresql.org/pgsql-hackers/2004-10/msg00464.php.
I plan a more permanent fix in HEAD, but for the back branches it seems
best to just touch the places that actually have a problem.

20 years agoTranslation update
Peter Eisentraut [Tue, 12 Oct 2004 17:54:24 +0000 (17:54 +0000)]
Translation update

20 years ago'::' is no longer interpreted as a variable in a prepare statement.
Michael Meskes [Tue, 5 Oct 2004 10:48:45 +0000 (10:48 +0000)]
'::' is no longer interpreted as a variable in a prepare statement.

20 years agoConvert pg_stat_get_backend_idset to use the existing SRF support.
Tom Lane [Fri, 1 Oct 2004 21:09:46 +0000 (21:09 +0000)]
Convert pg_stat_get_backend_idset to use the existing SRF support.
This seems the cleanest way of fixing its lack of a shutdown callback,
which was preventing it from working correctly in a query that didn't
run it to completion.  Per bug report from Szima GÄbor.

20 years agoTranslation update
Peter Eisentraut [Mon, 27 Sep 2004 20:27:58 +0000 (20:27 +0000)]
Translation update

20 years agoRepair bug that would allow libpq to think a command had succeeded when
Tom Lane [Sun, 26 Sep 2004 00:26:56 +0000 (00:26 +0000)]
Repair bug that would allow libpq to think a command had succeeded when
it really hadn't, due to double output of previous command's response.
Fix prevents recursive entry to libpq routines.  Found by Jan Wieck.

20 years agoTranslation update
Peter Eisentraut [Mon, 20 Sep 2004 08:15:05 +0000 (08:15 +0000)]
Translation update

20 years agoTranslation update
Peter Eisentraut [Mon, 20 Sep 2004 08:07:15 +0000 (08:07 +0000)]
Translation update

20 years agoPut the brackets in the right places in timestamp entries in table 8-1.
Tom Lane [Sat, 18 Sep 2004 15:28:16 +0000 (15:28 +0000)]
Put the brackets in the right places in timestamp entries in table 8-1.
Spotted by Josh Purinton.

20 years agoFix memory leak in tokenize_file, per report from Vadim Passynkov.
Tom Lane [Sat, 18 Sep 2004 01:23:12 +0000 (01:23 +0000)]
Fix memory leak in tokenize_file, per report from Vadim Passynkov.

20 years agoHashed LEFT JOIN would miss outer tuples with no inner match if the join
Tom Lane [Fri, 17 Sep 2004 18:29:10 +0000 (18:29 +0000)]
Hashed LEFT JOIN would miss outer tuples with no inner match if the join
was large enough to be batched and the tuples fell into a batch where
there were no inner tuples at all.  Thanks to Xiaoyu Wang for finding a
test case that exposed this long-standing bug.

20 years agoTranslation update
Peter Eisentraut [Mon, 13 Sep 2004 20:51:22 +0000 (20:51 +0000)]
Translation update

20 years agoProtected access to variable m_preparedCount via synchronized
Kris Jurka [Mon, 13 Sep 2004 08:02:41 +0000 (08:02 +0000)]
Protected access to variable m_preparedCount via synchronized
function to prevent multiple threads using automatic cursors on
the same connection from stomping over each others cursor.

Originally Jan Wieck, re-reported by Jack Orenstein after
accidental removal.

20 years agoResultSet.moveToCurrentRow was checking the cached updateability flag
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

20 years agoDue to popular domand, backport fix for a typo in the SELECT reference
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.

20 years agoFix bogus example for bit-string XOR (already fixed in HEAD).
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.

20 years agoBack-patch fix to disallow BEGIN/COMMIT/ROLLBACK inside SQL functions.
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...

20 years agoRepair 'expected both swapped tables to have TOAST tables' bug in 7.4
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.

20 years agoPrevent pg_ctl restart from adding -D datadir multiple times.
Bruce Momjian [Sat, 28 Aug 2004 21:10:00 +0000 (21:10 +0000)]
Prevent pg_ctl restart from adding -D datadir multiple times.

20 years agoMake gistindex_keytest safe against NULL values. Same fix was already
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.

20 years agoTranslation update
Peter Eisentraut [Tue, 24 Aug 2004 21:45:13 +0000 (21:45 +0000)]
Translation update

20 years agoBrand 7.4.5 ... now that was our shortest-lived release ever ... REL7_4_5
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 ...

20 years agoUpdate release history for 7.4.5.
Tom Lane [Wed, 18 Aug 2004 03:03:49 +0000 (03:03 +0000)]
Update release history for 7.4.5.

20 years agoFix bug introduced into _bt_getstackbuf() on 2003-Feb-21: the initial
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.

20 years agoStamp 7.4.4. REL7_4_4
Tom Lane [Sun, 15 Aug 2004 00:24:04 +0000 (00:24 +0000)]
Stamp 7.4.4.

20 years agoBack-patch fix for \r\n line endings in psql's COPY support.
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.

20 years agoTranslation update
Peter Eisentraut [Sat, 14 Aug 2004 19:14:28 +0000 (19:14 +0000)]
Translation update

20 years agoTranslation update
Peter Eisentraut [Fri, 13 Aug 2004 16:42:51 +0000 (16:42 +0000)]
Translation update

20 years agoNew build for the 7.4.4 release.
Kris Jurka [Fri, 13 Aug 2004 05:18:45 +0000 (05:18 +0000)]
New build for the 7.4.4 release.

20 years agoAvoid crashing when restoring a saved GUC session_authorization value
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.

20 years agoDecode V3 notice messages instead of leaving them in raw form.
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.

20 years agoDatabaseMetaData.getSearchString escape was a \ short of working
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.

20 years agoFix failure to guarantee that a checkpoint will write out pg_clog updates
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.