OSDN Git Service

pg-rex/syncrep.git
17 years agoBSD/OS doesn't have a prototype for strlcpy() but has the function, so
Bruce Momjian [Sat, 30 Sep 2006 12:06:42 +0000 (12:06 +0000)]
BSD/OS doesn't have a prototype for strlcpy() but has the function, so
work around that with defines.

17 years agoAdd:
Bruce Momjian [Sat, 30 Sep 2006 03:55:32 +0000 (03:55 +0000)]
Add:

> * Allow more complex user/database default GUC settings
>   Currently, ALTER USER and ALTER DATABASE support per-user and
>   per-database defaults.  Consider adding per-user-and-database
>   defaults so things like search_path can be defaulted for a
>   specific user connecting to a specific database.
>
>

17 years agoAdd MONEY URL:
Bruce Momjian [Sat, 30 Sep 2006 02:59:06 +0000 (02:59 +0000)]
Add MONEY URL:

>   http://archives.postgresql.org/pgsql-hackers/2006-09/msg01107.php

17 years agoAllow assignment to array elements not contiguous with those already
Tom Lane [Fri, 29 Sep 2006 21:22:21 +0000 (21:22 +0000)]
Allow assignment to array elements not contiguous with those already
present; intervening positions are filled with nulls.  This behavior
is required by SQL99 but was not implementable before 8.2 due to lack
of support for nulls in arrays.  I have only made it work for the
one-dimensional case, which is all that SQL99 requires.  It seems quite
complex to get it right in higher dimensions, and since we never allowed
extension at all in higher dimensions, I think that must count as a
future feature addition not a bug fix.

17 years agoRemove duplicate (and now incorrect) documentation for row-wise IS [NOT]
Tom Lane [Fri, 29 Sep 2006 18:36:45 +0000 (18:36 +0000)]
Remove duplicate (and now incorrect) documentation for row-wise IS [NOT]
NULL.  Noted by Teodor.

17 years agoFix IS NULL and IS NOT NULL tests on row-valued expressions to conform to
Tom Lane [Thu, 28 Sep 2006 20:51:43 +0000 (20:51 +0000)]
Fix IS NULL and IS NOT NULL tests on row-valued expressions to conform to
the SQL spec, viz IS NULL is true if all the row's fields are null, IS NOT
NULL is true if all the row's fields are not null.  The former coding got
this right for a limited number of cases with IS NULL (ie, those where it
could disassemble a ROW constructor at parse time), but was entirely wrong
for IS NOT NULL.  Per report from Teodor.

I desisted from changing the behavior for arrays, since on closer inspection
it's not clear that there's any support for that in the SQL spec.  This
probably needs more consideration.

17 years agoAdd URL for client_encoding being set by client:
Bruce Momjian [Thu, 28 Sep 2006 17:43:36 +0000 (17:43 +0000)]
Add URL for client_encoding being set by client:

>   http://archives.postgresql.org/pgsql-hackers/2006-08/msg01696.php

17 years agoFix a couple other places that need to know about (some) src/port/ files
Tom Lane [Thu, 28 Sep 2006 14:48:45 +0000 (14:48 +0000)]
Fix a couple other places that need to know about (some) src/port/ files
explicitly.

17 years agoOops, forgot that libpq needs extra steps to make use of src/port/ files.
Tom Lane [Wed, 27 Sep 2006 21:29:17 +0000 (21:29 +0000)]
Oops, forgot that libpq needs extra steps to make use of src/port/ files.

17 years agoReplace strncpy with strlcpy in selected places that seem possibly relevant
Tom Lane [Wed, 27 Sep 2006 18:40:10 +0000 (18:40 +0000)]
Replace strncpy with strlcpy in selected places that seem possibly relevant
to performance.  (A wholesale effort to get rid of strncpy should be
undertaken sometime, but not during beta.)  This commit also fixes dynahash.c
to correctly truncate overlength string keys for hashtables, so that its
callers don't have to anymore.

17 years agoAdd strlcpy() to the set of functions supported by src/port/ when not
Tom Lane [Wed, 27 Sep 2006 16:29:46 +0000 (16:29 +0000)]
Add strlcpy() to the set of functions supported by src/port/ when not
available directly on the platform.  Per discussion, this function is
sufficiently widely recognized to be treated as standard.

17 years agoFix some misuses of strncat().
Tom Lane [Wed, 27 Sep 2006 16:19:42 +0000 (16:19 +0000)]
Fix some misuses of strncat().

