]> granicus.if.org Git - postgresql/log
postgresql
19 years agoFix failure to apply domain constraints to a NULL constant that's added to
Tom Lane [Fri, 6 Jan 2006 20:11:36 +0000 (20:11 +0000)]
Fix failure to apply domain constraints to a NULL constant that's added to
an INSERT target list during rule rewriting.  Per report from John Supplee.

19 years agoRelease-note updates and copy editing. REL7_3_13
Tom Lane [Fri, 6 Jan 2006 03:00:46 +0000 (03:00 +0000)]
Release-note updates and copy editing.

19 years agoGenerate back-branch configure scripts with the appropriate version of autoconf.
Tom Lane [Fri, 6 Jan 2006 02:31:25 +0000 (02:31 +0000)]
Generate back-branch configure scripts with the appropriate version of autoconf.

19 years agoNew pgcrypto item wording.
Bruce Momjian [Thu, 5 Jan 2006 15:17:08 +0000 (15:17 +0000)]
New pgcrypto item wording.

19 years agoWording improvements.
Bruce Momjian [Thu, 5 Jan 2006 15:11:07 +0000 (15:11 +0000)]
Wording improvements.

19 years agoImprove markup.
Bruce Momjian [Thu, 5 Jan 2006 14:52:40 +0000 (14:52 +0000)]
Improve markup.

19 years ago*** empty log message ***
Bruce Momjian [Thu, 5 Jan 2006 05:21:40 +0000 (05:21 +0000)]
*** empty log message ***

19 years agoStamp release 7.3.13.
Bruce Momjian [Thu, 5 Jan 2006 03:59:21 +0000 (03:59 +0000)]
Stamp release 7.3.13.

19 years agoArrange to set the LC_XXX environment variables to match our locale setup.
Tom Lane [Thu, 5 Jan 2006 00:55:36 +0000 (00:55 +0000)]
Arrange to set the LC_XXX environment variables to match our locale setup.
Back-patch of previous fix in HEAD for plperl-vs-locale issue.

19 years agoAdd port support for unsetenv() in back branches. Needed for locale
Tom Lane [Thu, 5 Jan 2006 00:51:52 +0000 (00:51 +0000)]
Add port support for unsetenv() in back branches.  Needed for locale
environment fix.

19 years agoWhen the remote query result has a different number of columns
Joe Conway [Tue, 3 Jan 2006 23:48:42 +0000 (23:48 +0000)]
When the remote query result has a different number of columns
than the local query specifies (e.g. in the FROM clause),
throw an ERROR (instead of crashing). Fix for bug #2129 reported
by Akio Iwaasa.

19 years agoThere is a signedness bug in Openwall gen_salt code that pgcrypto uses.
Tom Lane [Tue, 3 Jan 2006 23:46:56 +0000 (23:46 +0000)]
There is a signedness bug in Openwall gen_salt code that pgcrypto uses.
This makes the salt space for md5 and xdes algorithms a lot smaller than
it should be.

Marko Kreen

19 years agoFix long standing Asian multibyte charsets bug.
Tatsuo Ishii [Sat, 24 Dec 2005 12:08:10 +0000 (12:08 +0000)]
Fix long standing Asian multibyte charsets bug.
See:

Subject: [HACKERS] bugs with certain Asian multibyte charsets
From: Tatsuo Ishii <ishii@sraoss.co.jp>
To: pgsql-hackers@postgresql.org
Date: Sat, 24 Dec 2005 18:25:33 +0900 (JST)

for more details.

19 years agoAdjust string comparison so that only bitwise-equal strings are considered
Tom Lane [Thu, 22 Dec 2005 22:50:29 +0000 (22:50 +0000)]
Adjust string comparison so that only bitwise-equal strings are considered
equal: if strcoll claims two strings are equal, check it with strcmp, and
sort according to strcmp if not identical.  This fixes inconsistent
behavior under glibc's hu_HU locale, and probably under some other locales
as well.  Also, take advantage of the now-well-defined behavior to speed up
texteq, textne, bpchareq, bpcharne: they may as well just do a bitwise
comparison and not bother with strcoll at all.

