]> granicus.if.org Git - postgresql/log
postgresql
14 years agoFurther message changes when recovery.conf parameters missing.
Simon Riggs [Tue, 6 Apr 2010 17:51:58 +0000 (17:51 +0000)]
Further message changes when recovery.conf parameters missing.

14 years agoRename "Log-streaming replication parameters" header to "Standby server
Heikki Linnakangas [Tue, 6 Apr 2010 14:53:20 +0000 (14:53 +0000)]
Rename "Log-streaming replication parameters" header to "Standby server
parameters" in recovery.conf, to match the grouping in the documentation.

Fujii Masao

14 years agoChange some debug ereports to elogs, as requested by translation team.
Simon Riggs [Tue, 6 Apr 2010 10:50:57 +0000 (10:50 +0000)]
Change some debug ereports to elogs, as requested by translation team.

14 years agoReword exclusion constriants to mention that the operator can return
Bruce Momjian [Tue, 6 Apr 2010 02:18:04 +0000 (02:18 +0000)]
Reword exclusion constriants to mention that the operator can return
false or null, per Tom.

14 years agoAssorted tab-completion improvements in psql.
Itagaki Takahiro [Mon, 5 Apr 2010 05:33:24 +0000 (05:33 +0000)]
Assorted tab-completion improvements in psql.

Add missing completions for:
- ALTER SEQUENCE name OWNER TO
- ALTER TYPE name RENAME TO
- ALTER VIEW name ALTER COLUMN
- ALTER VIEW name OWNER TO
- ALTER VIEW name SET SCHEMA

Fix wrong completions for:
- ALTER FUNCTION/AGGREGATE name (arguments) ...
    "(arguments)" has been ignored.
- ALTER ... SET SCHEMA
    "SCHEMA" has been considered as a variable name.

14 years agoExclude unwanted typedef symbols in pgindent, including FD_SET which is found on...
Andrew Dunstan [Mon, 5 Apr 2010 03:09:09 +0000 (03:09 +0000)]
Exclude unwanted typedef symbols in pgindent, including FD_SET which is found on some Windows platforms. Also, silence unnecessary messages and make awk happier about literal '*' on some platforms.

14 years agoClean up description of 9.0's incompatible changes in SIMILAR TO and
Tom Lane [Mon, 5 Apr 2010 02:46:42 +0000 (02:46 +0000)]
Clean up description of 9.0's incompatible changes in SIMILAR TO and
SQL-style substring().

14 years agoMake dmetaphone.c safe for pgindent and fussy compilers. Still to do: make it properl...
Andrew Dunstan [Mon, 5 Apr 2010 02:46:20 +0000 (02:46 +0000)]
Make dmetaphone.c safe for pgindent and fussy compilers. Still to do: make it properly encoding aware w.r.t. chars U+00C7 and U+00D1.

14 years agoUse a new API rather than a deprecated one in in cygwin.
Itagaki Takahiro [Mon, 5 Apr 2010 02:25:56 +0000 (02:25 +0000)]
Use a new API rather than a deprecated one in in cygwin.
cygwin_conv_to_full_win32_path should be replaced with cygwin_conv_path.

14 years agoArrange to remove pg_default_acl entries completely if their ACL setting
Tom Lane [Mon, 5 Apr 2010 01:58:03 +0000 (01:58 +0000)]
Arrange to remove pg_default_acl entries completely if their ACL setting
is changed to match the hard-wired default.  This avoids accumulating useless
catalog entries, and also provides a path for dropping the owning role without
using DROP OWNED BY.  Per yesterday's complaint from Jaime Casanova, the
need to use DROP OWNED BY for that is less than obvious, so providing this
alternative method might save some user frustration.

14 years agoFix updateAclDependencies() to not assume that ACL role dependencies can only
Tom Lane [Mon, 5 Apr 2010 01:09:53 +0000 (01:09 +0000)]
Fix updateAclDependencies() to not assume that ACL role dependencies can only
be added during GRANT and can only be removed during REVOKE; and fix its
callers to not lie to it about the existing set of dependencies when
instantiating a formerly-default ACL.  The previous coding accidentally failed
to malfunction so long as default ACLs contain only references to the object's
owning role, because that role is ignored by updateAclDependencies.  However
this is obviously pretty fragile, as well as being an undocumented assumption.
The new coding is a few lines longer but IMO much clearer.