17 years agoRemove separate strdup.h header file; it's redundant with port.h.
Tom Lane [Wed, 27 Sep 2006 15:41:24 +0000 (15:41 +0000)]
Remove separate strdup.h header file; it's redundant with port.h.

17 years agoGiST stands for "Generalized Search Tree", and therefore should not be
Neil Conway [Wed, 27 Sep 2006 06:37:28 +0000 (06:37 +0000)]
GiST stands for "Generalized Search Tree", and therefore should not be
spelled with a capital "I".

17 years agoDegrade the transaction-id wraparound point message from LOG to DEBUG1, per
Alvaro Herrera [Tue, 26 Sep 2006 17:21:39 +0000 (17:21 +0000)]
Degrade the transaction-id wraparound point message from LOG to DEBUG1, per
discussion.

Patch from Simon Riggs.

17 years agoUpdate wording of inheritance major release item.
Bruce Momjian [Tue, 26 Sep 2006 12:31:48 +0000 (12:31 +0000)]
Update wording of inheritance major release item.

17 years agoSplit out inheritance major feature item in release notes.
Bruce Momjian [Tue, 26 Sep 2006 11:45:33 +0000 (11:45 +0000)]
Split out inheritance major feature item in release notes.

17 years agoDone:
Bruce Momjian [Tue, 26 Sep 2006 11:18:29 +0000 (11:18 +0000)]
Done:

<    o Add command to archive partially filled write-ahead logs? [pitr]
<
<      Currently only full WAL files are archived. This means that the
<      most recent transactions aren't available for recovery in case
<      of a disk failure.
<

Reorder:

<    o %Create dump tool for write-ahead logs for use in determining
<      transaction id for point-in-time recovery
>    o %Create dump tool for write-ahead logs for use in determining
>      transaction id for point-in-time recovery

17 years agoAdded new files
Michael Meskes [Tue, 26 Sep 2006 09:07:31 +0000 (09:07 +0000)]
Added new files

17 years agoAdded Joachim's changes for MinGW.
Michael Meskes [Tue, 26 Sep 2006 07:56:57 +0000 (07:56 +0000)]
Added Joachim's changes for MinGW.
Added SET DATESTYLE to one test so the output format is defined.

17 years agoIncrease default value of effective_cache_size to 128MB, per discussion.
Tom Lane [Mon, 25 Sep 2006 22:12:24 +0000 (22:12 +0000)]
Increase default value of effective_cache_size to 128MB, per discussion.

17 years agoAdd a check to prevent overwriting valid data if smgrnblocks() gives a
Tom Lane [Mon, 25 Sep 2006 22:01:10 +0000 (22:01 +0000)]
Add a check to prevent overwriting valid data if smgrnblocks() gives a
wrong answer, as has been seen to occur with a buggy Linux kernel.  Not
really our bug, but it's a simple test in a seldom-used control path,
so might as well have a defense.

17 years agoMore incremental improvements for the release notes.
Neil Conway [Mon, 25 Sep 2006 15:35:28 +0000 (15:35 +0000)]
More incremental improvements for the release notes.

17 years agono-data-for-failed-tables is a pg_restore option, not a pg_dump option.
Tom Lane [Mon, 25 Sep 2006 15:31:50 +0000 (15:31 +0000)]
no-data-for-failed-tables is a pg_restore option, not a pg_dump option.

17 years agoFix notice message from DROP FUNCTION IF EXISTS, and improve message
Tom Lane [Mon, 25 Sep 2006 15:17:34 +0000 (15:17 +0000)]
Fix notice message from DROP FUNCTION IF EXISTS, and improve message
for DROP AGGREGATE IF EXISTS.  Per report from Teodor.

17 years agoFix name, "Laurenz Albe" at request of author.
Bruce Momjian [Mon, 25 Sep 2006 15:04:37 +0000 (15:04 +0000)]
Fix name,  "Laurenz Albe" at request of author.

17 years agoMinor incremental improvements to the release notes.
Neil Conway [Sun, 24 Sep 2006 18:47:56 +0000 (18:47 +0000)]
Minor incremental improvements to the release notes.

17 years agoFix incorrect mapping of fopen mode 'a' in recently-added code to
Tom Lane [Sun, 24 Sep 2006 17:19:53 +0000 (17:19 +0000)]
Fix incorrect mapping of fopen mode 'a' in recently-added code to
make fopen work safely on Windows.  Magnus

17 years agoCause pg_regress to invoke the temporary postmaster as 'postgres' not
Tom Lane [Sun, 24 Sep 2006 17:10:18 +0000 (17:10 +0000)]
Cause pg_regress to invoke the temporary postmaster as 'postgres' not
'postmaster', so as not to depend on the existence of the postmaster
symlink.  Also, implement postmaster-still-alive and postmaster-kill
operations for Windows, per Magnus.