NOTE: affected databases may need to REINDEX indexes on text columns to be
sure they are self-consistent.

19 years agoBack-patch 7.4 change to show that freebsd 5 and up don't need
Tom Lane [Thu, 15 Dec 2005 05:43:35 +0000 (05:43 +0000)]
Back-patch 7.4 change to show that freebsd 5 and up don't need
float8-small-is-zero.  Per Mark Kirkwood.

19 years agoRemove unused HAVE_STRUCT_SOCKCRED code, which was causing a duplicate-
Tom Lane [Tue, 13 Dec 2005 03:36:14 +0000 (03:36 +0000)]
Remove unused HAVE_STRUCT_SOCKCRED code, which was causing a duplicate-
variable-definition error on recent FreeBSDen (evidently, that platform
also HAS_STRUCT_CMSGCRED).  Backport of 7.4 fix dated 2003-10-25.

19 years agoStamp 7.3.12. REL7_3_12
Tom Lane [Fri, 9 Dec 2005 20:56:45 +0000 (20:56 +0000)]
Stamp 7.3.12.

19 years agoAdd release notes for back branches (7.3 and up).
Tom Lane [Fri, 9 Dec 2005 20:41:11 +0000 (20:41 +0000)]
Add release notes for back branches (7.3 and up).
Also minor improvements to 8.1.1 release notes.

19 years agoFix stupid bug with sizeof
Teodor Sigaev [Tue, 6 Dec 2005 18:22:09 +0000 (18:22 +0000)]
Fix stupid bug with sizeof

19 years agoAdd regression test to see if the min/max values of int8 convert correctly.
Tom Lane [Mon, 5 Dec 2005 04:14:39 +0000 (04:14 +0000)]
Add regression test to see if the min/max values of int8 convert correctly.

19 years agoProperly document return value of strpos().
Bruce Momjian [Wed, 16 Nov 2005 03:58:08 +0000 (03:58 +0000)]
Properly document return value of strpos().

19 years agoFix longstanding race condition in transaction log management: there was a
Tom Lane [Thu, 3 Nov 2005 00:23:57 +0000 (00:23 +0000)]
Fix longstanding race condition in transaction log management: there was a
very narrow window in which SimpleLruReadPage or SimpleLruWritePage could
think that I/O was needed when it wasn't (and indeed the buffer had already
been assigned to another page).  This would result in an Assert failure if
Asserts were enabled, and probably in silent data corruption if not.
Reported independently by Jim Nasby and Robert Creager.

I intend a more extensive fix when 8.2 development starts, but this is a
reasonably low-impact patch for the existing branches.

19 years agoFix longstanding bug that would sometimes let the planner generate a bad plan
Tom Lane [Tue, 25 Oct 2005 20:30:52 +0000 (20:30 +0000)]
Fix longstanding bug that would sometimes let the planner generate a bad plan
for an outer join; symptom is bogus error "RIGHT JOIN is only supported with
merge-joinable join conditions".  Problem was that select_mergejoin_clauses
did its tests in the wrong order.  We need to force left join not right join
for a merge join when there are non-mergeable join clauses; but the test for
this only accounted for mergejoinability of the clause operator, and not
whether the left and right Vars were of the proper relations.  Per report
from Jean-Pierre Pelletier.

19 years agoPass a strdup'd ident string to openlog(), to ensure that reallocation
Tom Lane [Fri, 14 Oct 2005 16:41:41 +0000 (16:41 +0000)]
Pass a strdup'd ident string to openlog(), to ensure that reallocation
of GUC memory doesn't cause us to start emitting a bogus ident string.
Per report from Han Holl.  Also some trivial code cleanup in write_syslog.