14 years agoImprove phrasing of warning message for NOTIFY queue getting too full.
Tom Lane [Mon, 5 Apr 2010 00:42:24 +0000 (00:42 +0000)]
Improve phrasing of warning message for NOTIFY queue getting too full.
Per gripe from Peter.

14 years agoMinor wording improvement.
Tom Lane [Sat, 3 Apr 2010 21:46:59 +0000 (21:46 +0000)]
Minor wording improvement.

14 years ago\ddp should be recognized as such even if user appends S or + to it.
Tom Lane [Sat, 3 Apr 2010 20:55:57 +0000 (20:55 +0000)]
\ddp should be recognized as such even if user appends S or + to it.
Those options do nothing right now, but might be wanted later, and in
any case it's confusing for the command to be interpreted as \dd if
anything is appended.  Per Jaime Casanova.

14 years agoMake ecpg in line with other compilers in that it deletes its output if there was...
Michael Meskes [Sat, 3 Apr 2010 19:30:49 +0000 (19:30 +0000)]
Make ecpg in line with other compilers in that it deletes its output if there was an error processing the input file.

Work done by Zoltan.

14 years agoMessage quoting style tuning
Peter Eisentraut [Sat, 3 Apr 2010 07:53:29 +0000 (07:53 +0000)]
Message quoting style tuning

14 years agoClarify documentation of to_char EEEE pattern
Peter Eisentraut [Sat, 3 Apr 2010 07:53:02 +0000 (07:53 +0000)]
Clarify documentation of to_char EEEE pattern

14 years agoRemove unnecessary xref endterm attributes and title ids
Peter Eisentraut [Sat, 3 Apr 2010 07:23:02 +0000 (07:23 +0000)]
Remove unnecessary xref endterm attributes and title ids

The endterm attribute is mainly useful when the toolchain does not support
automatic link target text generation for a particular situation.  In  the
past, this was required by the man page tools for all reference page links,
but that is no longer the case, and it now actually gets in the way of
proper automatic link text generation.  The only remaining use cases are
currently xrefs to refsects.

14 years agoAllow for more room in the man page title, so that
Peter Eisentraut [Sat, 3 Apr 2010 07:16:05 +0000 (07:16 +0000)]
Allow for more room in the man page title, so that
"CREATE TEXT SEARCH CONFIGURATION" is not truncated.

14 years agoCheck compulsory parameters in recovery.conf in standby_mode, per docs.
Simon Riggs [Fri, 2 Apr 2010 21:50:40 +0000 (21:50 +0000)]
Check compulsory parameters in recovery.conf in standby_mode, per docs.

14 years agoClarify some behaviours of REASSIGN OWNED and DROP OWNED BY.
Simon Riggs [Fri, 2 Apr 2010 17:29:22 +0000 (17:29 +0000)]
Clarify some behaviours of REASSIGN OWNED and DROP OWNED BY.

14 years agoEnsure that contrib/pgstattuple functions respond to cancel interrupts
Tom Lane [Fri, 2 Apr 2010 16:16:51 +0000 (16:16 +0000)]
Ensure that contrib/pgstattuple functions respond to cancel interrupts
reasonably promptly, by adding CHECK_FOR_INTERRUPTS in the per-page loops.

Tatsuhito Kasahara

14 years agoUpdate a number of broken links in comments.
Magnus Hagander [Fri, 2 Apr 2010 15:21:20 +0000 (15:21 +0000)]
Update a number of broken links in comments.

Josh Kupershmidt

14 years agoFix minor typos in comments.
Magnus Hagander [Fri, 2 Apr 2010 15:19:22 +0000 (15:19 +0000)]
Fix minor typos in comments.

Josh Kupershmidt

14 years agoFix the build and install rules for man pages with SQL section != 7
Peter Eisentraut [Fri, 2 Apr 2010 14:02:49 +0000 (14:02 +0000)]
Fix the build and install rules for man pages with SQL section != 7

The previous coding failed in various scenarios possibly including vpath
builds and doing make install without preceding make all.

