Tom Lane
b4fd104204
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.
2005-03-23 19:07:03 +00:00
Tom Lane
80fba0f8ee
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().
2005-03-12 21:12:18 +00:00
Neil Conway
2450224e6b
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.
2005-03-12 06:55:14 +00:00
Teodor Sigaev
989a17a68c
Prevent rank change in case of duplicate search terms
2005-03-05 16:19:33 +00:00
Tom Lane
89dcff555f
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.
2005-03-01 21:15:26 +00:00
Tom Lane
510f058932
Document that only a table's owner may TRUNCATE it. Per Keith Worthington.
2005-02-22 19:06:49 +00:00
Tom Lane
2df2c3dca2
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.
2005-02-19 19:33:42 +00:00
Tom Lane
42e386f257
ALTER LANGUAGE RENAME has never worked. Per Sergey Yatskevich.
2005-02-14 06:18:09 +00:00
Tom Lane
6d28a8fee9
Back-patch fix for a typo that unintentionally disabled backward scans
...
for all SPI-created cursors.
2005-02-10 20:37:15 +00:00
Tom Lane
d60b1f5689
If we're gonna check for array overrun, we really should do so before
...
overrunning the array, not after.
2005-02-08 18:22:11 +00:00
Neil Conway
5c057d4b44
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.
2005-02-07 03:55:28 +00:00
Tom Lane
3f8235ba24
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.
2005-02-06 20:19:42 +00:00
Tom Lane
5bb38455e6
Back-port heap_deformtuple() into 7.4 branch; needed for planned fix for
...
CLUSTER failure after ALTER TABLE SET WITHOUT OIDS.
2005-02-06 20:15:32 +00:00
Tom Lane
6508888ded
Recommend security@postgresql.org as the contact point for security-related bugs.
REL7_4_7
2005-01-30 21:32:10 +00:00
Tom Lane
9c1bb68356
Stamp release 7.4.7.
2005-01-30 19:32:22 +00:00
Tom Lane
f3610577bd
We haven't had a fixed limit on rule recursion depth since 7.3 ...
...
but the documentation still said so.
2005-01-29 23:46:16 +00:00
Tom Lane
ae8db9a7ab
Make sure contrib C functions are marked strict where needed.
...
Kris Jurka
2005-01-29 22:35:30 +00:00
Tom Lane
2fd184b8cf
Check that aggregate creator has the right to execute the transition
...
functions of the aggregate, at both aggregate creation and execution times.
2005-01-27 23:43:16 +00:00
Tom Lane
b9fccbb71c
Now that I look at it, int_array_enum() didn't work either.
2005-01-27 21:50:15 +00:00
Tom Lane
3393e65c6d
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.
2005-01-27 21:35:56 +00:00
Tom Lane
03a7dd013e
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.
2005-01-26 17:09:21 +00:00
Neil Conway
db78e53fac
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.
2005-01-26 08:10:08 +00:00
Tom Lane
6508bf5254
Disallow LOAD to non-superusers. Per report from John Heasman.
2005-01-24 17:46:41 +00:00
Tom Lane
bb4b504d51
Fix memory leak in rtdosplit, per report from Clive Page.
2005-01-24 02:48:15 +00:00
Tom Lane
dddc2afb6e
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.
2005-01-23 02:23:30 +00:00
Neil Conway
3b01217d7d
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.
2005-01-21 00:31:21 +00:00
Kris Jurka
ce69fa9768
Fix mapping infinite timestamp values to arbitrary dates.
...
Report from Oliver Siegmar.
2005-01-13 14:22:23 +00:00
Tom Lane
0c8b52bf8b
interval_out failed to mention 'ago' for negative intervals in SQL and
...
GERMAN datestyles. Ancient bug reported by Terry Lee Tucker.
2005-01-11 18:34:01 +00:00
Tom Lane
715a73427e
Avoid memory leakage during VACUUM FULL when an index expression or
...
index predicate uses temporary memory for evaluation. Per example
from Jean-Gerard Pailloncy.
2004-12-23 22:42:32 +00:00
Tom Lane
b6c56b73e7
Make array_cat more paranoid about checking datatypes in empty arrays.
2004-12-17 21:00:07 +00:00
Tom Lane
9ab182c2f1
array_map failed to insert correct result type in an empty array.
...
Per example from Florian Pflug.
2004-12-17 20:58:36 +00:00
Tom Lane
1d3ee97a3c
Avoid generating excess (and illegal) parentheses around an aliased JOIN
...
in prettyprint mode. Andreas Pflug
2004-12-13 00:33:18 +00:00
Tom Lane
92065453d7
Back-patch copyOject fix for EXPLAIN/PREPARE.
2004-12-13 00:17:52 +00:00
Peter Eisentraut
79c1011fb7
Translation update
2004-12-11 20:08:49 +00:00
Peter Eisentraut
b9f69d0241
Translation update
2004-12-11 19:51:53 +00:00
Tom Lane
de68155298
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.
2004-12-03 21:26:52 +00:00
Peter Eisentraut
8d424b3217
Translation fix by Julien Cristau
2004-12-03 19:52:10 +00:00
Tom Lane
6ba32b24b2
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.
2004-12-02 02:45:24 +00:00
Tom Lane
d237a12e49
Fix timestamptz_age() to do calculation in local timezone not GMT, per bug 1332.
2004-12-01 19:57:56 +00:00
Tom Lane
0b9f48daf2
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.
2004-11-28 22:16:49 +00:00
Tom Lane
f5778c63e5
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 :-(
2004-11-24 22:57:09 +00:00
Tom Lane
38929bc06a
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.
2004-11-24 22:44:27 +00:00
Tom Lane
a007dd1d21
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().
2004-11-18 01:19:40 +00:00
Tom Lane
aed7855dd8
Fix off-by-one memory allocation, as reported by Rod Taylor. Also
...
avoid repalloc'ing twice when once is sufficient.
2004-11-17 19:54:34 +00:00
Neil Conway
b990232c5d
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.
2004-11-17 00:18:26 +00:00
Peter Eisentraut
a2e1b146fe
Translation update
2004-11-16 22:49:24 +00:00
Michael Meskes
143d152b1f
List VALUE as a keyword.
2004-11-10 13:49:17 +00:00
Tom Lane
176bb0812f
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.
2004-11-09 20:35:16 +00:00
Tom Lane
3392959b6e
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.
2004-11-08 01:54:58 +00:00
Dave Cramer
5a57beccc3
fixed bug in REVOKE statement cat_str only has 8 arguments
2004-11-01 13:35:54 +00:00