17 years agoSuppress useless warning on pre-XP versions of Windows. Magnus
Tom Lane [Sun, 24 Sep 2006 16:59:45 +0000 (16:59 +0000)]
Suppress useless warning on pre-XP versions of Windows.  Magnus

17 years agoTag us Beta1
PostgreSQL Daemon [Sat, 23 Sep 2006 01:33:37 +0000 (01:33 +0000)]
Tag us Beta1

17 years agoFix pg_locks view to call advisory locks advisory locks, while preserving
Tom Lane [Fri, 22 Sep 2006 23:20:14 +0000 (23:20 +0000)]
Fix pg_locks view to call advisory locks advisory locks, while preserving
backward compatibility for anyone using the old userlock code that's now
on pgfoundry --- locks from that code still show as 'userlock'.

17 years agoFix bugs in plpgsql and ecpg caused by assuming that isspace() would only
Tom Lane [Fri, 22 Sep 2006 21:39:58 +0000 (21:39 +0000)]
Fix bugs in plpgsql and ecpg caused by assuming that isspace() would only
return true for exactly the characters treated as whitespace by their flex
scanners.  Per report from Victor Snezhko and subsequent investigation.

Also fix a passel of unsafe usages of <ctype.h> functions, that is, ye olde
char-vs-unsigned-char issue.  I won't miss <ctype.h> when we are finally
able to stop using it.

17 years agoSurely this temp buffer needn't be static.
Tom Lane [Fri, 22 Sep 2006 19:51:14 +0000 (19:51 +0000)]
Surely this temp buffer needn't be static.

17 years agoRearrange yes/no prompting code so that the prompts always show the
Peter Eisentraut [Fri, 22 Sep 2006 18:50:41 +0000 (18:50 +0000)]
Rearrange yes/no prompting code so that the prompts always show the
(possibly (un)translated) letters that are actually expected as input.
Also reject invalid responses instead of silenty taken them as "no".

with help from Bernd Helmle

17 years agoAdd to major release notes items, per Simon.
Bruce Momjian [Fri, 22 Sep 2006 18:09:40 +0000 (18:09 +0000)]
Add to major release notes items, per Simon.

17 years agoAdd units to the default postgresql.conf. For the most part, this should
Peter Eisentraut [Fri, 22 Sep 2006 17:41:21 +0000 (17:41 +0000)]
Add units to the default postgresql.conf.  For the most part, this should
match what SHOW displays as default value, to make the user experience
uniform.

17 years agoMove incorrectly-located indexterm entry.
Tom Lane [Fri, 22 Sep 2006 16:35:55 +0000 (16:35 +0000)]
Move incorrectly-located indexterm entry.

17 years agoUpdate timezone documentation to reflect current reality: instead of
Tom Lane [Fri, 22 Sep 2006 16:20:00 +0000 (16:20 +0000)]
Update timezone documentation to reflect current reality: instead of
giving tables of known timezone names, refer the user to the system views.
Joachim Wieland

17 years agoUpdate release notes to only use HTML4 entities.
Bruce Momjian [Fri, 22 Sep 2006 15:41:12 +0000 (15:41 +0000)]
Update release notes to only use HTML4 entities.

Add URL's to mention proper entity lists.

17 years agoWe're going to have to spell dotless i as plain i, because dotless i is
Tom Lane [Fri, 22 Sep 2006 15:29:04 +0000 (15:29 +0000)]
We're going to have to spell dotless i as plain i, because dotless i is
not in the character set supported by DocBook nor standard HTML.  (Sorry
Volkan.)  Also replace random character-set references by a pointer to
the actual standard.

17 years agoFix a lot of broken markup.
Tom Lane [Fri, 22 Sep 2006 15:22:04 +0000 (15:22 +0000)]
Fix a lot of broken markup.

17 years agoUpdate release notes to be current as of CVS today.
Bruce Momjian [Fri, 22 Sep 2006 03:04:23 +0000 (03:04 +0000)]
Update release notes to be current as of CVS today.

17 years agoUpdate major release note items.
Bruce Momjian [Fri, 22 Sep 2006 01:52:27 +0000 (01:52 +0000)]
Update major release note items.

17 years agoFirst try at a major features list for 8.2.
Bruce Momjian [Fri, 22 Sep 2006 01:39:33 +0000 (01:39 +0000)]
First try at a major features list for 8.2.