14 years agoMove system startup message prior to any calls out of data directory.
Simon Riggs [Fri, 2 Apr 2010 13:10:56 +0000 (13:10 +0000)]
Move system startup message prior to any calls out of data directory.
This allows us to see what mode the server is in before it starts to
perform actions that can block or hang. Otherwise server messages
may not appear until after messages that say FATAL the database
server is starting up.

14 years agoFATAL errors are meant to stop ecpg immediately, e.g. because the syntax is
Michael Meskes [Fri, 2 Apr 2010 10:27:45 +0000 (10:27 +0000)]
FATAL errors are meant to stop ecpg immediately, e.g. because the syntax is
corrupted. This error, however, does is not a compilation problem but a runtime
one, so we can keep compiling but still have to declare ERROR.

14 years agoDon't pass an invalid file handle to dup2(). That causes a crash on
Heikki Linnakangas [Thu, 1 Apr 2010 20:12:22 +0000 (20:12 +0000)]
Don't pass an invalid file handle to dup2(). That causes a crash on
Windows, thanks to a feature in CRT called Parameter Validation.

Backpatch to 8.2, which is the oldest version supported on Windows. In
8.2 and 8.3 also backpatch the earlier change to use DEVNULL instead of
NULL_DEV #define for a /dev/null-like device. NULL_DEV was hard-coded to
"/dev/null" regardless of platform, which didn't work on Windows, while
DEVNULL works on all platforms. Restarting syslogger didn't work on
Windows on versions 8.3 and below because of that.

14 years agoUse a file of patterns of filenames to exclude from pgindent runs, instead if using...
Andrew Dunstan [Thu, 1 Apr 2010 14:44:39 +0000 (14:44 +0000)]
Use a file of patterns of filenames to exclude from pgindent runs, instead if using multiple invocations of egrep. Add perl ppport.h to the current list.

14 years agoChange test -e to test -f in docs, for portability.
Bruce Momjian [Thu, 1 Apr 2010 13:52:56 +0000 (13:52 +0000)]
Change test -e to test -f in docs, for portability.

14 years agoZoltan beautified his hidden-variable-patch for ecpg. This also makes sure we get...
Michael Meskes [Thu, 1 Apr 2010 10:30:53 +0000 (10:30 +0000)]
Zoltan beautified his hidden-variable-patch for ecpg. This also makes sure we get an error message instead of a warning if the variable have different types.

14 years agoApplied Zoltan's patch to make ecpg spit out warnings if a local variable hides a...
Michael Meskes [Thu, 1 Apr 2010 08:41:01 +0000 (08:41 +0000)]
Applied Zoltan's patch to make ecpg spit out warnings if a local variable hides a global one with the same name.

14 years agoAdd contraint exclusion section to contraint docs. REL9_0_ALPHA5
Bruce Momjian [Thu, 1 Apr 2010 01:18:17 +0000 (01:18 +0000)]
Add contraint exclusion section to contraint docs.

Takahiro Itagaki

14 years agoRefer to max_wal_senders in a more consistent fashion.
Robert Haas [Thu, 1 Apr 2010 00:43:29 +0000 (00:43 +0000)]
Refer to max_wal_senders in a more consistent fashion.

The error message now makes explicit reference to the GUC that must be changed
to fix the problem, using wording suggested by Tom Lane.  Along the way,
rename the GUC from MaxWalSenders to max_wal_senders for consistency and
grep-ability.

14 years agoAdd full names for release note item authors.
Bruce Momjian [Thu, 1 Apr 2010 00:32:53 +0000 (00:32 +0000)]
Add full names for release note item authors.

14 years agoUse test -e rather than test -f.
Bruce Momjian [Thu, 1 Apr 2010 00:31:00 +0000 (00:31 +0000)]
Use test -e rather than test -f.

14 years agoImprove 9.0 release notes by removing extra parentheses and linking to a
Bruce Momjian [Thu, 1 Apr 2010 00:18:21 +0000 (00:18 +0000)]
Improve 9.0 release notes by removing extra parentheses and linking to a
more appropriate place for exclusion constraints.