19 years agoFix longstanding bug found by Atsushi Ogawa: _bt_check_unique would mark
Tom Lane [Wed, 12 Oct 2005 17:18:45 +0000 (17:18 +0000)]
Fix longstanding bug found by Atsushi Ogawa: _bt_check_unique would mark
the wrong buffer dirty when trying to kill a dead index entry that's on
a page after the one it started on.  No risk of data corruption, just
inefficiency, but still a bug.

19 years agoStamp release 7.3.11. REL7_3_11
Tom Lane [Mon, 3 Oct 2005 17:24:27 +0000 (17:24 +0000)]
Stamp release 7.3.11.

19 years agoUpdate release notes for pending back-branch releases.
Tom Lane [Mon, 3 Oct 2005 16:05:29 +0000 (16:05 +0000)]
Update release notes for pending back-branch releases.

19 years agoFix missing rows in query
Teodor Sigaev [Tue, 30 Aug 2005 08:48:16 +0000 (08:48 +0000)]
Fix missing rows in query
update a=.. where a... with GiST index on column 'a'
Backpatch from 8.0 branch

19 years agoBack-patch fixes for problems with VACUUM destroying t_ctid chains too soon,
Tom Lane [Fri, 26 Aug 2005 20:07:17 +0000 (20:07 +0000)]
Back-patch fixes for problems with VACUUM destroying t_ctid chains too soon,
and with insufficient paranoia in code that follows t_ctid links.
This patch covers the 7.3 branch.

19 years agoRemove registration message in all the supported back branches;
Tom Lane [Tue, 16 Aug 2005 03:32:34 +0000 (03:32 +0000)]
Remove registration message in all the supported back branches;
we had decided to drop it for 7.4, and no one misses it.

19 years agoReject operator names >= NAMEDATALEN characters. These will not work
Tom Lane [Tue, 16 Aug 2005 00:48:58 +0000 (00:48 +0000)]
Reject operator names >= NAMEDATALEN characters.  These will not work
anyway, and in assert-enabled builds you are likely to get an assertion
failure.  Backpatch as far as 7.3; 7.2 seems not to have the problem.

19 years agoint_array_enum function should be using fcinfo->flinfo->fn_extra for
Tom Lane [Mon, 15 Aug 2005 19:05:58 +0000 (19:05 +0000)]
int_array_enum function should be using fcinfo->flinfo->fn_extra for
working state, not fcinfo->context.  Silly oversight on my part in last
go-round of fixes.

19 years agoFix bogus backslash sequences, per Kris Jurka.
Tom Lane [Mon, 18 Jul 2005 17:48:30 +0000 (17:48 +0000)]
Fix bogus backslash sequences, per Kris Jurka.

19 years agoMemSet() must not cast its pointer argument to int32* until after it has
Tom Lane [Mon, 18 Jul 2005 15:54:30 +0000 (15:54 +0000)]
MemSet() must not cast its pointer argument to int32* until after it has
checked that the pointer is actually word-aligned.  Casting a non-aligned
pointer to int32* is technically illegal per the C spec, and some recent
versions of gcc actually generate bad code for the memset() when given
such a pointer.  Per report from Andrew Morrow.

