1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-26 23:43:30 +03:00
Commit Graph

14476 Commits

Author SHA1 Message Date
Tom Lane
d3e91bd475 Generate back-branch configure scripts with the appropriate version of autoconf. 2006-01-06 02:31:25 +00:00
Bruce Momjian
a93eb7cef2 New pgcrypto item wording. 2006-01-05 15:17:08 +00:00
Bruce Momjian
e6e13b5da9 Wording improvements. 2006-01-05 15:11:07 +00:00
Bruce Momjian
7251950412 Improve markup. 2006-01-05 14:52:40 +00:00
Bruce Momjian
00214b611c *** empty log message *** 2006-01-05 05:21:40 +00:00
Bruce Momjian
44a3ad2ab0 Stamp release 7.3.13. 2006-01-05 03:59:21 +00:00
Tom Lane
040d3e63a7 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.
2006-01-05 00:55:36 +00:00
Tom Lane
3abc36786b Add port support for unsetenv() in back branches. Needed for locale
environment fix.
2006-01-05 00:51:52 +00:00
Joe Conway
4e0f51f13d 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.
2006-01-03 23:48:42 +00:00
Tom Lane
a74dc12416 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
2006-01-03 23:46:56 +00:00
Tatsuo Ishii
951f2bdd23 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.
2005-12-24 12:08:10 +00:00
Tom Lane
cd726e1cf8 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.
2005-12-22 22:50:29 +00:00
Tom Lane
660fcf0f67 Back-patch 7.4 change to show that freebsd 5 and up don't need
float8-small-is-zero.  Per Mark Kirkwood.
2005-12-15 05:43:35 +00:00
Tom Lane
93bcee8d4e 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.
2005-12-13 03:36:14 +00:00
Tom Lane
fbb687fa1b Stamp 7.3.12. REL7_3_12 2005-12-09 20:56:45 +00:00
Tom Lane
52d70a3088 Add release notes for back branches (7.3 and up).
Also minor improvements to 8.1.1 release notes.
2005-12-09 20:41:11 +00:00
Teodor Sigaev
85fc9ad4af Fix stupid bug with sizeof 2005-12-06 18:22:09 +00:00
Tom Lane
304b231e7b Add regression test to see if the min/max values of int8 convert correctly. 2005-12-05 04:14:39 +00:00
Bruce Momjian
62b91ec937 Properly document return value of strpos(). 2005-11-16 03:58:08 +00:00
Tom Lane
237afd453f 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.
2005-11-03 00:23:57 +00:00
Tom Lane
aaaacf0f6c 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.
2005-10-25 20:30:52 +00:00
Tom Lane
0fa322a14e 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.
2005-10-14 16:41:41 +00:00
Tom Lane
10f14e6e0d 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.
2005-10-12 17:18:45 +00:00
Tom Lane
ae049f191d Stamp release 7.3.11. REL7_3_11 2005-10-03 17:24:27 +00:00
Tom Lane
69fbf4816b Update release notes for pending back-branch releases. 2005-10-03 16:05:29 +00:00
Teodor Sigaev
ba5f900b3d Fix missing rows in query
update a=.. where a... with GiST index on column 'a'
Backpatch from 8.0 branch
2005-08-30 08:48:16 +00:00
Tom Lane
26f1202ca3 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.
2005-08-26 20:07:17 +00:00
Tom Lane
d5bd53c2c5 Remove registration message in all the supported back branches;
we had decided to drop it for 7.4, and no one misses it.
2005-08-16 03:32:34 +00:00
Tom Lane
bec2f429af 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.
2005-08-16 00:48:58 +00:00
Tom Lane
f739566069 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.
2005-08-15 19:05:58 +00:00
Tom Lane
76f39619d7 Fix bogus backslash sequences, per Kris Jurka. 2005-07-18 17:48:30 +00:00
Tom Lane
5394771580 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.
2005-07-18 15:54:30 +00:00
Tom Lane
509741d3d5 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.
2005-07-17 17:36:56 +00:00
Tom Lane
cb083b26d5 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.
2005-07-17 17:26:31 +00:00
Tom Lane
2401cfa155 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.
2005-07-16 19:01:50 +00:00
Tom Lane
24ede218a1 Fix bogus "extern int errno;" in back branches, per Andrew Dunstan. 2005-07-16 15:23:37 +00:00
Tom Lane
f3d95f3c7f Fix mis-backport of libpq memory leak fix. Per Michael Fuhr. 2005-07-14 14:07:50 +00:00
Tom Lane
32f9bc6f7d Fix libpq memory leak during PQreset() --- closePGconn() was not
freeing all transient state of the PGconn object.
2005-07-13 15:26:25 +00:00
Tom Lane
d53f22de86 Make libpq_gettext save and restore errno in a Windows-compatible way.
Also, back-patch fix into back branches.
2005-07-08 15:25:36 +00:00
Tom Lane
577759f8bf 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.
2005-06-25 16:54:30 +00:00
Tom Lane
19cc0c4faf 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.
2005-06-20 20:45:06 +00:00
Tom Lane
d4b7dfacfa 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.
2005-06-14 14:21:37 +00:00
Tatsuo Ishii
8154f06301 Fix bug in MIC -> EUC_JP conversion. Per Atsushi Ogawa. 2005-06-11 07:44:40 +00:00
Tom Lane
7ef90f5aad Code for SET/SHOW TIME ZONE with a fixed-interval timezone was not
prepared for HAVE_INT64_TIMESTAMP.  Per report from Guillaume Beaudoin.
2005-06-05 01:49:06 +00:00
Tom Lane
cd48aa0e96 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.
2005-06-02 21:04:30 +00:00
Tom Lane
2e1229671a 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.
2005-05-31 19:11:14 +00:00
Tom Lane
4f142baf37 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.
2005-05-29 17:11:07 +00:00
Tatsuo Ishii
5454eb0456 Fix previous patch to exprTypmod. 2005-05-25 02:03:52 +00:00
Tatsuo Ishii
8f5702ebd5 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.
2005-05-24 23:52:02 +00:00
Tom Lane
e3d0bd8d48 Guard against duplicate IDs in input file in SortTocFromFile().
Per report from Brian Hackett.
2005-05-17 17:31:15 +00:00