14 years agoRevert change that prevented ellipses from looking like ../.
Bruce Momjian [Wed, 31 Mar 2010 23:51:41 +0000 (23:51 +0000)]
Revert change that prevented ellipses from looking like ../.

14 years agoClarify ellipses use in archive_command example, per Josh Kupershmidt.
Bruce Momjian [Wed, 31 Mar 2010 23:39:15 +0000 (23:39 +0000)]
Clarify ellipses use in archive_command example, per Josh Kupershmidt.

14 years agoDocument why 'cp -i </dev/null' is suggested for archive command.
Bruce Momjian [Wed, 31 Mar 2010 23:35:19 +0000 (23:35 +0000)]
Document why 'cp -i </dev/null' is suggested for archive command.

14 years agoFix typos, spotted by Thom Brown.
Heikki Linnakangas [Wed, 31 Mar 2010 20:41:50 +0000 (20:41 +0000)]
Fix typos, spotted by Thom Brown.

14 years agoEnhance standby documentation.
Heikki Linnakangas [Wed, 31 Mar 2010 20:35:09 +0000 (20:35 +0000)]
Enhance standby documentation.

Original patch by Fujii Masao, with heavy editing and bitrot-fixing
after my other commit.

14 years agoMention in the docs that if special keywords like "sameuser" and
Heikki Linnakangas [Wed, 31 Mar 2010 20:18:10 +0000 (20:18 +0000)]
Mention in the docs that if special keywords like "sameuser" and
"replication" are quoted in pg_hba.conf, they lose their special meaning.

14 years agoEnhance documentation of the build-in standby mode, explaining the retry
Heikki Linnakangas [Wed, 31 Mar 2010 19:13:01 +0000 (19:13 +0000)]
Enhance documentation of the build-in standby mode, explaining the retry
loop in standby mode, trying to restore from archive, pg_xlog and
streaming.

Move sections around to make the high availability chapter more
coherent: the most prominent part is now a "Log-Shipping Standby Servers"
section that describes what a standby server is (like the old
"Warm Standby Servers for High Availability" section), and how to
set up a warm standby server, including streaming replication, using the
built-in standby mode. The pg_standby method is desribed in another
section called "Alternative method for log shipping", with the added
caveat that it doesn't work with streaming replication.

14 years agoChange recovery.conf.sample to match postgresql.conf by showing only
Bruce Momjian [Wed, 31 Mar 2010 14:18:45 +0000 (14:18 +0000)]
Change recovery.conf.sample to match postgresql.conf by showing only
default values, with example comments.

14 years agoGive a more precise error message if a variable is re-used as cursor name in ecpg.
Michael Meskes [Wed, 31 Mar 2010 08:45:18 +0000 (08:45 +0000)]
Give a more precise error message if a variable is re-used as cursor name in ecpg.

14 years agoFix "constraint_exclusion = partition" logic so that it will also attempt
Tom Lane [Tue, 30 Mar 2010 21:58:11 +0000 (21:58 +0000)]
Fix "constraint_exclusion = partition" logic so that it will also attempt
constraint exclusion on an inheritance set that is the target of an UPDATE
or DELETE query.  Per gripe from Marc Cousin.  Back-patch to 8.4 where
the feature was introduced.

14 years agoChange the retry-loop in standby mode to also try restoring files from
Heikki Linnakangas [Tue, 30 Mar 2010 16:23:57 +0000 (16:23 +0000)]
Change the retry-loop in standby mode to also try restoring files from
pg_xlog directory. This is essential for replaying WAL records that
were streamed from the master, after a standby server restart.

If a corrupt record is seen in a file restored from the archive or
streamed from the master, log it as a WARNING and keep retrying. If the
corruption is permanent, and not just a glitch in the whatever copies the
files to the archive or a network error not caught by CRC checks in TCP
for example, we will keep retrying and logging the WARNING indefinitely.
But that's better than shutting down completely, the standby is still
useful for running read-only queries. In PITR the recovery ends at such a
corrupt record, which is a bit questionable, but that's the behavior we
had in previous releases and we don't feel like chaning it now. It does
make sense for tools like pg_standby.

14 years agoMessage tuning
Peter Eisentraut [Tue, 30 Mar 2010 16:08:22 +0000 (16:08 +0000)]
Message tuning