19 years agoLooks like cube_1 variant is also needed in 7.3 branch.
Tom Lane [Sun, 17 Jul 2005 17:36:56 +0000 (17:36 +0000)]
Looks like cube_1 variant is also needed in 7.3 branch.
(Don't bother adding it in 7.2, though, since pg_regress doesn't
have the capability to use it that far back.

19 years agoAdjust alter_table regression test to avoid conflicts with rangefuncs
Tom Lane [Sun, 17 Jul 2005 17:26:31 +0000 (17:26 +0000)]
Adjust alter_table regression test to avoid conflicts with rangefuncs
and prepare tests, which cause intermittent failures in parallel test
mode.  Back-port of fix originally applied to 8.0 and 7.4 branches;
the problems do not appear to exist in 7.2 branch but they do occur
in 7.3.  Per buildfarm results.

19 years agoMark the geometry regression test as an ignorable failure in the pre-7.4
Tom Lane [Sat, 16 Jul 2005 19:01:50 +0000 (19:01 +0000)]
Mark the geometry regression test as an ignorable failure in the pre-7.4
branches.  Per discussion, this seems saner than trying to maintain
last-significant-digit regression test outputs for all supported platforms.

19 years agoFix bogus "extern int errno;" in back branches, per Andrew Dunstan.
Tom Lane [Sat, 16 Jul 2005 15:23:37 +0000 (15:23 +0000)]
Fix bogus "extern int errno;" in back branches, per Andrew Dunstan.

19 years agoFix mis-backport of libpq memory leak fix. Per Michael Fuhr.
Tom Lane [Thu, 14 Jul 2005 14:07:50 +0000 (14:07 +0000)]
Fix mis-backport of libpq memory leak fix.  Per Michael Fuhr.

19 years agoFix libpq memory leak during PQreset() --- closePGconn() was not
Tom Lane [Wed, 13 Jul 2005 15:26:25 +0000 (15:26 +0000)]
Fix libpq memory leak during PQreset() --- closePGconn() was not
freeing all transient state of the PGconn object.

19 years agoMake libpq_gettext save and restore errno in a Windows-compatible way.
Tom Lane [Fri, 8 Jul 2005 15:25:36 +0000 (15:25 +0000)]
Make libpq_gettext save and restore errno in a Windows-compatible way.
Also, back-patch fix into back branches.

19 years agoFix ancient memory leak in index_create(): RelationInitIndexAccessInfo
Tom Lane [Sat, 25 Jun 2005 16:54:30 +0000 (16:54 +0000)]
Fix ancient memory leak in index_create(): RelationInitIndexAccessInfo
was being called twice in normal operation, leading to a leak of one set
of relcache subsidiary info.  Per report from Jeff Gold.

19 years agoplpgsql's exec_assign_value() freed the old value of a variable before
Tom Lane [Mon, 20 Jun 2005 20:45:06 +0000 (20:45 +0000)]
plpgsql's exec_assign_value() freed the old value of a variable before
copying/converting the new value, which meant that it failed badly on
"var := var" if var is of pass-by-reference type.  Fix this and a similar
hazard in exec_move_row(); not sure that the latter can manifest before
8.0, but patch it all the way back anyway.  Per report from Dave Chapeskie.

19 years agoThe random selection in function linear() could deliver a value equal to max
Tom Lane [Tue, 14 Jun 2005 14:21:37 +0000 (14:21 +0000)]
The random selection in function linear() could deliver a value equal to max
if geqo_rand() returns exactly 1.0, resulting in failure due to indexing
off the end of the pool array.  Also, since this is using inexact float math,
it seems wise to guard against roundoff error producing values slightly
outside the expected range.  Per report from bug@zedware.org.

19 years agoFix bug in MIC -> EUC_JP conversion. Per Atsushi Ogawa.
Tatsuo Ishii [Sat, 11 Jun 2005 07:44:40 +0000 (07:44 +0000)]
Fix bug in MIC -> EUC_JP conversion. Per Atsushi Ogawa.

19 years agoCode for SET/SHOW TIME ZONE with a fixed-interval timezone was not
Tom Lane [Sun, 5 Jun 2005 01:49:06 +0000 (01:49 +0000)]
Code for SET/SHOW TIME ZONE with a fixed-interval timezone was not
prepared for HAVE_INT64_TIMESTAMP.  Per report from Guillaume Beaudoin.

19 years agoPush enable/disable of notify and catchup interrupts all the way down
Tom Lane [Thu, 2 Jun 2005 21:04:30 +0000 (21:04 +0000)]
Push enable/disable of notify and catchup interrupts all the way down
to just around the bare recv() call that gets a command from the client.
The former placement in PostgresMain was unsafe because the intermediate
processing layers (especially SSL) use facilities such as malloc that are
not necessarily re-entrant.  Per report from counterstorm.com.

19 years agoAdd test to WAL replay to verify that xl_prev points back to the previous
Tom Lane [Tue, 31 May 2005 19:11:14 +0000 (19:11 +0000)]
Add test to WAL replay to verify that xl_prev points back to the previous
WAL record; this is necessary to be sure we recognize stale WAL records
when a WAL page was only partially written during a system crash.

19 years agoexpandRTE and get_rte_attribute_type mistakenly always imputed typmod -1
Tom Lane [Sun, 29 May 2005 17:11:07 +0000 (17:11 +0000)]
expandRTE and get_rte_attribute_type mistakenly always imputed typmod -1
to columns of an RTE that was a function returning RECORD with a column
definition list.  Apparently no one has tried to use non-default typmod
with a function returning RECORD before.

19 years agoFix previous patch to exprTypmod.
Tatsuo Ishii [Wed, 25 May 2005 02:03:52 +0000 (02:03 +0000)]
Fix previous patch to exprTypmod.

19 years agoInserting 5 characters into char(10) does not produce 5 padding spaces
Tatsuo Ishii [Tue, 24 May 2005 23:52:02 +0000 (23:52 +0000)]
Inserting 5 characters into char(10) does not produce 5 padding spaces
if they are two-byte multibyte characters. Same thing can be happen
if octet_length(multibyte_chars) == n where n is char(n).
Long standing bug since 7.3 days. Per report and fix from Yoshiyuki Asaba.

19 years agoGuard against duplicate IDs in input file in SortTocFromFile().
Tom Lane [Tue, 17 May 2005 17:31:15 +0000 (17:31 +0000)]
Guard against duplicate IDs in input file in SortTocFromFile().
Per report from Brian Hackett.

19 years agoUpdate release notes for upcoming re-releases. REL7_3_10
Tom Lane [Mon, 9 May 2005 00:10:35 +0000 (00:10 +0000)]
Update release notes for upcoming re-releases.

19 years agoUpdate release checklist to reflect that HISTORY and INSTALL don't
Tom Lane [Sun, 8 May 2005 23:34:44 +0000 (23:34 +0000)]
Update release checklist to reflect that HISTORY and INSTALL don't
need to be created by hand anymore.

19 years agoThe release process is now generating HISTORY/INSTALL on the fly in
Tom Lane [Sun, 8 May 2005 23:32:37 +0000 (23:32 +0000)]
The release process is now generating HISTORY/INSTALL on the fly in
the 7.3 branch as well as later branches ... so no need to update
manually.

19 years agoRepair very-low-probability race condition between relation extension
Tom Lane [Sat, 7 May 2005 21:33:47 +0000 (21:33 +0000)]
Repair very-low-probability race condition between relation extension
and VACUUM: in the interval between adding a new page to the relation
and formatting it, it was possible for VACUUM to come along and decide
it should format the page too.  Though not harmful in itself, this would
cause data loss if a third transaction were able to insert tuples into
the vacuumed page before the original extender got control back.

19 years agoAdjust time qual checking code so that we always check TransactionIdIsInProgress
Tom Lane [Sat, 7 May 2005 21:23:24 +0000 (21:23 +0000)]
Adjust time qual checking code so that we always check TransactionIdIsInProgress
before we check commit/abort status.  Formerly this was done in some paths
but not all, with the result that a transaction might be considered
committed for some purposes before it became committed for others.
Per example found by Jan Wieck.

19 years agoStamp release 7.3.10.
Tom Lane [Thu, 5 May 2005 20:09:12 +0000 (20:09 +0000)]
Stamp release 7.3.10.

19 years agoMake standalone backends ignore pg_database.datallowconn, so that there
Tom Lane [Thu, 5 May 2005 19:54:01 +0000 (19:54 +0000)]
Make standalone backends ignore pg_database.datallowconn, so that there
is a way to recover from disabling connections to all databases at once.

19 years agoAlter the signature for encoding conversion functions to declare the
Tom Lane [Tue, 3 May 2005 19:18:48 +0000 (19:18 +0000)]
Alter the signature for encoding conversion functions to declare the
output area as INTERNAL not CSTRING.  This is to prevent people from
calling the functions by hand.  This is a permanent solution for the
back branches but I hope it is just a stopgap for HEAD.

19 years agoGCC 4.0 includes a new warning option, -Wformat-literal, that emits
Neil Conway [Sat, 30 Apr 2005 08:42:17 +0000 (08:42 +0000)]
GCC 4.0 includes a new warning option, -Wformat-literal, that emits
a warning when a variable is used as a format string for printf()
and similar functions (if the variable is derived from untrusted
data, it could include unexpected formatting sequences). This
emits too many warnings to be enabled by default, but it does
flag a few dubious constructs in the Postgres tree. This patch
fixes up the obvious variants: functions that are passed a variable
format string but no additional arguments.

This patch fixes a bug in pg_dump (triggers with formatting sequences
in their names are not dumped correctly) and some related pg_dump
code that looks dubious; cleanups for more harmless instances have
been applied to more recent branches.

19 years agoThis patch fixes a bug in the error message emitted by pg_restore on an
Neil Conway [Sat, 30 Apr 2005 08:01:29 +0000 (08:01 +0000)]
This patch fixes a bug in the error message emitted by pg_restore on an
incorrect -F argument: write_msg() expects its first parameter to be a
"module name", not the format string.

19 years agoRepair two TIME WITH TIME ZONE bugs found by Dennis Vshivkov. Comparison
Tom Lane [Sat, 23 Apr 2005 22:54:03 +0000 (22:54 +0000)]
Repair two TIME WITH TIME ZONE bugs found by Dennis Vshivkov.  Comparison
of timetz values misbehaved in --enable-integer-datetime cases, and
EXTRACT(EPOCH) subtracted the zone instead of adding it in all cases.
Backpatch to all supported releases (except --enable-integer-datetime code
does not exist in 7.2).

19 years agoint_aggregate's int_enum() doesn't work correctly with arrays that
Tom Lane [Sat, 23 Apr 2005 05:39:19 +0000 (05:39 +0000)]
int_aggregate's int_enum() doesn't work correctly with arrays that
aren't 1-D, so give an error message instead of failing.  Per report
from Ron Mayer.

19 years agoDon't try to run clauseless index scans on index types that don't support
Tom Lane [Wed, 20 Apr 2005 21:48:31 +0000 (21:48 +0000)]
Don't try to run clauseless index scans on index types that don't support
it.  Per report from Marinos Yannikos.

19 years agoFix mis-display of negative fractional seconds in interval values for
Tom Lane [Wed, 20 Apr 2005 17:15:19 +0000 (17:15 +0000)]
Fix mis-display of negative fractional seconds in interval values for
--enable-integer-datetimes case.  Per report from Oliver Siegmar.

19 years agoDon't try to constant-fold functions returning RECORD, since the optimizer
Tom Lane [Thu, 14 Apr 2005 21:44:46 +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 agoPrevent to_char(interval) from dumping core on month-related formats
Tom Lane [Sat, 26 Mar 2005 00:42:44 +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 agoPrevious "64-bit fix" for intagg didn't actually work. This is already
Tom Lane [Wed, 23 Mar 2005 19:07:18 +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 agoSome builds (depends on crypto engine support?) of OpenSSL
Neil Conway [Sun, 13 Mar 2005 23:45:56 +0000 (23:45 +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 agoUpdate contrib/pgcrypto in 7.3 and 7.2 branches to avoid problems with
Neil Conway [Sun, 13 Mar 2005 23:41:44 +0000 (23:41 +0000)]
Update contrib/pgcrypto in 7.3 and 7.2 branches to avoid problems with
recent versions of OpenSSL. From Marko Kreen.

20 years agoBack-patch Neil's four additional buffer overrun checks.
Tom Lane [Tue, 8 Feb 2005 18:22:45 +0000 (18:22 +0000)]
Back-patch Neil's four additional buffer overrun checks.

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

20 years agoStamp release 7.3.9.
Tom Lane [Sun, 30 Jan 2005 20:08:15 +0000 (20:08 +0000)]
Stamp release 7.3.9.

20 years agoMake sure contrib C functions are marked strict where needed.
Tom Lane [Sat, 29 Jan 2005 22:35:53 +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:45 +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:23 +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:36:10 +0000 (21:36 +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 agoBackpatch fix for buffer overrun in parsing refcursor parameters to
Neil Conway [Thu, 27 Jan 2005 01:44:42 +0000 (01:44 +0000)]
Backpatch fix for buffer overrun in parsing refcursor parameters to
REL7_3_STABLE.

20 years agoBack-patch 8.0 version of plperl_hash_from_tuple() into prior releases
Tom Lane [Wed, 26 Jan 2005 17:09:28 +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:20:40 +0000 (08:20 +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:49 +0000 (17:46 +0000)]
Disallow LOAD to non-superusers.  Per report from John Heasman.

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:24:30 +0000 (02:24 +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 agointerval_out failed to mention 'ago' for negative intervals in SQL and
Tom Lane [Tue, 11 Jan 2005 18:34:29 +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 agoarray_map failed to insert correct result type in an empty array.
Tom Lane [Fri, 17 Dec 2004 20:58:47 +0000 (20:58 +0000)]
array_map failed to insert correct result type in an empty array.
Per example from Florian Pflug.

20 years agoBack-patch fix for ALTER DATABASE failing to flush pg_database changes
Tom Lane [Thu, 18 Nov 2004 01:19:57 +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:53 +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 agoStamp release 7.3.8. REL7_3_8
Tom Lane [Fri, 22 Oct 2004 00:27:05 +0000 (00:27 +0000)]
Stamp release 7.3.8.

20 years agoPrevent pg_ctl from being run as root. Since it uses configuration files
Tom Lane [Fri, 22 Oct 2004 00:24:33 +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 agoBack-patch make_oidjoins_check security improvement.
Tom Lane [Thu, 21 Oct 2004 17:12:27 +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:22 +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 agoFix breakage in hashjoin from recent backpatch of left-join bug fix.
Tom Lane [Wed, 13 Oct 2004 21:56:06 +0000 (21:56 +0000)]
Fix breakage in hashjoin from recent backpatch of left-join bug fix.
(That's what I get for not testing the back branches *before* committing.)

20 years agoHashed LEFT JOIN would miss outer tuples with no inner match if the join
Tom Lane [Fri, 17 Sep 2004 18:29:24 +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 agoWups, seem to have used an ungood version of lynx to generate this. REL7_3_7
Tom Lane [Sun, 15 Aug 2004 01:27:47 +0000 (01:27 +0000)]
Wups, seem to have used an ungood version of lynx to generate this.

20 years agoStamp 7.3.7.
Tom Lane [Sun, 15 Aug 2004 00:52:02 +0000 (00:52 +0000)]
Stamp 7.3.7.

20 years agoFix failure to guarantee that a checkpoint will write out pg_clog updates
Tom Lane [Wed, 11 Aug 2004 04:08:40 +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.

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

21 years agoTranslation updates
Peter Eisentraut [Mon, 5 Apr 2004 09:02:37 +0000 (09:02 +0000)]
Translation updates

21 years agoTranslation updates
Peter Eisentraut [Mon, 5 Apr 2004 08:45:37 +0000 (08:45 +0000)]
Translation updates

21 years agoAlways schema-qualify the name of a function referenced in CREATE CAST.
Tom Lane [Tue, 2 Mar 2004 21:15:15 +0000 (21:15 +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?