]> git.ipfire.org Git - thirdparty/postgresql.git/log
thirdparty/postgresql.git
20 years agoFix two bugs in change_owner_recurse_to_sequences: it was grabbing an
Tom Lane [Fri, 25 Mar 2005 18:04:47 +0000 (18:04 +0000)] 
Fix two bugs in change_owner_recurse_to_sequences: it was grabbing an
overly strong lock on pg_depend, and it wasn't closing the rel when done.
The latter bug was masked by the ResourceOwner code, which is something
that should be changed.

20 years agoUpdate and copy-edit description of privileges.
Tom Lane [Fri, 25 Mar 2005 16:39:03 +0000 (16:39 +0000)] 
Update and copy-edit description of privileges.

20 years agoAdd missing min/max parameters to DefineCustomIntVariable() and
Tom Lane [Fri, 25 Mar 2005 16:17:39 +0000 (16:17 +0000)] 
Add missing min/max parameters to DefineCustomIntVariable() and
DefineCustomRealVariable().  Thomas Hallgren

20 years agoFix to_date to behave reasonably when CC and YY fields are both used.
Tom Lane [Fri, 25 Mar 2005 16:08:50 +0000 (16:08 +0000)] 
Fix to_date to behave reasonably when CC and YY fields are both used.
Karel Zak

20 years agoKerberos fixes from Magnus Hagander --- in theory Kerberos 5 auth
Tom Lane [Fri, 25 Mar 2005 00:35:20 +0000 (00:35 +0000)] 
Kerberos fixes from Magnus Hagander --- in theory Kerberos 5 auth
should work on Windows now.  Also, rename set_noblock to pg_set_noblock;
since it is included in libpq, the former name polluted application
namespace.

20 years agoRevert ill-conceived change of libpq linkage --- breaks ecpg.
Tom Lane [Thu, 24 Mar 2005 23:54:01 +0000 (23:54 +0000)] 
Revert ill-conceived change of libpq linkage --- breaks ecpg.