17 years agoFix free space map to correctly track the total amount of FSM space needed
Tom Lane [Thu, 21 Sep 2006 20:31:22 +0000 (20:31 +0000)]
Fix free space map to correctly track the total amount of FSM space needed
even when a single relation requires more than max_fsm_pages pages.  Also,
make VACUUM emit a warning in this case, since it likely means that VACUUM
FULL or other drastic corrective measure is needed.  Per reports from Jeff
Frost and others of unexpected changes in the claimed max_fsm_pages need.

17 years agoAdd comments about STORAGE option for GIN
Teodor Sigaev [Thu, 21 Sep 2006 15:09:38 +0000 (15:09 +0000)]
Add comments about STORAGE option for GIN

17 years agoFix table's caption
Teodor Sigaev [Thu, 21 Sep 2006 15:03:53 +0000 (15:03 +0000)]
Fix table's caption

17 years agoUpdated several parts in particular variable handling. This is work that was part...
Michael Meskes [Thu, 21 Sep 2006 09:10:27 +0000 (09:10 +0000)]
Updated several parts in particular variable handling. This is work that was part of SoC.

17 years agoWording changes for continuous archving, per Simon.
Bruce Momjian [Thu, 21 Sep 2006 03:12:58 +0000 (03:12 +0000)]
Wording changes for continuous archving, per Simon.

17 years agoAdd documentation for new in-core advisory lock functions. Merlin Moncure
Tom Lane [Wed, 20 Sep 2006 23:43:22 +0000 (23:43 +0000)]
Add documentation for new in-core advisory lock functions.  Merlin Moncure

17 years agoAdd URL for domain casting:
Bruce Momjian [Wed, 20 Sep 2006 23:01:55 +0000 (23:01 +0000)]
Add URL for domain casting:

>   http://archives.postgresql.org/pgsql-hackers/2006-09/msg01681.php

17 years agoUpdate release notes to use scaron, rather than numeric code for entity.
Bruce Momjian [Wed, 20 Sep 2006 22:48:47 +0000 (22:48 +0000)]
Update release notes to use scaron, rather than numeric code for entity.

17 years agoFix bogus markup.
Tom Lane [Wed, 20 Sep 2006 21:30:20 +0000 (21:30 +0000)]
Fix bogus markup.

17 years agoAdd AIX shared library support item to release notes.
Bruce Momjian [Wed, 20 Sep 2006 19:55:42 +0000 (19:55 +0000)]
Add AIX shared library support item to release notes.

17 years agoChange patternsel (LIKE/regex selectivity estimation) so that if there
Tom Lane [Wed, 20 Sep 2006 19:50:21 +0000 (19:50 +0000)]
Change patternsel (LIKE/regex selectivity estimation) so that if there
is a large enough histogram, it will use the number of matches in the
histogram to derive a selectivity estimate, rather than the admittedly
pretty bogus heuristics involving examining the pattern contents.  I set
'large enough' at 100, but perhaps we should change that later.  Also
apply the same technique in contrib/ltree's <@ and @> estimator.  Per
discussion with Stefan Kaltenbrunner and Matteo Beccati.

17 years agoRelease note wording improvement.
Bruce Momjian [Wed, 20 Sep 2006 11:54:23 +0000 (11:54 +0000)]
Release note wording improvement.

Alvaro.

17 years agoAdd shared linking information to AIX FAQ.
Bruce Momjian [Wed, 20 Sep 2006 02:10:11 +0000 (02:10 +0000)]
Add shared linking information to AIX FAQ.

Laurenz Albe

17 years agoImprovements to the partitioning documentation. Original patch from Greg
Neil Conway [Wed, 20 Sep 2006 01:20:38 +0000 (01:20 +0000)]
Improvements to the partitioning documentation. Original patch from Greg
Stark, additional fixes and editorialization by Neil Conway. Greg's patch
description:

    Some more doc patches for partitioned tables. In particular replace
    the caveat that INCLUDING CONSTRAINTS doesn't exist and replace it
    with documentation of, well, INCLUDING CONSTRAINTS.

    Also, there was an instance of "LIKE WITH DEFAULTS" which is
    actually spelled "LIKE INCLUDING DEFAULTS".

17 years agoImprove usage of effective_cache_size parameter by assuming that all the
Tom Lane [Tue, 19 Sep 2006 22:49:53 +0000 (22:49 +0000)]
Improve usage of effective_cache_size parameter by assuming that all the
tables in the query compete for cache space, not just the one we are
currently costing an indexscan for.  This seems more realistic, and it
definitely will help in examples recently exhibited by Stefan
Kaltenbrunner.  To get the total size of all the tables involved, we must
tweak the handling of 'append relations' a bit --- formerly we looked up
information about the child tables on-the-fly during set_append_rel_pathlist,
but it needs to be done before we start doing any cost estimation, so
push it into the add_base_rels_to_query scan.