14 years agoProperly initialize local varaible in
Bruce Momjian [Tue, 30 Mar 2010 13:46:09 +0000 (13:46 +0000)]
Properly initialize local varaible in
btree_xlog_delete_get_latestRemovedXid().  This variable was only tested
in assert builds.

14 years agoAdd comma missing from postgresql.conf comment.
Bruce Momjian [Tue, 30 Mar 2010 00:11:45 +0000 (00:11 +0000)]
Add comma missing from postgresql.conf comment.

14 years agoSeparate targets "make docs" and "make install-docs" for the documentation
Peter Eisentraut [Tue, 30 Mar 2010 00:10:46 +0000 (00:10 +0000)]
Separate targets "make docs" and "make install-docs" for the documentation

It is no longer installed by default, but included in "make world"/"make
install-world".  Documentation updated accordingly.

Also, fix vpathsearch function to work when calling make install-docs
without previous make docs.

14 years agoAdd note that XML Schema validation is not supported
Peter Eisentraut [Mon, 29 Mar 2010 22:01:08 +0000 (22:01 +0000)]
Add note that XML Schema validation is not supported

requested by Andrew Lardinois

14 years agoAdd some information about what it means for PL/Python to be untrusted.
Peter Eisentraut [Mon, 29 Mar 2010 21:35:59 +0000 (21:35 +0000)]
Add some information about what it means for PL/Python to be untrusted.
Similar information already appears in the PL/Perl and PL/Tcl chapters.

14 years agoAdd some documentation about PL/Python limitations
Peter Eisentraut [Mon, 29 Mar 2010 21:20:58 +0000 (21:20 +0000)]
Add some documentation about PL/Python limitations

