Tom Lane [Wed, 4 Oct 2006 16:51:22 +0000 (16:51 +0000)]
Add qsort and qsort_arg to MSVC list of src/port files.
Michael Meskes [Wed, 4 Oct 2006 10:09:03 +0000 (10:09 +0000)]
Reverted changes made by pgindent
Made show.pgc set all variables before displaying them.
Bruce Momjian [Wed, 4 Oct 2006 00:30:14 +0000 (00:30 +0000)]
pgindent run for 8.2.
Bruce Momjian [Wed, 4 Oct 2006 00:02:10 +0000 (00:02 +0000)]
Udpate typedefs for pgindent.
Tom Lane [Tue, 3 Oct 2006 22:18:23 +0000 (22:18 +0000)]
Switch over to using our own qsort() all the time, as has been proposed
repeatedly. Now that we don't have to worry about memory leaks from
glibc's qsort, we can safely put CHECK_FOR_INTERRUPTS into the tuplesort
comparators, as was requested a couple months ago. Also, get rid of
non-reentrancy and an extra level of function call in tuplesort.c by
providing a variant qsort_arg() API that passes an extra void * argument
through to the comparison routine. (We might want to use that in other
places too, I didn't look yet.)
Bruce Momjian [Tue, 3 Oct 2006 22:12:14 +0000 (22:12 +0000)]
pgevent fixes:
1) Make vcbuild actually build the pgevent dll.
2) Change the pgevent DLL file so it doens't specify ordinal for the
functions. You're not supposed to do that. You're actually supposed to
declare them as PRIVATE as well, but mingw doesn't support that. VC++
will throw a warning and not an error though, so we can live with it.
Magnus Hagander
Bruce Momjian [Tue, 3 Oct 2006 22:09:42 +0000 (22:09 +0000)]
Update typedef list for 8.2 pgindent run.
Bruce Momjian [Tue, 3 Oct 2006 21:45:20 +0000 (21:45 +0000)]
Fix yesno_prompt() memory leak in /script tools, reported by Converity.
Bruce Momjian [Tue, 3 Oct 2006 21:25:56 +0000 (21:25 +0000)]
Improve numeric overflow error message.
David Fetter
Bruce Momjian [Tue, 3 Oct 2006 21:21:36 +0000 (21:21 +0000)]
Make some sentences consistent with similar ones.
Euler Taveira de Oliveira
Bruce Momjian [Tue, 3 Oct 2006 21:14:46 +0000 (21:14 +0000)]
Improve readline psql prompt suggestion.
Andreas Seltenreich
Bruce Momjian [Tue, 3 Oct 2006 21:13:17 +0000 (21:13 +0000)]
Add experimental support for db2x texinfo
Andreas Seltenreich
Bruce Momjian [Tue, 3 Oct 2006 21:11:55 +0000 (21:11 +0000)]
The attached patch changes units of the some default values in
postgresql.conf.
- shared_buffers = 32000kB => 32MB
- temp_buffers = 8000kB => 8MB
- wal_buffers = 8 => 64kB
The code of initdb was a bit modified to write MB-unit values.
Values greater than 8000kB are rounded out to MB.
GUC_UNIT_XBLOCKS is added for wal_buffers. It is like GUC_UNIT_BLOCKS,
but uses XLOG_BLCKSZ instead of BLCKSZ.
Also, I cleaned up the test of GUC_UNIT_* flags in preparation to
add more unit flags in less bits.
ITAGAKI Takahiro
Bruce Momjian [Tue, 3 Oct 2006 20:44:18 +0000 (20:44 +0000)]
Cleanup pgwin32_open() 'if' test, and avoid possible error.
Tom Lane [Tue, 3 Oct 2006 20:33:20 +0000 (20:33 +0000)]
Rearrange MSVC errcode hack, fix incorrect _MSC_VER test. Magnus
Bruce Momjian [Tue, 3 Oct 2006 03:59:22 +0000 (03:59 +0000)]
Move WIN32_ONLY_COMPILER define from c.h to win32.h because it was being
defined too late.
Bruce Momjian [Tue, 3 Oct 2006 01:03:53 +0000 (01:03 +0000)]
This patch fixes a small typo in information_schema.sgml.
Guillaume Lelarge
Bruce Momjian [Tue, 3 Oct 2006 00:39:26 +0000 (00:39 +0000)]
Mention in postgresql.conf that autovacuum also needs
stats_start_collector and stats_row_level to also be on
David Wheeler
Bruce Momjian [Tue, 3 Oct 2006 00:03:54 +0000 (00:03 +0000)]
Add URL for strlcpy():
>
> http://archives.postgresql.org/pgsql-hackers/2006-09/msg02108.php
Bruce Momjian [Tue, 3 Oct 2006 00:00:18 +0000 (00:00 +0000)]
Add:
> * Fix SSL retry to avoid useless repeated connection attempts and
> ensuing misleading error messages
Bruce Momjian [Mon, 2 Oct 2006 23:58:59 +0000 (23:58 +0000)]
Add URL about strlcpy() creation history.
Bruce Momjian [Mon, 2 Oct 2006 23:26:02 +0000 (23:26 +0000)]
Update wording:
< * Use strlcpy() rather than StrNCpy() macro
> * Use strlcpy() rather than our StrNCpy() macro
Bruce Momjian [Mon, 2 Oct 2006 23:23:32 +0000 (23:23 +0000)]
Add:
>
> * Use strlcpy() rather than StrNCpy() macro
Bruce Momjian [Mon, 2 Oct 2006 23:01:17 +0000 (23:01 +0000)]
Remove mention of the -fast option from the Solaris FAQ.
Kenneth Marshall
Bruce Momjian [Mon, 2 Oct 2006 22:33:02 +0000 (22:33 +0000)]
Update recovery documentation.
Simon Riggs
Bruce Momjian [Mon, 2 Oct 2006 22:32:10 +0000 (22:32 +0000)]
Update tsearch2 README.
Robert Treat
Bruce Momjian [Mon, 2 Oct 2006 22:28:48 +0000 (22:28 +0000)]
Add URL for cached copy of paper as SGML comment.
Bruce Momjian [Mon, 2 Oct 2006 15:32:03 +0000 (15:32 +0000)]
Add release note item:
Drop privileges on startup so servers can be started from
an administrative account (Magnus)
Bruce Momjian [Mon, 2 Oct 2006 14:00:04 +0000 (14:00 +0000)]
Move "Exotic Features" to the bottom of TODO.
Tom Lane [Mon, 2 Oct 2006 00:06:18 +0000 (00:06 +0000)]
Properly handle the case where strlcpy() exists in libc but isn't
declared in the system headers. Per report from Bruce than some BSDen
are like this.
Tom Lane [Sun, 1 Oct 2006 23:47:16 +0000 (23:47 +0000)]
Improve documentation of configure's readline/libedit switches.
Tom Lane [Sun, 1 Oct 2006 22:25:48 +0000 (22:25 +0000)]
Make some marginal performance improvements in reportErrorPosition(),
which turns out to be a dominant part of the runtime in scenarios
involving lots of parse-time warnings (such as Stephen Frost's example
of an INSERT with a lot of backslash-containing strings). There's not
a whole lot we can do about the character-at-a-time scanning, but we
can at least avoid traversing the query twice.
Tom Lane [Sun, 1 Oct 2006 22:08:18 +0000 (22:08 +0000)]
Do a CHECK_FOR_INTERRUPTS after emitting a message of less than ERROR
severity. This is to ensure the user can cancel a query that's spitting
out lots of notice/warning messages, even if they're coming from a loop
that doesn't otherwise contain a CHECK_FOR_INTERRUPTS. Per gripe from
Stephen Frost.
Tom Lane [Sun, 1 Oct 2006 18:54:31 +0000 (18:54 +0000)]
date_trunc also accepts 'quarter'. Noted by Yoshihisa Nakano.
Tom Lane [Sun, 1 Oct 2006 18:37:53 +0000 (18:37 +0000)]
Remove accented characters in comments, to avoid failures when this
file is read with an incompatible client_encoding setting. Per report
from Tim N. van der Leeuw.
Tom Lane [Sun, 1 Oct 2006 17:23:38 +0000 (17:23 +0000)]
Fix overly enthusiastic Assert introduced in 8.1: it's expecting a
CaseTestExpr, but forgot that the optimizer is sometimes able to replace
CaseTestExpr by Const.
Tom Lane [Sat, 30 Sep 2006 18:44:37 +0000 (18:44 +0000)]
Suppress compiler warnings.
Tom Lane [Sat, 30 Sep 2006 18:24:19 +0000 (18:24 +0000)]
uninstall script for sslinfo
Tom Lane [Sat, 30 Sep 2006 18:15:48 +0000 (18:15 +0000)]
uninstall script for pg_freespacemap
Tom Lane [Sat, 30 Sep 2006 18:08:32 +0000 (18:08 +0000)]
uninstall script for pgrowlocks - Josh Drake
Tom Lane [Sat, 30 Sep 2006 18:03:06 +0000 (18:03 +0000)]
Add uninstall script for adminpack - Josh Drake
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.
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.
>
>
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
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.
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.
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.
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
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.
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.
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.
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.
Tom Lane [Wed, 27 Sep 2006 16:19:42 +0000 (16:19 +0000)]
Fix some misuses of strncat().
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.
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".
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.
Bruce Momjian [Tue, 26 Sep 2006 12:31:48 +0000 (12:31 +0000)]
Update wording of inheritance major release item.
Bruce Momjian [Tue, 26 Sep 2006 11:45:33 +0000 (11:45 +0000)]
Split out inheritance major feature item in release notes.
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
Michael Meskes [Tue, 26 Sep 2006 09:07:31 +0000 (09:07 +0000)]
Added new files
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.
Tom Lane [Mon, 25 Sep 2006 22:12:24 +0000 (22:12 +0000)]
Increase default value of effective_cache_size to 128MB, per discussion.
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.
Neil Conway [Mon, 25 Sep 2006 15:35:28 +0000 (15:35 +0000)]
More incremental improvements for the release notes.
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.
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.
Bruce Momjian [Mon, 25 Sep 2006 15:04:37 +0000 (15:04 +0000)]
Fix name, "Laurenz Albe" at request of author.
Neil Conway [Sun, 24 Sep 2006 18:47:56 +0000 (18:47 +0000)]
Minor incremental improvements to the release notes.
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
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.
Tom Lane [Sun, 24 Sep 2006 16:59:45 +0000 (16:59 +0000)]
Suppress useless warning on pre-XP versions of Windows. Magnus
PostgreSQL Daemon [Sat, 23 Sep 2006 01:33:37 +0000 (01:33 +0000)]
Tag us Beta1
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'.
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.
Tom Lane [Fri, 22 Sep 2006 19:51:14 +0000 (19:51 +0000)]
Surely this temp buffer needn't be static.
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
Bruce Momjian [Fri, 22 Sep 2006 18:09:40 +0000 (18:09 +0000)]
Add to major release notes items, per Simon.
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.
Tom Lane [Fri, 22 Sep 2006 16:35:55 +0000 (16:35 +0000)]
Move incorrectly-located indexterm entry.
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
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.
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.
Tom Lane [Fri, 22 Sep 2006 15:22:04 +0000 (15:22 +0000)]
Fix a lot of broken markup.
Bruce Momjian [Fri, 22 Sep 2006 03:04:23 +0000 (03:04 +0000)]
Update release notes to be current as of CVS today.
Bruce Momjian [Fri, 22 Sep 2006 01:52:27 +0000 (01:52 +0000)]
Update major release note items.
Bruce Momjian [Fri, 22 Sep 2006 01:39:33 +0000 (01:39 +0000)]
First try at a major features list for 8.2.
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.
Teodor Sigaev [Thu, 21 Sep 2006 15:09:38 +0000 (15:09 +0000)]
Add comments about STORAGE option for GIN
Teodor Sigaev [Thu, 21 Sep 2006 15:03:53 +0000 (15:03 +0000)]
Fix table's caption
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.
Bruce Momjian [Thu, 21 Sep 2006 03:12:58 +0000 (03:12 +0000)]
Wording changes for continuous archving, per Simon.
Tom Lane [Wed, 20 Sep 2006 23:43:22 +0000 (23:43 +0000)]
Add documentation for new in-core advisory lock functions. Merlin Moncure
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
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.
Tom Lane [Wed, 20 Sep 2006 21:30:20 +0000 (21:30 +0000)]
Fix bogus markup.
Bruce Momjian [Wed, 20 Sep 2006 19:55:42 +0000 (19:55 +0000)]
Add AIX shared library support item to release notes.
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.
Bruce Momjian [Wed, 20 Sep 2006 11:54:23 +0000 (11:54 +0000)]
Release note wording improvement.
Alvaro.
Bruce Momjian [Wed, 20 Sep 2006 02:10:11 +0000 (02:10 +0000)]
Add shared linking information to AIX FAQ.
Laurenz Albe
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".