17 years agoDo a round of copy-editing for the release notes: fix some typos and
Neil Conway [Tue, 19 Sep 2006 19:54:05 +0000 (19:54 +0000)]
Do a round of copy-editing for the release notes: fix some typos and
grammatical errors, improve the description of some new features.

17 years agoDashed items are now for 8.3:
Bruce Momjian [Tue, 19 Sep 2006 19:20:21 +0000 (19:20 +0000)]
Dashed items are now for 8.3:

< #A hyphen, "-", marks changes that will appear in the upcoming 8.2 release.#
> #A hyphen, "-", marks changes that will appear in the upcoming 8.3 release.#

17 years agoRemove completed TODO items:
Bruce Momjian [Tue, 19 Sep 2006 19:20:00 +0000 (19:20 +0000)]
Remove completed TODO items:

< * -Make postmater and postgres options distinct so the postmaster -o
<   option is no longer needed
< * -Allow pooled connections to list all prepared statements
<
<   This would allow an application inheriting a pooled connection to know
<   the statements prepared in the current session.
<
< * -Re-enable the GUC full_page_writes in 8.2 when reliability issues have
<   been addressed
<  o -Add "include file" functionality in postgresql.conf
<  o -Allow per-database permissions to be set via GRANT
<
<    Allow database connection checks based on GRANT rules in
<    addition to the existing access checks in pg_hba.conf.
<
<  o -Issue a warning if a change-on-restart-only postgresql.conf value
>  o Issue a warning if a change-on-restart-only postgresql.conf value
<    o -Automatically force archiving of partially-filled WAL files when
<      pg_stop_backup() is called or the server is stopped
<    o -Add reporting of the current WAL file and offset, perhaps as
<      part of partial log file archiving
< * -Allow server logs to be remotely read and removed using SQL commands
< * -Allow protocol-level BIND parameter values to be logged
< * -Zero umasked bits in conversion from INET cast to CIDR
< * -Prevent INET cast to CIDR from dropping netmask, SELECT '1.1.1.1'::inet::cidr
< * -Allow INET + INT8 to increment the host part of the address or
<   throw an error on overflow
< * -Add 'tid != tid ' operator for use in corruption recovery
<  o -Allow customization of the known set of TZ names (generalize the
<    present australian_timezones hack)
<  o -Allow timezone names in SQL strings, '2006-05-24 21:11
<     Americas/New_York'::timestamptz
<  o -Add support for day-time syntax, INTERVAL '1 2:03:04' DAY TO
<    SECOND
<  o -Allow NULLs in arrays
< * -Add transaction_timestamp(), statement_timestamp(), clock_timestamp()
<   functionality
<
<   Current CURRENT_TIMESTAMP returns the start time of the current
<   transaction, and gettimeofday() returns the wallclock time. This will
<   make time reporting more consistent and will allow reporting of
<   the statement start time.
<
< * -Allow to_char() to print localized month names
< * -Add sleep() function, remove from regress.c
< * -Allow user-defined functions retuning a domain value to enforce domain
<   constraints
< * -Allow TRUNCATE ... CASCADE/RESTRICT
<
<   This is like DELETE CASCADE, but truncates.
<
< * -Add COMMENT ON for all cluster global objects (roles, databases
<   and tablespaces)
< * -Make row-wise comparisons work per SQL spec
<
<   Right now, '(a, b) < (1, 2)' is processed as 'a < 1 and b < 2', but
<   the SQL standard requires it to be processed as a column-by-column
<   comparison, so the proper comparison is '(a < 1) OR (a = 1 AND b < 2)'.
<
< * -Enable escape_string_warning and standard_conforming_strings
> * Enable standard_conforming_strings
<  o -Add ON COMMIT capability to CREATE TABLE AS ... SELECT
<  o -Allow an alias to be provided for the target table in
<    UPDATE/DELETE (Neil)
<  o -Allow UPDATE tab SET ROW (col, ...) = (val, ...) for updating
<    multiple columns
<  o -Add ALTER TABLE tab INHERIT / NO INHERIT  parent
<  o -Have COPY return the number of rows loaded/unloaded?
<  o -Allow COPY (SELECT ...) TO 'filename'
<
<  o -Allow pooled connections to list all open WITH HOLD cursors
<
<    Because WITH HOLD cursors exist outside transactions, this allows
<    them to be listed so they can be closed.
<
<  o -Allow INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..)
<  o -Allow INSERT/UPDATE ... RETURNING new.col or old.col
<  o -Allow PL/python to return composite types and result sets
<
< * -Have initdb set the input DateStyle (MDY or DMY) based on locale
<  o -Improve psql's handling of multi-line statements
<
<    Currently, while \e saves a single statement as one entry, interactive
<    statements are saved one line at a time.  Ideally all statements
<    would be saved like \e does.
<
<  o -Allow multi-line column values to align in the proper columns
<
<    If the second output column value is 'a\nb', the 'b' should appear
<    in the second display column, rather than the first column as it
<    does now.
<
<  o -Display IN, INOUT, and OUT parameters in \df
<  o -Allow pg_dump to use multiple -t and -n switches, exclusion
<     ability, and regular expression object matching
<  o -Update pg_dump and psql to use the new COPY libpq API (Christopher)
<  o -Add a function to support Parse/DescribeStatement capability
< * -Add fillfactor to control reserved free space during index creation
< * -Add system view to show free space map contents
< * -Allow installing to directories containing spaces
<
<   This is possible if proper quoting is added to the makefiles for the
<   install targets.  Because PostgreSQL supports relocatable installs, it
<   is already possible to install into a directory that doesn't contain
<   spaces and then copy the install to a directory with spaces.
<
< * -%Clean up compiler warnings (especially with gcc version 4)
< * -Remove BeOS and QNX-specific code
<  o -Port contrib/xml2

