Bruce Momjian [Sun, 8 Aug 2004 07:00:22 +0000 (07:00 +0000)]
Fix compiler warning in the proper way.
Bruce Momjian [Sun, 8 Aug 2004 06:58:00 +0000 (06:58 +0000)]
Supress warning about zero-length format string.
Bruce Momjian [Sun, 8 Aug 2004 06:44:36 +0000 (06:44 +0000)]
Allow libpgport to call memory allocation routines even though
CurrentMemoryContext is DLLIMPORT on Win32. Work around that by
creating stubs in the backend for palloc/pstrdup.
Also fix pg_dumpall to do proper quoting on Win32.
Joe Conway [Sun, 8 Aug 2004 06:03:36 +0000 (06:03 +0000)]
Another array syntax change (whitespace) clarification -- this time in
the release notes.
Joe Conway [Sun, 8 Aug 2004 05:55:55 +0000 (05:55 +0000)]
Minor clarification of documentation regarding trailing whitespace.
Joe Conway [Sun, 8 Aug 2004 05:46:40 +0000 (05:46 +0000)]
Updated release notes for recent array syntax changes.
Bruce Momjian [Sun, 8 Aug 2004 05:19:44 +0000 (05:19 +0000)]
More Win32 zic build cleanups now that we have symlinks, it needs help.
Bruce Momjian [Sun, 8 Aug 2004 05:04:41 +0000 (05:04 +0000)]
Adjust defines to be consistent.
Joe Conway [Sun, 8 Aug 2004 05:01:55 +0000 (05:01 +0000)]
Tighened up syntax checking of array input processing considerably. Junk that
was previously allowed in odd places with odd results now causes an ERROR.
Also changed behavior with respect to whitespace -- trailing whitespace is
now ignored as well as leading whitespace (which has always been ignored).
Documentation updated to reflect change in whitespace handling. Also some
refactoring to what I believe is a more sensible order of several paragraphs.
Bruce Momjian [Sun, 8 Aug 2004 04:53:41 +0000 (04:53 +0000)]
Another zic cleanup .
Tom Lane [Sun, 8 Aug 2004 04:34:43 +0000 (04:34 +0000)]
Update admin guide's discussion of WAL to match present reality.
Bruce Momjian [Sun, 8 Aug 2004 03:57:35 +0000 (03:57 +0000)]
Link in dirmod specially for zic so it works on Win32.
Bruce Momjian [Sun, 8 Aug 2004 03:51:20 +0000 (03:51 +0000)]
Remove xstrdup and friends who were only called once. Replace with
#ifdef calls.
Tom Lane [Sun, 8 Aug 2004 03:22:08 +0000 (03:22 +0000)]
Add a comment about why we always replay backup blocks from WAL.
Bruce Momjian [Sun, 8 Aug 2004 03:21:39 +0000 (03:21 +0000)]
Fix Win32 pg_dumpall, with help from Claudio.
Bruce Momjian [Sun, 8 Aug 2004 02:22:55 +0000 (02:22 +0000)]
Improve comment.
Tom Lane [Sun, 8 Aug 2004 02:05:32 +0000 (02:05 +0000)]
Minor editorialization on example --- I think that the use of dollar
quoting in this case is just needless obscurantism.
Bruce Momjian [Sun, 8 Aug 2004 01:52:14 +0000 (01:52 +0000)]
This patch adds SQL2003 to the set of standards with which PostgreSQL
is attempting to comply.
David Fetter
Bruce Momjian [Sun, 8 Aug 2004 01:51:05 +0000 (01:51 +0000)]
This adds a caveat to the inheritance part of the tutorial.
David Fetter
Bruce Momjian [Sun, 8 Aug 2004 01:49:30 +0000 (01:49 +0000)]
This patch adds an example to the CREATE DOMAIN docs.
David Fetter
Bruce Momjian [Sun, 8 Aug 2004 01:48:31 +0000 (01:48 +0000)]
Included is an example of using savepoints in a non-trivial example.
Giving examples in the SQL command reference is hard because we don't
have conditionals at the SQL level.
Gavin Sherry
Bruce Momjian [Sun, 8 Aug 2004 01:43:33 +0000 (01:43 +0000)]
Fix comment.
Bruce Momjian [Sun, 8 Aug 2004 01:31:15 +0000 (01:31 +0000)]
Fixups for Win32 symlinks.
Tom Lane [Sun, 8 Aug 2004 00:50:58 +0000 (00:50 +0000)]
Update plpgsql documentation for 8.0 (mostly, make use of named
function parameters and dollar quoting in examples; do some polishing
of the existing dollar-quoting docs). The 'how to port from Oracle'
section is looking pretty respectable these days ...
Bruce Momjian [Sat, 7 Aug 2004 21:48:09 +0000 (21:48 +0000)]
The attached patch implements a symlink for win32 using junctions, and
uses that for win32 tablespaces.
Andreas Pflug
Tom Lane [Sat, 7 Aug 2004 20:44:50 +0000 (20:44 +0000)]
Improve privileges discussion (mostly, mention grant options).
Tom Lane [Sat, 7 Aug 2004 19:53:48 +0000 (19:53 +0000)]
Update a couple of example error messages to reflect the fact that we
don't generate constraint names like "$1" anymore.
Tom Lane [Sat, 7 Aug 2004 19:14:45 +0000 (19:14 +0000)]
Improve markup a little.
Tom Lane [Sat, 7 Aug 2004 19:02:43 +0000 (19:02 +0000)]
Improve tablespace discussion, and bring it up to date with code.
Bruce Momjian [Sat, 7 Aug 2004 18:07:46 +0000 (18:07 +0000)]
Update pitr docs to mention inclusive/exclusive xid specification
Tom Lane [Sat, 7 Aug 2004 17:55:59 +0000 (17:55 +0000)]
Remove bogus trailing dot from eventlog output, per Andreas.
Clean up README file a bit.
Tom Lane [Sat, 7 Aug 2004 17:40:49 +0000 (17:40 +0000)]
Don't try to rewrite NEW references in a utility statement in a rule.
There won't be any, and in fact there won't even be an RTE for NEW,
which was leading to a core dump in CVS tip. 7.4 and earlier manage
not to crash when applying ResolveNew in this scenario, but I think
it was just good fortune that they didn't. Per report from
Bernd Helmle.
Bruce Momjian [Sat, 7 Aug 2004 12:21:25 +0000 (12:21 +0000)]
Fix markup.
Bruce Momjian [Sat, 7 Aug 2004 03:36:07 +0000 (03:36 +0000)]
Ignore trailing spaces in psql \h.
Greg Sabino Mullane
Bruce Momjian [Sat, 7 Aug 2004 03:21:11 +0000 (03:21 +0000)]
Mention that transactions can complete in a different numeric order, for
PITR recovery.
Jan Wieck [Sat, 7 Aug 2004 03:08:49 +0000 (03:08 +0000)]
Vacuum delay activated by default.
Jan
Bruce Momjian [Sat, 7 Aug 2004 01:58:12 +0000 (01:58 +0000)]
Add:
> * Create dump tool for write-ahead logs for use in determining
> transaction id for point-in-time recovery
Bruce Momjian [Sat, 7 Aug 2004 01:04:50 +0000 (01:04 +0000)]
Document delay as 0, per Matthew T. O'Connor
Tom Lane [Fri, 6 Aug 2004 23:33:48 +0000 (23:33 +0000)]
Some editorial work on the 8.0 release notes. Update for recent commits,
improve existing descriptions.
Tom Lane [Fri, 6 Aug 2004 19:17:31 +0000 (19:17 +0000)]
Arrange for proper newline termination of syslogger's own messages,
per Andreas.
Tom Lane [Fri, 6 Aug 2004 18:18:42 +0000 (18:18 +0000)]
Revert badly-broken patch to dump comments on composite-type columns.
Bruce Momjian [Fri, 6 Aug 2004 18:09:15 +0000 (18:09 +0000)]
I have noticed that the latex format in psql has some bugs:
o "_" is not escaped, and causes TeX to abort, thinking it's a
subscript outside of maths mode. Most of my table and field names
use underscores, so this is a really nasty one.
o The column count is calculated using the contents of opt_align. But
opt_align has one extra element, and so it's always one too many. I
changed it to count the column headings, like all the other output
formats. There may be a bug in computing opt_align that this patch
does not address, but I'm not yet familiar enough with the psql
source to fix this as well.
o The line drawing rules for each border setting (0-3) and expanded
mode didn't always match the documented behaviour and what other
formats (e.g. aligned) did. I made it as conformant as possible,
and also tidied the alignment of the first line of the footer, which
was incorrectly indented.
Roger Leigh
Tom Lane [Fri, 6 Aug 2004 18:05:49 +0000 (18:05 +0000)]
Use one, not zero, as the default lower bound for arrays of AclItems.
This avoids changing the displayed appearance of ACL columns now that
array_out decorates its output with bounds information when the lower
bound isn't one. Per gripe from Gaetano Mendola. Note that I did not
force initdb for this, although any database initdb'd in the last
couple of days is going to have some problems.
Bruce Momjian [Fri, 6 Aug 2004 17:52:44 +0000 (17:52 +0000)]
Modify:
> * Un-comment all variables in postgresql.conf
84,85c84,85
< By removing comments we prevent the confusion that commenting a line
< returns a modified value to its default, which it does not.
> By not showing commented-out variables, we discourage people from
> thinking that re-commenting a variable returns it to its default.
Tom Lane [Fri, 6 Aug 2004 16:06:59 +0000 (16:06 +0000)]
Add _O_TEXT option to dup2 call on Windows, to ensure redirected postmaster
stderr is in text mode. Per Andreas.
Tom Lane [Fri, 6 Aug 2004 16:00:51 +0000 (16:00 +0000)]
Fix several small Windows compatibility issues, per Andreas.
Bruce Momjian [Fri, 6 Aug 2004 15:24:20 +0000 (15:24 +0000)]
Add:
> * Track dependencies in function bodies and recompile/invalidate
Bruce Momjian [Fri, 6 Aug 2004 15:12:38 +0000 (15:12 +0000)]
Add description:
>
> By removing comments we prevent the confusion that commenting a line
> returns a modified value to its default, which it does not.
>
Bruce Momjian [Fri, 6 Aug 2004 15:08:52 +0000 (15:08 +0000)]
Add:
> * Remove comments on postgresql.conf variables
Bruce Momjian [Fri, 6 Aug 2004 04:15:09 +0000 (04:15 +0000)]
Rename vacuum_cost_naptime to vacuum_cost_delay, with agreement from Jan.
Tom Lane [Thu, 5 Aug 2004 23:32:13 +0000 (23:32 +0000)]
Create a built-in log rotation program, so that we no longer have to
recommend that people go get Apache's rotatelogs program. Additional
benefits are that configuration is done through GUC, rather than
externally, and that the postmaster can monitor the log rotator and
restart it after failure (though we certainly hope that won't happen
often).
Andreas Pflug, some rework by Tom Lane.
Dennis Bjorklund [Thu, 5 Aug 2004 06:50:27 +0000 (06:50 +0000)]
Translation updates
Dennis Bjorklund [Thu, 5 Aug 2004 06:43:42 +0000 (06:43 +0000)]
Translation updates
Joe Conway [Thu, 5 Aug 2004 03:30:44 +0000 (03:30 +0000)]
Require that array literals produce "rectangular" arrays, i.e. all the
subarrays of a given dimension have the same number of elements/subarrays.
Also repair a longstanding undocumented (as far as I can see) ability to
explicitly set array bounds in the array literal syntax. It now can
deal properly with negative array indicies. Modify array_out so that
arrays with non-standard lower bounds (i.e. not 1) are output with
the expicit dimension syntax. This fixes a longstanding issue whereby
arrays with non-default lower bounds had them changed to default
after a dump/reload cycle.
Modify regression tests and docs to suit, and add some minimal
documentation regarding the explicit dimension syntax.
Joe Conway [Thu, 5 Aug 2004 03:11:55 +0000 (03:11 +0000)]
Restore behavior of --pgxs option to that of the original shell script.
Joe Conway [Thu, 5 Aug 2004 03:10:29 +0000 (03:10 +0000)]
Move include for Python.h above postgres.h to eliminate compiler warning.
Bruce Momjian [Wed, 4 Aug 2004 22:59:42 +0000 (22:59 +0000)]
Update for 8.0
Dennis Bjorklund [Wed, 4 Aug 2004 21:55:27 +0000 (21:55 +0000)]
Use gettext_noop() to mark strings. errmsg() perform the
real gettext() later on, so it was called twice before.
Tom Lane [Wed, 4 Aug 2004 21:34:35 +0000 (21:34 +0000)]
Label CVS tip as 8.0devel instead of 7.5devel. Adjust various comments
and documentation to reference 8.0 instead of 7.5.
Tom Lane [Wed, 4 Aug 2004 20:58:46 +0000 (20:58 +0000)]
Add LOG_NOWAIT flag to openlog() call, per my note of 2004-06-24.
Tom Lane [Wed, 4 Aug 2004 20:53:53 +0000 (20:53 +0000)]
Fix silly thinko in ALTER COLUMN TYPE. Check for finding expected
dependency was looking at wrong columns and so would always fail.
Was not exposed by regression tests because we are only testing cases
involving built-in (pinned) types and so no actual dependency entry
exists to be removed.
Tom Lane [Wed, 4 Aug 2004 20:33:49 +0000 (20:33 +0000)]
Update oidjoins regression test to match current catalog structure.
Tom Lane [Wed, 4 Aug 2004 20:09:47 +0000 (20:09 +0000)]
Tweak postmaster code to avoid double reporting when bgwriter crashes.
Tom Lane [Wed, 4 Aug 2004 19:31:15 +0000 (19:31 +0000)]
record_out and friends need to cope with dropped columns in the row
datatype. Per example from Gaetano Mendola, 2004-07-25.
Tom Lane [Wed, 4 Aug 2004 17:37:09 +0000 (17:37 +0000)]
Add some notes about unimplemented aspects of PITR backup/recovery.
Tom Lane [Wed, 4 Aug 2004 17:13:03 +0000 (17:13 +0000)]
Dump comments on columns of composite types.
Instead of putting all the OWNER TO commands at the end, it dumps then
after each object. This is WAY more readable and nice. ACLs are still
at the end.
Christopher Kings-Lynne
Dennis Bjorklund [Wed, 4 Aug 2004 16:40:11 +0000 (16:40 +0000)]
Translation updates
Tom Lane [Wed, 4 Aug 2004 16:25:02 +0000 (16:25 +0000)]
Make use of backup label/history files to control recovery properly.
Tom Lane [Wed, 4 Aug 2004 16:24:26 +0000 (16:24 +0000)]
Fix typo in comment.
Dennis Bjorklund [Wed, 4 Aug 2004 16:05:13 +0000 (16:05 +0000)]
Add some strings for translation and remove some cut'n'paste
that makes it impossible to translate to other languages.
Bruce Momjian [Wed, 4 Aug 2004 16:02:08 +0000 (16:02 +0000)]
Fix syntax error by adding a space.
Tom Lane [Tue, 3 Aug 2004 23:42:59 +0000 (23:42 +0000)]
Preliminary documentation for PITR.
Tom Lane [Tue, 3 Aug 2004 20:32:36 +0000 (20:32 +0000)]
Add functions pg_start_backup, pg_stop_backup to create backup label
and history files as per recent discussion. While at it, remove
pg_terminate_backend, since we have decided we do not have time during
this release cycle to address the reliability concerns it creates.
Split the 'Miscellaneous Functions' documentation section into
'System Information Functions' and 'System Administration Functions',
which hopefully will draw the eyes of those looking for such things.
Tom Lane [Tue, 3 Aug 2004 15:57:26 +0000 (15:57 +0000)]
Fix misplacement of savepointLevel test, per report from Chris K-L.
Peter Eisentraut [Tue, 3 Aug 2004 08:11:37 +0000 (08:11 +0000)]
Translation update
Bruce Momjian [Tue, 3 Aug 2004 01:14:57 +0000 (01:14 +0000)]
Move dbsize/oid2name to open items list.
Tom Lane [Mon, 2 Aug 2004 21:42:18 +0000 (21:42 +0000)]
Fix not-quite-right Assertion. Did not work at all in extended-query
mode (per complaint from Kris Jurka) and it was only by chance that it
didn't fail in simple-query mode. A COMMIT or ROLLBACK has to be
executed by a portal, therefore it's wrong to suppose that there aren't
any live portals at CleanupTransaction time.
Tom Lane [Mon, 2 Aug 2004 17:03:48 +0000 (17:03 +0000)]
Actually, there's no need to use pg_strcasecmp for checking exception
names, because the name we got from the lexer is already downcased.
Just store the table in lower case and use strcmp ...
Tom Lane [Mon, 2 Aug 2004 16:51:10 +0000 (16:51 +0000)]
While perusing SQL92 I realized that we are delivering the wrong SQLSTATE
error code for string-too-long errors. It should be STRING_DATA_RIGHT_TRUNCATION
not STRING_DATA_LENGTH_MISMATCH. The latter probably should only be
applied to cases where a string must be exactly so many bits --- there are
no cases at all where it applies to character strings, only bit strings.
Peter Eisentraut [Mon, 2 Aug 2004 15:17:21 +0000 (15:17 +0000)]
Translation updates
Peter Eisentraut [Mon, 2 Aug 2004 15:11:19 +0000 (15:11 +0000)]
Translation update
Bruce Momjian [Mon, 2 Aug 2004 12:46:49 +0000 (12:46 +0000)]
Mark savepoints as supported.
Bruce Momjian [Mon, 2 Aug 2004 12:34:14 +0000 (12:34 +0000)]
Readd pg_config --pgxs code.
Tom Lane [Mon, 2 Aug 2004 04:28:29 +0000 (04:28 +0000)]
Support USING INDEX TABLESPACE clause for PRIMARY KEY and UNIQUE
constraints. Christopher Kings-Lynne.
Tom Lane [Mon, 2 Aug 2004 01:30:51 +0000 (01:30 +0000)]
Allow DECLARE CURSOR to take parameters from the portal in which it is
executed. Previously, the DECLARE would succeed but subsequent FETCHes
would fail since the parameter values supplied to DECLARE were not
propagated to the portal created for the cursor.
In support of this, add type Oids to ParamListInfo entries, which seems
like a good idea anyway since code that extracts a value can double-check
that it got the type of value it was expecting.
Oliver Jowett, with minor editorialization by Tom Lane.
Tom Lane [Sun, 1 Aug 2004 20:57:59 +0000 (20:57 +0000)]
Update the in-code documentation about the transaction system. Move it
into a README file instead of being in xact.c's header comment.
Alvaro Herrera.
Tom Lane [Sun, 1 Aug 2004 20:30:49 +0000 (20:30 +0000)]
Cause ALTER OWNER commands to update the object's ACL, replacing references
to the old owner with the new owner. This is not necessarily right, but
it's sure a lot more likely to be what the user wants than doing nothing.
Christopher Kings-Lynne, some rework by Tom Lane.
Tom Lane [Sun, 1 Aug 2004 18:07:42 +0000 (18:07 +0000)]
Add libpgport to postgres.def for Windows build. Per Magnus Hagander.
Peter Eisentraut [Sun, 1 Aug 2004 17:54:22 +0000 (17:54 +0000)]
Translation updates (zh_TW converted to UTF-8)
Tom Lane [Sun, 1 Aug 2004 17:45:43 +0000 (17:45 +0000)]
Error message style adjustments, per Alvaro Herrera.
Tom Lane [Sun, 1 Aug 2004 17:32:22 +0000 (17:32 +0000)]
Some mop-up work for savepoints (nested transactions). Store a small
number of active subtransaction XIDs in each backend's PGPROC entry,
and use this to avoid expensive probes into pg_subtrans during
TransactionIdIsInProgress. Extend EOXactCallback API to allow add-on
modules to get control at subxact start/end. (This is deliberately
not compatible with the former API, since any uses of that API probably
need manual review anyway.) Add basic reference documentation for
SAVEPOINT and related commands. Minor other cleanups to check off some
of the open issues for subtransactions.
Alvaro Herrera and Tom Lane.
Bruce Momjian [Sun, 1 Aug 2004 14:08:08 +0000 (14:08 +0000)]
Some name cleanup.
Bruce Momjian [Sun, 1 Aug 2004 14:01:36 +0000 (14:01 +0000)]
Small pg_config.c cleanup.
Bruce Momjian [Sun, 1 Aug 2004 13:55:12 +0000 (13:55 +0000)]
Fix :
< * Magnus is Magnus Haglander (?)
> * Magnus is Magnus Hagander <mha@sollentuna.net>
Bruce Momjian [Sun, 1 Aug 2004 13:54:05 +0000 (13:54 +0000)]
Add missing file.
Bruce Momjian [Sun, 1 Aug 2004 06:56:39 +0000 (06:56 +0000)]
Create a C version of pg_config.
Andrew Dunstan
Bruce Momjian [Sun, 1 Aug 2004 06:22:38 +0000 (06:22 +0000)]
Minor adjustments for dirmod.c.
Bruce Momjian [Sun, 1 Aug 2004 06:19:26 +0000 (06:19 +0000)]
Add docs for initdb --auth.
Bruce Momjian [Sun, 1 Aug 2004 05:59:13 +0000 (05:59 +0000)]
>I got a new idea on this. I think we should add an initdb option that
>takes a string to specify the local authentication method:
>
> initdb --auth 'ident'
>
>or whatever the user wants. I think this is more flexible and more
>compact. It would default to 'trust', and the packagers could
>set it to
>whatever they want. If their OS supports local ident, they can use
>that.
>
>Also keep in mind you might want some ident map file:
>
> initdb --auth 'ident mymap'
>
>so you would need to allow multiple words in the string.
Magnus Hagander
Bruce Momjian [Sun, 1 Aug 2004 05:22:26 +0000 (05:22 +0000)]
Minor release wording improvments.