suggested by Steve White (bug #5272)

14 years agoEdit recovery.conf.sample so it matches docs. Change standby_mode
Simon Riggs [Mon, 29 Mar 2010 18:50:36 +0000 (18:50 +0000)]
Edit recovery.conf.sample so it matches docs. Change standby_mode
example to 'on or 'off' rather than 'true' or 'false', as shown
in docs. Add restartpoint_command. Add section header for recovery
target parameters, matching docs.

14 years agoRework join-removal logic as per recent discussion. In particular this
Tom Lane [Sun, 28 Mar 2010 22:59:34 +0000 (22:59 +0000)]
Rework join-removal logic as per recent discussion.  In particular this
fixes things so that it works for cases where nested removals are possible.
The overhead of the optimization should be significantly less, as well.

14 years agoDerive latestRemovedXid for btree deletes by reading heap pages. The
Simon Riggs [Sun, 28 Mar 2010 09:27:02 +0000 (09:27 +0000)]
Derive latestRemovedXid for btree deletes by reading heap pages. The
WAL record for btree delete contains a list of tids, even when backup
blocks are present. We follow the tids to their heap tuples, taking
care to follow LP_REDIRECT tuples. We ignore LP_DEAD tuples on the
understanding that they will always have xmin/xmax earlier than any
LP_NORMAL tuples referred to by killed index tuples. Iff all tuples
are LP_DEAD we return InvalidTransactionId. The heap relfilenode is
added to the WAL record, requiring API changes to pass down the heap
Relation. XLOG_PAGE_MAGIC updated.

14 years agoFlush CopyOutResponse when starting streaming in walsender, so that it's
Heikki Linnakangas [Fri, 26 Mar 2010 12:23:34 +0000 (12:23 +0000)]
Flush CopyOutResponse when starting streaming in walsender, so that it's
not delayed until the first WAL record is sent.

Fujii Masao

14 years agoModify some new and pre-existing messages for translatability.
Simon Riggs [Thu, 25 Mar 2010 20:40:17 +0000 (20:40 +0000)]
Modify some new and pre-existing messages for translatability.

14 years agoFix ginint4_queryextract() to actually do what it was intended to do for an
Tom Lane [Thu, 25 Mar 2010 15:50:10 +0000 (15:50 +0000)]
Fix ginint4_queryextract() to actually do what it was intended to do for an
unsatisfiable query, such as indexcol && empty_array.  It should return -1
to tell GIN no scan is required; but silly typo disabled the logic for that,
resulting in unnecessary "GIN indexes do not support whole-index scans" error.
Per bug report from Jeff Trout.

Back-patch to 8.3 where the logic was introduced.

14 years agoPrevent ALTER USER f RESET ALL from removing the settings that were put there
Alvaro Herrera [Thu, 25 Mar 2010 14:44:34 +0000 (14:44 +0000)]
Prevent ALTER USER f RESET ALL from removing the settings that were put there
by a superuser -- "ALTER USER f RESET setting" already disallows removing such a
setting.

Apply the same treatment to ALTER DATABASE d RESET ALL when run by a database
owner that's not superuser.

14 years agoAdditional thoughts on WALSender cpu reduction. Use long type
Simon Riggs [Wed, 24 Mar 2010 21:41:57 +0000 (21:41 +0000)]
Additional thoughts on WALSender cpu reduction. Use long type
and alter a comment to reduce confusion.

14 years agoChange replication connection log format to allow for a database
Simon Riggs [Wed, 24 Mar 2010 21:25:50 +0000 (21:25 +0000)]
Change replication connection log format to allow for a database
called replication. Add host and port details, following format
of messages in BackendInitialize().

14 years agoReduce CPU utilisation of WALSender process. Process was using 10% CPU
Simon Riggs [Wed, 24 Mar 2010 20:11:12 +0000 (20:11 +0000)]
Reduce CPU utilisation of WALSender process. Process was using 10% CPU
doing nothing, caused by naptime specified in milliseconds yet units of
pg_usleep() parameter is microseconds. Correctly specifying units
reduces call frequency by 1000. Reduction in CPU consumption verified.

14 years agoFix thinko in log message for "sameuser" ident map mismatch: the provided
Tom Lane [Wed, 24 Mar 2010 17:05:45 +0000 (17:05 +0000)]
Fix thinko in log message for "sameuser" ident map mismatch: the provided
and authenticated usernames were swapped.  Reported by Bryan Henderson
in bug #5386.

Also clean up poorly-maintained header comment for this function.

14 years agoNow that we know last_statrequest > last_statwrite can be observed in the
Tom Lane [Wed, 24 Mar 2010 16:07:10 +0000 (16:07 +0000)]
Now that we know last_statrequest > last_statwrite can be observed in the
buildfarm, expend a little more effort on the log message for it.

14 years agoMark "installcheck-parallel", "world", "install-world" and "installcheck-world"...
Andrew Dunstan [Wed, 24 Mar 2010 13:14:02 +0000 (13:14 +0000)]
Mark  "installcheck-parallel", "world", "install-world" and "installcheck-world" make targets as PHONY. Fujii Masao.

14 years agoUpdate description of walrcv_receive() function to match reality.
Heikki Linnakangas [Wed, 24 Mar 2010 06:25:39 +0000 (06:25 +0000)]
Update description of walrcv_receive() function to match reality.

14 years agoDocument in postgresql.conf that the max_standby_delay default is 30
Bruce Momjian [Wed, 24 Mar 2010 03:13:45 +0000 (03:13 +0000)]
Document in postgresql.conf that the max_standby_delay default is 30
'seconds'.

14 years agoTypo fix from IRC breinbaas
Bruce Momjian [Tue, 23 Mar 2010 22:37:14 +0000 (22:37 +0000)]
Typo fix from IRC breinbaas

14 years agoRemove useless double assignment
Peter Eisentraut [Tue, 23 Mar 2010 22:12:06 +0000 (22:12 +0000)]
Remove useless double assignment

GCC 4.5 complained about it.

14 years agoRemove CRs for each line in pgbench.sgml.
Itagaki Takahiro [Tue, 23 Mar 2010 04:09:17 +0000 (04:09 +0000)]
Remove CRs for each line in pgbench.sgml.

14 years agoAdd back other xlog() function author names.
Bruce Momjian [Tue, 23 Mar 2010 02:28:48 +0000 (02:28 +0000)]
Add back other xlog() function author names.

14 years agoEach worker thread will have its own log file in pgbench to avoid interleaved
Itagaki Takahiro [Tue, 23 Mar 2010 01:29:22 +0000 (01:29 +0000)]
Each worker thread will have its own log file in pgbench to avoid interleaved
writes. The first worker still uses "pgbench_log.<pid>" for the name, but
additional workers use "pgbench_log.<pid>.<serial-number>" instead.

Reported by Greg Smith.

14 years agoProperly credit Simon for functions pg_last_xlog_replay_location, etc.
Bruce Momjian [Mon, 22 Mar 2010 22:56:52 +0000 (22:56 +0000)]
Properly credit Simon for functions pg_last_xlog_replay_location, etc.

14 years agoFix regression test breakage from recent change in default name of exclusion-constrai...
Tom Lane [Mon, 22 Mar 2010 17:43:28 +0000 (17:43 +0000)]
Fix regression test breakage from recent change in default name of exclusion-constraint index.

14 years agoShorten suffix of automatically created indexes to "_excl" when using
Simon Riggs [Mon, 22 Mar 2010 15:24:11 +0000 (15:24 +0000)]
Shorten suffix of automatically created indexes to "_excl" when using
exclusion constraints, in line with string length of other pre-9.0 suffixes.

14 years agoRe-order createuser and vacuumedb documentation options, for
Bruce Momjian [Mon, 22 Mar 2010 14:56:09 +0000 (14:56 +0000)]
Re-order createuser and vacuumedb documentation options, for
consistency.

Gabrielle (Roth)

14 years agoFix an oversight in join-removal optimization: we have to check not only for
Tom Lane [Mon, 22 Mar 2010 13:57:16 +0000 (13:57 +0000)]
Fix an oversight in join-removal optimization: we have to check not only for
plain Vars that are generated in the inner rel and used above the join, but
also for PlaceHolderVars.  Per report from Oleg K.

14 years agoFixed ECPG regression test to make sure it uses absolute paths for include
Michael Meskes [Mon, 22 Mar 2010 07:41:20 +0000 (07:41 +0000)]
Fixed ECPG regression test to make sure it uses absolute paths for include
files instead of relative ones which break vpath builds.

14 years agoRemove 9.0 release notes xref's to HISTORY.html can be built.
Bruce Momjian [Sun, 21 Mar 2010 22:12:27 +0000 (22:12 +0000)]
Remove 9.0 release notes xref's to HISTORY.html can be built.

Document this restriction.

14 years agoAdding special command line option that is now needed for the one ecpg regression...
Michael Meskes [Sun, 21 Mar 2010 14:26:58 +0000 (14:26 +0000)]
Adding special command line option that is now needed for the one ecpg regression test that was changed.

14 years agoECPG's parser now accepts and handles variables as arguments for the FREE command.
Michael Meskes [Sun, 21 Mar 2010 11:56:45 +0000 (11:56 +0000)]
ECPG's parser now accepts and handles variables as arguments for the FREE command.

Informix allows variables as argument to the embedded SQL command FREE. Given
that we only allow freeing cursors via FREE for compatibility reasons only we
should do the same.

14 years agoAdjusted regression test results to the change I made in debug output for ecpglib.
Michael Meskes [Sun, 21 Mar 2010 11:38:16 +0000 (11:38 +0000)]
Adjusted regression test results to the change I made in debug output for ecpglib.

14 years agoCorrectly name functions in debug output in ecpglib. When the functions were
Michael Meskes [Sun, 21 Mar 2010 11:33:44 +0000 (11:33 +0000)]
Correctly name functions in debug output in ecpglib. When the functions were
refactored the debug output wasn't adjusted.

14 years agoECPG only copied #include statements instead of processing them according to
Michael Meskes [Sun, 21 Mar 2010 10:49:52 +0000 (10:49 +0000)]
ECPG only copied #include statements instead of processing them according to
commandline option "-i". This change fixes this and adds a test case. It also
honors #include_next, although this is probably never used for embedded SQL.

14 years agoAdd more 9.0 release note documentation links.
Bruce Momjian [Sun, 21 Mar 2010 02:24:29 +0000 (02:24 +0000)]
Add more 9.0 release note documentation links.

14 years agoAdd links to documentation sections in 9.0 release notes.
Bruce Momjian [Sun, 21 Mar 2010 00:43:40 +0000 (00:43 +0000)]
Add links to documentation sections in 9.0 release notes.

Also update tagging instructions, and add id tags to a few documentation
sections.

14 years agoMessage tuning
Peter Eisentraut [Sun, 21 Mar 2010 00:17:59 +0000 (00:17 +0000)]
Message tuning

14 years agoFixed ecpg parser to allow more than one C preprocessor command inside a declare...
Michael Meskes [Sat, 20 Mar 2010 18:53:00 +0000 (18:53 +0000)]
Fixed ecpg parser to allow more than one C preprocessor command inside a declare section.

14 years agoIn 9.0 release notes, move libpq/ecpg up into their own sections, like I
Bruce Momjian [Sat, 20 Mar 2010 16:31:09 +0000 (16:31 +0000)]
In 9.0 release notes, move libpq/ecpg up into their own sections, like I
did with server-side languages.

14 years agoMove server-side languages up one section in the 9.0 release notes.
Bruce Momjian [Sat, 20 Mar 2010 14:03:31 +0000 (14:03 +0000)]
Move server-side languages up one section in the 9.0 release notes.

14 years agoFurther corrections of mismatching struct and btree SizeOf macros.
Simon Riggs [Sat, 20 Mar 2010 07:49:48 +0000 (07:49 +0000)]
Further corrections of mismatching struct and btree SizeOf macros.
In this case, correction is to remove now unused fields from struct.
Since these were unused and full of garbage anyway, no version change.

14 years agoCreate 9.0 release notes; keep 9.0-alpha release notes in place.
Bruce Momjian [Sat, 20 Mar 2010 03:30:12 +0000 (03:30 +0000)]
Create 9.0 release notes;  keep 9.0-alpha release notes in place.

14 years agoUpdate sgml release note markup suggestions.
Bruce Momjian [Sat, 20 Mar 2010 03:12:52 +0000 (03:12 +0000)]
Update sgml release note markup suggestions.

14 years agoClear error_context_stack and debug_query_string at the beginning of proc_exit,
Tom Lane [Sat, 20 Mar 2010 00:58:09 +0000 (00:58 +0000)]
Clear error_context_stack and debug_query_string at the beginning of proc_exit,
so that we won't try to attach any context printouts to messages that get
emitted while exiting.  Per report from Dennis Koegel, the context functions
won't necessarily work after we've started shutting down the backend, and it
seems possible that debug_query_string could be pointing at freed storage
as well.  The context information doesn't seem particularly relevant to
such messages anyway, so there's little lost by suppressing it.

Back-patch to all supported branches.  I can only demonstrate a crash with
log_disconnections messages back to 8.1, but the risk seems real in 8.0 and
before anyway.

14 years agoForbid renaming columns of objects whose column names are system-generated.
Robert Haas [Sat, 20 Mar 2010 00:43:42 +0000 (00:43 +0000)]
Forbid renaming columns of objects whose column names are system-generated.

KaiGai Kohei, with adjustments to the comments.

14 years agoModify error context callback functions to not assume that they can fetch
Tom Lane [Fri, 19 Mar 2010 22:54:41 +0000 (22:54 +0000)]
Modify error context callback functions to not assume that they can fetch
catalog entries via SearchSysCache and related operations.  Although, at the
time that these callbacks are called by elog.c, we have not officially aborted
the current transaction, it still seems rather risky to initiate any new
catalog fetches.  In all these cases the needed information is readily
available in the caller and so it's just a matter of a bit of extra notation
to pass it to the callback.

Per crash report from Dennis Koegel.  I've concluded that the real fix for
his problem is to clear the error context stack at entry to proc_exit, but
it still seems like a good idea to make the callbacks a bit less fragile
for other cases.

Backpatch to 8.4.  We could go further back, but the patch doesn't apply
cleanly.  In the absence of proof that this fixes something and isn't just
paranoia, I'm not going to expend the effort.

14 years agoFix oversight in btpo.xact patch; it was in fact installing garbage
Tom Lane [Fri, 19 Mar 2010 20:51:30 +0000 (20:51 +0000)]
Fix oversight in btpo.xact patch; it was in fact installing garbage
in the xact field on replay, due to not writing out all the data in
the wal log struct.