17 years agoDocument how to use psql's --single-transaction option to rollback restoring
Neil Conway [Tue, 19 Sep 2006 19:04:51 +0000 (19:04 +0000)]
Document how to use psql's --single-transaction option to rollback restoring
an SQL dump if an error occurs. Along the way, make some improvements and
copy-edits to the surrounding text. Patch from Simon Riggs, additional
fixes by Neil Conway.

17 years agoFix broken markup.
Tom Lane [Tue, 19 Sep 2006 17:22:42 +0000 (17:22 +0000)]
Fix broken markup.

17 years agoFix shared library creation to work properly on AIX. Albe Laurenz
Tom Lane [Tue, 19 Sep 2006 15:36:08 +0000 (15:36 +0000)]
Fix shared library creation to work properly on AIX.  Albe Laurenz

17 years agoMinor additions and typo fixes for the backup documentation. Patch from
Neil Conway [Tue, 19 Sep 2006 15:18:41 +0000 (15:18 +0000)]
Minor additions and typo fixes for the backup documentation. Patch from
Simon Riggs, minor editorialization by Neil Conway.

17 years agoMore 8.2 release item reordering.
Bruce Momjian [Tue, 19 Sep 2006 02:25:13 +0000 (02:25 +0000)]
More 8.2 release item reordering.

17 years agoReorder 8.2 release note items more logically.
Bruce Momjian [Tue, 19 Sep 2006 02:08:30 +0000 (02:08 +0000)]
Reorder 8.2 release note items more logically.

17 years agoUpdate migration changes, more cleanups.
Bruce Momjian [Tue, 19 Sep 2006 00:57:07 +0000 (00:57 +0000)]
Update migration changes, more cleanups.

17 years agoProperly mention in the release notes that fillfactor controls both heap
Bruce Momjian [Mon, 18 Sep 2006 23:19:50 +0000 (23:19 +0000)]
Properly mention in the release notes that fillfactor controls both heap
and indexes.  Other cleanups.

17 years agoWrap long lines in 8.2 release notes.
Bruce Momjian [Mon, 18 Sep 2006 23:01:43 +0000 (23:01 +0000)]
Wrap long lines in 8.2 release notes.

17 years agoUpdates from Jim Nasby.
Bruce Momjian [Mon, 18 Sep 2006 22:43:16 +0000 (22:43 +0000)]
Updates from Jim Nasby.

17 years agoAdd built-in userlock manipulation functions to replace the former
Tom Lane [Mon, 18 Sep 2006 22:40:40 +0000 (22:40 +0000)]
Add built-in userlock manipulation functions to replace the former
contrib functionality.  Along the way, remove the USER_LOCKS configuration
symbol, since it no longer makes any sense to try to compile that out.
No user documentation yet ... mmoncure has promised to write some.
Thanks to Abhijit Menon-Sen for creating a first draft to work from.

17 years agoMove 8.2 release documentation into SGML.
Bruce Momjian [Mon, 18 Sep 2006 21:45:10 +0000 (21:45 +0000)]
Move 8.2 release documentation into SGML.