20 years agoarray_map can't use the fn_extra field of the provided fcinfo struct as
Tom Lane [Thu, 24 Mar 2005 21:50:52 +0000 (21:50 +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 agoForce PG client applications to link to non-shared libpgport before
Bruce Momjian [Thu, 24 Mar 2005 19:33:40 +0000 (19:33 +0000)] 
Force PG client applications to link to non-shared libpgport before
linking to libpq.  This insulates applications from changes in libpq's
usage of libpgport functions.

Backpatched to 8.0.X.

20 years agoTweak planner to use a minimum size estimate of 10 pages for a
Tom Lane [Thu, 24 Mar 2005 19:15:11 +0000 (19:15 +0000)] 
Tweak planner to use a minimum size estimate of 10 pages for a
never-yet-vacuumed relation.  This restores the pre-8.0 behavior of
avoiding seqscans during initial data loading, while still allowing
reasonable optimization after a table has been vacuumed.  Several
regression test cases revert to 7.4-like behavior, which is probably
a good sign.  Per gripes from Keith Browne and others.

20 years agoFix python regression testing script to bail out early if language
Tom Lane [Thu, 24 Mar 2005 17:23:39 +0000 (17:23 +0000)] 
Fix python regression testing script to bail out early if language
creation fails ... no point in running the tests.

20 years agoAdjust plpython to convert \r\n and \r to \n in Python scripts,
Tom Lane [Thu, 24 Mar 2005 17:22:44 +0000 (17:22 +0000)] 
Adjust plpython to convert \r\n and \r to \n in Python scripts,
per recent discussion concluding that this is the Right Thing.  Add
regression test check for this behavior.  Michael Fuhr

20 years agoChange Win32 O_SYNC method to O_DSYNC because that is what the method
Bruce Momjian [Thu, 24 Mar 2005 04:37:07 +0000 (04:37 +0000)] 
Change Win32 O_SYNC method to O_DSYNC because that is what the method
currently does.  This is now the default Win32 wal sync method because
we perfer o_datasync to fsync.

Also, change Win32 fsync to a new wal sync method called
fsync_writethrough because that is the behavior of _commit, which is
what is used for fsync on Win32.

Backpatch to 8.0.X.

20 years agoAdd missing error checking in readdir() loops.
Tom Lane [Thu, 24 Mar 2005 02:11:33 +0000 (02:11 +0000)] 
Add missing error checking in readdir() loops.

20 years agoAdd note about risks involved in replaying CREATE TABLESPACE commands
Tom Lane [Wed, 23 Mar 2005 19:39:06 +0000 (19:39 +0000)] 
Add note about risks involved in replaying CREATE TABLESPACE commands
from WAL.  A couple other grammatical improvements too.

20 years agoPrevious "64-bit fix" for intagg didn't actually work. This is already
Tom Lane [Wed, 23 Mar 2005 19:06:54 +0000 (19:06 +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 agoWAL must log CREATE and DROP DATABASE operations *without* using any
Tom Lane [Wed, 23 Mar 2005 00:04:25 +0000 (00:04 +0000)] 
WAL must log CREATE and DROP DATABASE operations *without* using any
explicit paths, so that the log can be replayed in a data directory
with a different absolute path than the original had.  To avoid forcing
initdb in the 8.0 branch, continue to accept the old WAL log record
types; they will never again be generated however, and the code can be
dropped after the next forced initdb.  Per report from Oleg Bartunov.
We still need to think about what it really means to WAL-log CREATE
TABLESPACE commands: we more or less have to put the absolute path
into those, but how to replay in a different context??

20 years agoFix quote_ident to use quote_identifier rather than its own, not quite
Tom Lane [Mon, 21 Mar 2005 16:29:31 +0000 (16:29 +0000)] 
Fix quote_ident to use quote_identifier rather than its own, not quite
up-to-speed logic; in particular this will cause it to quote names that
match keywords.  Remove unnecessary multibyte cruft from quote_literal
(all backend-internal encodings are 8-bit-safe).

20 years agoPut 'dump complete' message in the right place, so it comes out where
Tom Lane [Fri, 18 Mar 2005 17:33:03 +0000 (17:33 +0000)] 
Put 'dump complete' message in the right place, so it comes out where
it's supposed to when --file option is used.

20 years agoNeed to reset local buffer pin counts, not only shared buffer pins,
Tom Lane [Fri, 18 Mar 2005 16:16:20 +0000 (16:16 +0000)] 
Need to reset local buffer pin counts, not only shared buffer pins,
before we attempt any file deletions in ShutdownPostgres.  Per Tatsuo.

20 years agoAdded patch by Christof Petig <christof@petig-baender.de> to work around gcc bug...
Michael Meskes [Fri, 18 Mar 2005 10:01:14 +0000 (10:01 +0000)] 
Added patch by Christof Petig <christof@petig-baender.de> to work around gcc bug on powerpc and amd64.

20 years agoNeed to release buffer pins before attempting to drop files during
Tom Lane [Fri, 18 Mar 2005 05:24:24 +0000 (05:24 +0000)] 
Need to release buffer pins before attempting to drop files during
backend exit.  Per report from Bruce.

20 years agoTreat EPERM as a non-error case when checking to see if old postmaster
Tom Lane [Fri, 18 Mar 2005 03:49:19 +0000 (03:49 +0000)] 
Treat EPERM as a non-error case when checking to see if old postmaster
is still alive.  This improves our odds of not getting fooled by an
unrelated process when checking a stale lock file.  Other checks already
in place, plus one newly added in checkDataDir(), ensure that we cannot
attempt to usurp the place of a postmaster belonging to a different userid,
so there is no need to error out.  Add comments indicating the importance
of these other checks.

20 years agoBackpatch to 8.0.X, already in HEAD:
Bruce Momjian [Thu, 17 Mar 2005 17:28:59 +0000 (17:28 +0000)] 
Backpatch to 8.0.X, already in HEAD:

Allow Win32 to support the O_SYNC open flag as an wal_sync_method
method.

20 years agoAdd missing include for new lc_ctype_is_c() function.
Bruce Momjian [Wed, 16 Mar 2005 01:49:20 +0000 (01:49 +0000)] 
Add missing include for new lc_ctype_is_c() function.

Per Neil.

20 years agoPrevent locale-aware handling of upper, lower, and initcap when the
Bruce Momjian [Wed, 16 Mar 2005 00:03:02 +0000 (00:03 +0000)] 
Prevent locale-aware handling of upper, lower, and initcap when the
locale is C.

Backpatch to 8.0.X because some operating systems were throwing errors
for such operations, rather than ignoring the locale when it was C.

20 years agoIncrement all major version numbers in 8.0.X to force recompile of
Bruce Momjian [Sun, 13 Mar 2005 22:04:45 +0000 (22:04 +0000)] 
Increment all major version numbers in 8.0.X to force recompile of
client aplications so 7.4.X releases can be installed on the same
machine as 8.0.X.

20 years agoFix ALTER DATABASE RENAME to allow the operation if user is a superuser
Tom Lane [Sat, 12 Mar 2005 21:12:05 +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:54:31 +0000 (06:54 +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 agoFix problem with infinite recursion between write_syslogger_file and
Tom Lane [Sat, 12 Mar 2005 01:55:15 +0000 (01:55 +0000)] 
Fix problem with infinite recursion between write_syslogger_file and
elog if the former has trouble writing its file.  Code review for
Magnus' patch to redirect stderr to syslog on Windows (Bruce's version
seems right, but did some minor prettification).

Backpatch both changes to 8.0 branch.

20 years agoHere's the patch to fix a lot of markup errors in the HTML FAQs. Doesn't
Bruce Momjian [Fri, 11 Mar 2005 21:47:44 +0000 (21:47 +0000)] 
Here's the patch to fix a lot of markup errors in the HTML FAQs. Doesn't
change content (at least not supposed to).

Magnus Hagander

20 years agoProperly implement "Response files" for bcc. Add URL's to describe the
Bruce Momjian [Mon, 7 Mar 2005 21:11:07 +0000 (21:11 +0000)] 
Properly implement "Response files" for bcc.  Add URL's to describe the
feature for Win32 and bcc.

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

20 years agoReplace ARC cache management algorithm with the similar but slightly
Tom Lane [Thu, 3 Mar 2005 16:47:43 +0000 (16:47 +0000)] 
Replace ARC cache management algorithm with the similar but slightly
simpler 2Q algorithm, to avoid possible problems with the pending patent
on ARC.  Testing so far suggests that there is little if any performance
loss from doing this.

Note that this patch is going into the 8.0 branch only; a much more
extensive revision is planned for HEAD.

20 years agoRelease proclock immediately in RemoveFromWaitQueue() if it represents
Tom Lane [Tue, 1 Mar 2005 21:15:10 +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 agoAdjust OR indexscan logic to not generate redundant condition-free OR
Tom Lane [Tue, 1 Mar 2005 01:40:39 +0000 (01:40 +0000)] 
Adjust OR indexscan logic to not generate redundant condition-free OR
indexscans involving partial indexes.  These would always be dominated
by a simple indexscan on such an index, so there's no point in considering
them.  Fixes overoptimism in a patch I applied last October.

20 years agoRevert the logic for expanding AND/OR conditions in pred_test() to what
Tom Lane [Tue, 1 Mar 2005 00:25:45 +0000 (00:25 +0000)] 
Revert the logic for expanding AND/OR conditions in pred_test() to what
it was in 7.4, and add some comments explaining why it has to be this way.
I broke it for OR'd index predicates in a fit of code cleanup last summer.
Per example from Sergey Koshcheyev.

20 years agoTab indent all actions in bcc32.mak, and do it on win32.mak too for
Bruce Momjian [Sun, 27 Feb 2005 22:38:29 +0000 (22:38 +0000)] 
Tab indent all actions in bcc32.mak, and do it on win32.mak too for
consistency.  Backpatch only bcc32.mak to 8.0.X.

20 years agoFurther fix int64/float8 time/timetz
Teodor Sigaev [Sun, 27 Feb 2005 09:28:07 +0000 (09:28 +0000)] 
Further fix int64/float8 time/timetz

20 years agoFurther fix time/timetz...
Teodor Sigaev [Sun, 27 Feb 2005 00:11:35 +0000 (00:11 +0000)] 
Further fix time/timetz...

20 years agoBackpatch clarification of PGPASSWORD to 8.0.X.
Bruce Momjian [Sat, 26 Feb 2005 18:50:44 +0000 (18:50 +0000)] 
Backpatch clarification of PGPASSWORD to 8.0.X.

20 years agoAdd linking from /port to bcc makefile.
Bruce Momjian [Fri, 25 Feb 2005 15:57:41 +0000 (15:57 +0000)] 
Add linking from /port to bcc makefile.

20 years agoFix float8->int64 transformation
Teodor Sigaev [Fri, 25 Feb 2005 14:04:39 +0000 (14:04 +0000)] 
Fix float8->int64 transformation

20 years agoBackpatch FAQ to 8.0.X.
Bruce Momjian [Fri, 25 Feb 2005 00:33:45 +0000 (00:33 +0000)] 
Backpatch FAQ to 8.0.X.

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

20 years agoUpdate initdb locale/encoding documentation description. Backpatch to
Bruce Momjian [Tue, 22 Feb 2005 02:56:37 +0000 (02:56 +0000)] 
Update initdb locale/encoding documentation description.  Backpatch to
8.0.X.

20 years agoTry to get Borland CC to compile.
Bruce Momjian [Mon, 21 Feb 2005 21:22:46 +0000 (21:22 +0000)] 
Try to get Borland CC to compile.

Backpatch to 8.0.X which doesn't work right now.

20 years agoUpdate Russian FAQ.
Bruce Momjian [Mon, 21 Feb 2005 17:34:10 +0000 (17:34 +0000)] 
Update Russian FAQ.

Viktor Vislobokov

20 years agoSimplify defines
Teodor Sigaev [Mon, 21 Feb 2005 14:10:44 +0000 (14:10 +0000)] 
Simplify defines

20 years agoFix memory leak for timestamp(with and w/o tz) and time indexes
Teodor Sigaev [Mon, 21 Feb 2005 10:47:52 +0000 (10:47 +0000)] 
Fix memory leak for timestamp(with and w/o tz) and time indexes

20 years agoFix two typos, per report from Hashem Masoud.
Neil Conway [Mon, 21 Feb 2005 06:12:41 +0000 (06:12 +0000)] 
Fix two typos, per report from Hashem Masoud.

20 years agoDocument the "register" and "unregister" pg_ctl subcommands, for use on
Neil Conway [Mon, 21 Feb 2005 02:14:34 +0000 (02:14 +0000)] 
Document the "register" and "unregister" pg_ctl subcommands, for use on
Windows. Patch from Magnus Hagander.

20 years agoNew arrangement to always let the bgwriter do checkpoints broke
Tom Lane [Sat, 19 Feb 2005 23:16:27 +0000 (23:16 +0000)] 
New arrangement to always let the bgwriter do checkpoints broke
CHECKPOINT and some other commands in the context of a standalone
backend.  Allow a standalone backend to do its own checkpoints.

20 years agoEnsure that the resolved datatype of any unknown Param is propagated
Tom Lane [Sat, 19 Feb 2005 19:33:23 +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:17:59 +0000 (06:17 +0000)] 
ALTER LANGUAGE RENAME has never worked.  Per Sergey Yatskevich.

20 years agoPrint file name and errno string on rmtree failure.
Bruce Momjian [Sun, 13 Feb 2005 16:50:54 +0000 (16:50 +0000)] 
Print file name and errno string on rmtree failure.

Backpatch to 8.0.X.

20 years agoTranslation updates
Peter Eisentraut [Fri, 11 Feb 2005 11:53:32 +0000 (11:53 +0000)] 
Translation updates

20 years agoUpdate to Russian FAQ, HEAD and 8.0.X.
Bruce Momjian [Fri, 11 Feb 2005 04:54:05 +0000 (04:54 +0000)] 
Update to Russian FAQ, HEAD and 8.0.X.

20 years agoMention that some psql environment variables come from libpq and note
Bruce Momjian [Fri, 11 Feb 2005 04:19:18 +0000 (04:19 +0000)] 
Mention that some psql environment variables come from libpq and note
more variables can be found in the libpq manual section.

Mention .pgpass in the psql manual page section dealing with connection
parameters and point to the libpq section for more details.

Backpatch to 8.0.X.

20 years agoFix SPI cursor support to allow scanning the results of utility commands
Tom Lane [Thu, 10 Feb 2005 20:36:49 +0000 (20:36 +0000)] 
Fix SPI cursor support to allow scanning the results of utility commands
that return tuples (such as EXPLAIN).  Per gripe from Michael Fuhr.
Side effect: fix an old bug that unintentionally disabled backward scans
for all SPI-created cursors.

20 years agoFixed more parsing bugs in other CREATE statements.
Michael Meskes [Thu, 10 Feb 2005 08:07:46 +0000 (08:07 +0000)] 
Fixed more parsing bugs in other CREATE statements.

20 years agoUpdate pginstaller URL to http://www.postgresql.org/ftp/win32/.
Bruce Momjian [Thu, 10 Feb 2005 04:53:11 +0000 (04:53 +0000)] 
Update pginstaller URL to http://www.postgresql.org/ftp/win32/.

Backpatch to 8.0.X.

20 years agoALTER TABLE ADD COLUMN exhibits a significant memory leak when adding a
Neil Conway [Wed, 9 Feb 2005 23:27:24 +0000 (23:27 +0000)] 
ALTER TABLE ADD COLUMN exhibits a significant memory leak when adding a
column with a default expression. In that situation, we need to rewrite
the heap relation. To evaluate the new default expression, we use
ExecEvalExpr(); however, this can allocate memory in the current memory
context, and ATRewriteTable() does not switch out of the active portal's
heap memory context. The end result is a rather large memory leak (on
the order of gigabytes for a reasonably sized table).

This patch changes ATRewriteTable() to switch to the per-tuple memory
context before beginning the per-tuple loop. It also removes an explicit
heap_freetuple() in the loop, since that is no longer needed.

In an unrelated change, I noticed the code was scanning through the
attributes of the new tuple descriptor for each tuple of the old table.
I changed this to use precomputation, which should slightly speed up
the loop.

Thanks to steve@deefs.net for reporting the leak.

20 years agoFixed bug in parsing of CREATE AS statement.
Michael Meskes [Wed, 9 Feb 2005 11:28:21 +0000 (11:28 +0000)] 
Fixed bug in parsing of CREATE AS statement.

20 years agoIf we're gonna check for array overrun, we really should do so before
Tom Lane [Tue, 8 Feb 2005 18:21:59 +0000 (18:21 +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:52:22 +0000 (03:52 +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 agoBetter late than never: document that the GiST API changed in 8.0 in the
Neil Conway [Sun, 6 Feb 2005 22:36:10 +0000 (22:36 +0000)] 
Better late than never: document that the GiST API changed in 8.0 in the
"incompatibilities" section of the release notes.

20 years agoDocument array behavior for out-of-range subscripts.
Tom Lane [Sun, 6 Feb 2005 20:59:37 +0000 (20:59 +0000)] 
Document array behavior for out-of-range subscripts.

20 years agoRepair CLUSTER failure after ALTER TABLE SET WITHOUT OIDS. Turns out
Tom Lane [Sun, 6 Feb 2005 20:19:24 +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 agoFix minor thinko in logic to set dump order when dumping from a pre-7.3
Tom Lane [Thu, 3 Feb 2005 23:39:21 +0000 (23:39 +0000)] 
Fix minor thinko in logic to set dump order when dumping from a pre-7.3
database: aggregates should be dumped in the same pass as operators,
not in the same pass as functions.

20 years agoEnsure that all details of the ARC algorithm are hidden within freelist.c.
Tom Lane [Thu, 3 Feb 2005 23:30:12 +0000 (23:30 +0000)] 
Ensure that all details of the ARC algorithm are hidden within freelist.c.
This refactoring does not change any algorithms or data structures, just
remove visibility of the ARC datastructures from other source files.

20 years agoImprove performance of fmgr.c calling routines for cases with more than
Tom Lane [Wed, 2 Feb 2005 22:40:19 +0000 (22:40 +0000)] 
Improve performance of fmgr.c calling routines for cases with more than
two arguments.  Per suggestions from A. Ogawa.

20 years agoAdjust constant-folding of CASE expressions so that the simple comparison
Tom Lane [Wed, 2 Feb 2005 21:49:49 +0000 (21:49 +0000)] 
Adjust constant-folding of CASE expressions so that the simple comparison
form of CASE (eg, CASE 0 WHEN 1 THEN ...) can be constant-folded as it
was in 7.4.  Also, avoid constant-folding result expressions that are
certainly unreachable --- the former coding was a bit cavalier about this
and could generate unexpected results for all-constant CASE expressions.
Add regression test cases.  Per report from Vlad Marchenko.

20 years agoImprove wording of to_char() change in 8.1:
Bruce Momjian [Wed, 2 Feb 2005 18:17:34 +0000 (18:17 +0000)] 
Improve wording of to_char() change in 8.1:

      The 8.1 release will remove the <function>to_char()</> function
      for intervals.

20 years agoBackpatch FAQ to 8.0.X.
Bruce Momjian [Wed, 2 Feb 2005 17:44:51 +0000 (17:44 +0000)] 
Backpatch FAQ to 8.0.X.

20 years agoBackpatch FAQ to 8.0.X.
Bruce Momjian [Wed, 2 Feb 2005 13:42:02 +0000 (13:42 +0000)] 
Backpatch FAQ to 8.0.X.

20 years agoFix a bug induced by the list-rewrite that resulted in incrementing the
Neil Conway [Tue, 1 Feb 2005 23:29:13 +0000 (23:29 +0000)] 
Fix a bug induced by the list-rewrite that resulted in incrementing the
command counter more than necessary. Per report from Michael Fuhr.

20 years agoAdjust estimate_num_groups() to not clamp per-relation group count
Tom Lane [Tue, 1 Feb 2005 23:09:00 +0000 (23:09 +0000)] 
Adjust estimate_num_groups() to not clamp per-relation group count
estimate to less than the number of values estimated for any one grouping
Var, as suggested by Manfred.  This is intuitively right, and what's
more it puts the plan choices in the subselect regression test back the
way they were before ...

20 years agoAdjust plpgsql to allow assignment to an element of an array that is
Tom Lane [Tue, 1 Feb 2005 19:35:29 +0000 (19:35 +0000)] 
Adjust plpgsql to allow assignment to an element of an array that is
initially NULL.  For 8.0 we changed the main executor to have this
behavior in an UPDATE of an array column, but plpgsql's equivalent case
was overlooked.  Per report from Sven Willenberger.

20 years agoBackpatch FAQ changes to 8.0.X.
Bruce Momjian [Tue, 1 Feb 2005 02:42:03 +0000 (02:42 +0000)] 
Backpatch FAQ changes to 8.0.X.

20 years agoSync inet formatting code with recent BIND releases. In particular,
Tom Lane [Tue, 1 Feb 2005 00:59:53 +0000 (00:59 +0000)] 
Sync inet formatting code with recent BIND releases.  In particular,
fix bug with inconsistent selection of default mask length for
"class D" addresses.  Per report from Steve Atkins.

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

20 years agoStamp 8.0 branch as 8.0.1.
Tom Lane [Sun, 30 Jan 2005 19:17:49 +0000 (19:17 +0000)] 
Stamp 8.0 branch as 8.0.1.

20 years agoTranslation updates
Peter Eisentraut [Sun, 30 Jan 2005 15:47:30 +0000 (15:47 +0000)] 
Translation updates

20 years agoBackpatch FAQ to 8.0.X.
Bruce Momjian [Sun, 30 Jan 2005 04:45:23 +0000 (04:45 +0000)] 
Backpatch FAQ to 8.0.X.

20 years agoFAQ markup fixes.
Bruce Momjian [Sun, 30 Jan 2005 04:44:25 +0000 (04:44 +0000)] 
FAQ markup fixes.

20 years agoBackpatch FAQ to 8.0.X.
Bruce Momjian [Sun, 30 Jan 2005 04:26:40 +0000 (04:26 +0000)] 
Backpatch FAQ to 8.0.X.

20 years agoBackpatch FAQ changes to 8.0.X.
Bruce Momjian [Sun, 30 Jan 2005 04:22:53 +0000 (04:22 +0000)] 
Backpatch FAQ changes to 8.0.X.

20 years agoWe haven't had a fixed limit on rule recursion depth since 7.3 ...
Tom Lane [Sat, 29 Jan 2005 23:45:53 +0000 (23:45 +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:17 +0000 (22:35 +0000)] 
Make sure contrib C functions are marked strict where needed.
Kris Jurka

20 years agoAdd documentation for format_type(), which somehow escaped it before.
Tom Lane [Fri, 28 Jan 2005 23:13:26 +0000 (23:13 +0000)] 
Add documentation for format_type(), which somehow escaped it before.

20 years agoAdd intset() to README (backpatch teodor's docs fix in HEAD).
Tom Lane [Fri, 28 Jan 2005 22:58:59 +0000 (22:58 +0000)] 
Add intset() to README (backpatch teodor's docs fix in HEAD).

20 years agoAdd note cautioning that you can't use an encrypting IDENT server
Tom Lane [Fri, 28 Jan 2005 22:38:50 +0000 (22:38 +0000)] 
Add note cautioning that you can't use an encrypting IDENT server
with Postgres.

20 years agoWhen dealing with multiple grouping columns coming from the same table,
Tom Lane [Fri, 28 Jan 2005 20:35:14 +0000 (20:35 +0000)] 
When dealing with multiple grouping columns coming from the same table,
clamp the estimated number of groups to table row count over 10, instead
of table row count; this reflects a heuristic that people probably won't
group over a near-unique set of columns, and the knowledge that we don't
currently have any way to estimate the correlation of the columns better
than guessing.  This change creates a trivial plan change in one of the
regression tests.

20 years agoImprove planner's estimation of the space needed for HashAgg plans:
Tom Lane [Fri, 28 Jan 2005 19:36:33 +0000 (19:36 +0000)] 
Improve planner's estimation of the space needed for HashAgg plans:
look at the actual aggregate transition datatypes and the actual overhead
needed by nodeAgg.c, instead of using pessimistic round numbers.
Per a discussion with Michael Tiemann.

20 years agopg_aggregate.h fails to compile standalone, for lack of an #include
Tom Lane [Fri, 28 Jan 2005 17:36:04 +0000 (17:36 +0000)] 
pg_aggregate.h fails to compile standalone, for lack of an #include
defining List.

20 years agoAdjust mkdir_p to do stat() before trying mkdir(). Avoids problems on
Tom Lane [Fri, 28 Jan 2005 00:36:17 +0000 (00:36 +0000)] 
Adjust mkdir_p to do stat() before trying mkdir().  Avoids problems on
Solaris and should be a little faster anyway, since in most scenarios
all but perhaps the last path component will already exist.

20 years agoCheck that aggregate creator has the right to execute the transition
Tom Lane [Thu, 27 Jan 2005 23:42:44 +0000 (23:42 +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:06 +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:07 +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 agoBackpatch translations
Peter Eisentraut [Thu, 27 Jan 2005 12:10:04 +0000 (12:10 +0000)] 
Backpatch translations