17 years agoMake the order of the CASCADE and RESTRICT keywords in the DROP OWNED
Neil Conway [Mon, 18 Sep 2006 21:19:29 +0000 (21:19 +0000)]
Make the order of the CASCADE and RESTRICT keywords in the DROP OWNED
syntax summary consistent with the other SQL reference pages. Patch
from Euler Taveira de Oliveira.

17 years agoDocumentation for VALUES lists. Joe Conway and Tom Lane
Tom Lane [Mon, 18 Sep 2006 19:54:01 +0000 (19:54 +0000)]
Documentation for VALUES lists.  Joe Conway and Tom Lane

17 years agoAdd URL for commenting postgresql.conf:
Bruce Momjian [Mon, 18 Sep 2006 16:24:07 +0000 (16:24 +0000)]
Add URL for commenting postgresql.conf:

>    http://archives.postgresql.org/pgsql-hackers/2006-09/msg01481.php

17 years agoAdd URL for UUID:
Bruce Momjian [Mon, 18 Sep 2006 16:22:32 +0000 (16:22 +0000)]
Add URL for UUID:

>
>   http://archives.postgresql.org/pgsql-patches/2006-09/msg00209.php
>

17 years agoFix problems with column name list of CREATE TABLE AS being applied to
Tom Lane [Mon, 18 Sep 2006 16:04:04 +0000 (16:04 +0000)]
Fix problems with column name list of CREATE TABLE AS being applied to
the input query's target list too soon, causing it to affect processing
of ORDER BY in the input query.

17 years agoAdd item:
Bruce Momjian [Mon, 18 Sep 2006 15:52:23 +0000 (15:52 +0000)]
Add item:

>
> * Set client encoding based on the client operating system encoding
>
>   Currently client_encoding is set in postgresql.conf, which
>   defaults to the server encoding.

17 years agoAdd URL to UPDATE unique index case x=x+1:
Bruce Momjian [Mon, 18 Sep 2006 14:56:19 +0000 (14:56 +0000)]
Add URL to UPDATE unique index case x=x+1:

<
>    http://archives.postgresql.org/pgsql-hackers/2006-09/msg01458.php

17 years agoImprove wordings by David Fuhry <dfuhry@cs.kent.edu>
Teodor Sigaev [Mon, 18 Sep 2006 12:11:36 +0000 (12:11 +0000)]
Improve wordings by David Fuhry <dfuhry@cs.kent.edu>

17 years agoFix CREATE TABLE ... AS VALUES ... to work rather than Assert'ing;
Tom Lane [Mon, 18 Sep 2006 00:52:14 +0000 (00:52 +0000)]
Fix CREATE TABLE ... AS VALUES ... to work rather than Assert'ing;
oversight in original implementation of VALUES.  Also fix an oversight
in recent addition of options to CREATE TABLE AS: they weren't getting
propagated if the query was a set-operation such as UNION.

17 years agoChange ANALYZE to take ShareUpdateExclusiveLock not AccessShareLock on
Tom Lane [Sun, 17 Sep 2006 22:50:31 +0000 (22:50 +0000)]
Change ANALYZE to take ShareUpdateExclusiveLock not AccessShareLock on
the table being analyzed.  This prevents two ANALYZEs from running
concurrently on the same table and possibly suffering concurrent-update
failures while trying to store their results into pg_statistic.  The
downside is that a database-wide ANALYZE executed within a transaction
block will hold ShareUpdateExclusiveLock on many tables simultaneously,
which could lead to concurrency issues or even deadlock against another
such ANALYZE.  However, this seems a corner case of less importance
than getting unexpected errors from a foreground ANALYZE when autovacuum
elects to analyze the same table concurrently.  Per discussion.

17 years agoMarginal cleanup in arrangements for ensuring StrategyHintVacuum is cleared
Tom Lane [Sun, 17 Sep 2006 22:16:22 +0000 (22:16 +0000)]
Marginal cleanup in arrangements for ensuring StrategyHintVacuum is cleared
after an error during VACUUM.  We have a PG_TRY block anyway around the only
call sites, so just reset it in the CATCH clause instead of having
AtEOXact_Buffers blindly do it during xact end.  I think the old code was
actively wrong for the case of a failure during ANALYZE inside a
subtransaction --- the flag wouldn't get cleared until main transaction end.
Probably not worth back-patching though.

17 years agoUpdate TODO for short header versions:
Bruce Momjian [Sat, 16 Sep 2006 22:06:54 +0000 (22:06 +0000)]
Update TODO for short header versions:

<  o Reorder physical storage order to reduce padding?
<
<    This involves having the user-specified order of columns
<    be different from the physical order.  SELECT * would
<    need to reorder the physical values to match the
<    user-specified ordering.
<
<  o Store disk pages with no alignment/padding?
<
<    This necessitates adding CPU-required padding when moving
<    rows from disk to memory.
<
<    One idea is to store the header in network byte order (high bits
<    first), and read the high bits to determine the header length.
<    http://archives.postgresql.org/pgsql-hackers/2006-09/msg00848.php
>    One idea is to create zero-or-one-byte-header versions
>    of varlena data types.  In involves setting the high-bit and
>    0-127 length in the single-byte header, or clear the high bit
>    and store the 7-bit ASCII value in the rest of the byte.
>    The small-header versions have no alignment requirements.
>    http://archives.postgresql.org/pgsql-hackers/2006-09/msg01372.php

17 years agoRename the recently-added pg_timezonenames view to pg_timezone_abbrevs,
Tom Lane [Sat, 16 Sep 2006 20:14:34 +0000 (20:14 +0000)]
Rename the recently-added pg_timezonenames view to pg_timezone_abbrevs,
and create a new view pg_timezone_names that provides information about
the zones known in the 'zic' database.  Magnus Hagander, with some
additional work by Tom Lane.

17 years agoUpdate timezone data files to release 2006k of the zic database.
Tom Lane [Sat, 16 Sep 2006 17:21:03 +0000 (17:21 +0000)]
Update timezone data files to release 2006k of the zic database.

17 years agoRename xml_valid() to xml_is_well_formed(), but provide a temporary
Tom Lane [Sat, 16 Sep 2006 16:18:11 +0000 (16:18 +0000)]
Rename xml_valid() to xml_is_well_formed(), but provide a temporary
alias with the old name for backwards compatibility.  Per discussion,
the old name is actively wrong because validity and well-formedness
have different meanings in XML.

17 years agoDefine errcode as __msvc_errcode not __vc_errcode for MSVC builds,
Tom Lane [Sat, 16 Sep 2006 13:35:49 +0000 (13:35 +0000)]
Define errcode as __msvc_errcode not __vc_errcode for MSVC builds,
per Magnus.

17 years agoFix some more uses of str[n]casecmp that should be pg_str[n]casecmp.
Tom Lane [Sat, 16 Sep 2006 13:31:40 +0000 (13:31 +0000)]
Fix some more uses of str[n]casecmp that should be pg_str[n]casecmp.

17 years agoRemove emacs info from footer of SGML files.
Bruce Momjian [Sat, 16 Sep 2006 00:30:20 +0000 (00:30 +0000)]
Remove emacs info from footer of SGML files.

17 years agoDocument Warm Standby for High Availability
Bruce Momjian [Fri, 15 Sep 2006 22:02:21 +0000 (22:02 +0000)]
Document Warm Standby for High Availability

Includes sample standby script.

Simon Riggs

17 years agoDocument WAL recovery now uses checkpoints.
Bruce Momjian [Fri, 15 Sep 2006 21:55:07 +0000 (21:55 +0000)]
Document WAL recovery now uses checkpoints.

Simon Riggs

17 years agoSeveral fixes for MSVC build scripts, from Magnus.
Tom Lane [Fri, 15 Sep 2006 21:42:02 +0000 (21:42 +0000)]
Several fixes for MSVC build scripts, from Magnus.

17 years agoFix some uses of str[n]casecmp that should be pg_str[n]casecmp.
Tom Lane [Fri, 15 Sep 2006 21:35:30 +0000 (21:35 +0000)]
Fix some uses of str[n]casecmp that should be pg_str[n]casecmp.

17 years agoFix some uses of str[n]casecmp that should be pg_str[n]casecmp,
Tom Lane [Fri, 15 Sep 2006 21:34:23 +0000 (21:34 +0000)]
Fix some uses of str[n]casecmp that should be pg_str[n]casecmp,
per Magnus.

17 years agoRemove WINLDAPAPI decoration from ldap_start_tls_sA typedef, per Magnus.
Tom Lane [Fri, 15 Sep 2006 21:28:08 +0000 (21:28 +0000)]
Remove WINLDAPAPI decoration from ldap_start_tls_sA typedef, per Magnus.

17 years agoImprove confusing comment for HeapTupleSatisfiesNow, per gripe from Greg Stark.
Tom Lane [Fri, 15 Sep 2006 16:39:32 +0000 (16:39 +0000)]
Improve confusing comment for HeapTupleSatisfiesNow, per gripe from Greg Stark.