OSDN Git Service
Bruce Momjian [Fri, 23 Sep 2005 02:25:35 +0000 (02:25 +0000)]
Please find attached a patch which tells about what the spiffy,
integrated autovacuum now does :)
David Fetter
Bruce Momjian [Fri, 23 Sep 2005 02:06:58 +0000 (02:06 +0000)]
Mention that autovacuum also needs stats.
Bruce Momjian [Fri, 23 Sep 2005 02:01:35 +0000 (02:01 +0000)]
Attached patch takes a swing at improving the autovacuum wording in
maintenance.sgml.
Robert Treat
[ Also fix create domain markup.]
Bruce Momjian [Thu, 22 Sep 2005 23:56:46 +0000 (23:56 +0000)]
Add warning about DOMAINs.
David Fetter
Bruce Momjian [Thu, 22 Sep 2005 23:54:09 +0000 (23:54 +0000)]
Add:
> * Allow CREATE INDEX to take an additional parameter for use with
> special index types
>
Bruce Momjian [Thu, 22 Sep 2005 23:47:44 +0000 (23:47 +0000)]
Move table constraint patch up into the main new features section of the
release notes.
Tom Lane [Thu, 22 Sep 2005 23:25:07 +0000 (23:25 +0000)]
Fix bug introduced into indexable_outerrelids() by an ill-considered
"optimization". When we find a potentially useful joinclause, we
have to add all its other required_relids to the result, not only the
other clause_relids. They are different in the case of a joinclause
whose applicability has to be postponed due to outer join. We have
to include the extra rels because otherwise, after best_inner_indexscan
masks the join rels with index_outer_relids, it will always fail to
find the joinclause as applicable. Per report from Husam Tomeh.
Bruce Momjian [Thu, 22 Sep 2005 23:24:58 +0000 (23:24 +0000)]
Add "basic" for table partitioning.
Bruce Momjian [Thu, 22 Sep 2005 21:59:50 +0000 (21:59 +0000)]
Add instructions.
Bruce Momjian [Thu, 22 Sep 2005 21:58:58 +0000 (21:58 +0000)]
Add "codelines" script to compute number of lines in a releaes.
Bruce Momjian [Thu, 22 Sep 2005 21:50:59 +0000 (21:50 +0000)]
Add:
>
> Another idea would be to allow actual SELECT queries in a COPY.
Bruce Momjian [Thu, 22 Sep 2005 20:44:36 +0000 (20:44 +0000)]
pgindent new GIST index code, per request from Tom.
Tom Lane [Thu, 22 Sep 2005 18:49:45 +0000 (18:49 +0000)]
Adjust GiST error messages to conform to message style guidelines.
Tom Lane [Thu, 22 Sep 2005 17:32:58 +0000 (17:32 +0000)]
Take exclusive buffer lock in scan_heap() to eliminate some corner cases
in which invalid page data could be transiently written to disk by
concurrent bgwriter activity. There doesn't seem any risk of loss of
actual user data, but an empty page could possibly be left corrupt if a
crash occurs before the correct data gets written out. Pointed out by
Alvaro Herrera.
Bruce Momjian [Thu, 22 Sep 2005 16:46:00 +0000 (16:46 +0000)]
This patch cleans up the access to members of ItemIdData.
It uses existing macros instead of touching directly.
ITAGAKI Takahiro
Bruce Momjian [Thu, 22 Sep 2005 16:01:59 +0000 (16:01 +0000)]
Add:
>
> o Allow COPY to output from views
>
Bruce Momjian [Thu, 22 Sep 2005 15:51:51 +0000 (15:51 +0000)]
Fix psql \x by removing puts().
Greg Sabino Mullane
Bruce Momjian [Thu, 22 Sep 2005 15:33:36 +0000 (15:33 +0000)]
Suppress port number for unix domain sockets in log connect/disconnect
messages.
Tom Lane [Thu, 22 Sep 2005 15:09:51 +0000 (15:09 +0000)]
Remove some dead code.
Tom Lane [Wed, 21 Sep 2005 20:33:34 +0000 (20:33 +0000)]
Fix postgresql.conf lexer to accept doubled single quotes in literal
strings. This is consistent with SQL conventions, and since Bruce
already changed initdb in a way that assumed it worked like this, seems
we'd better make it work like this.
Tom Lane [Wed, 21 Sep 2005 19:58:02 +0000 (19:58 +0000)]
Suppress database dump item when --table and/or --schema switch was
given, per gripe from Michael Fuhr.
Tom Lane [Wed, 21 Sep 2005 19:15:27 +0000 (19:15 +0000)]
optimize_minmax_aggregates() neglected to check for inherited tables.
Per report from Cesar Paipilla.
Bruce Momjian [Tue, 20 Sep 2005 21:43:08 +0000 (21:43 +0000)]
Fix interaction between psql \set AUTOCOMMIT and "ON_ERROR_ROLLBACK"
by properly updating transaction state after AUTOCOMMIT.
Bruce Momjian [Tue, 20 Sep 2005 20:51:30 +0000 (20:51 +0000)]
Merge items:
< This would be beneficial when there are few distinct values.
> This would be beneficial when there are few distinct values. This is
> already used by GROUP BY.
946d946
< * Allow DISTINCT to use hashing like GROUP BY
Bruce Momjian [Tue, 20 Sep 2005 18:59:02 +0000 (18:59 +0000)]
Return proper value for psql -f filename failure if filename open fails.
Backpatch to 8.0.X.
Bruce Momjian [Tue, 20 Sep 2005 02:38:35 +0000 (02:38 +0000)]
autovacuum setting false -> off, for consistency
Bruce Momjian [Tue, 20 Sep 2005 02:21:29 +0000 (02:21 +0000)]
Fix typo:
< * Allow WAL traffic to be steamed to another server for stand-by
> * Allow WAL traffic to be streamed to another server for stand-by
Bruce Momjian [Tue, 20 Sep 2005 02:16:41 +0000 (02:16 +0000)]
Add:
> * Allow DISTINCT to use hashing like GROUP BY
Bruce Momjian [Tue, 20 Sep 2005 01:28:14 +0000 (01:28 +0000)]
Update profile file location.
Bruce Momjian [Tue, 20 Sep 2005 00:11:00 +0000 (00:11 +0000)]
Add:
> * Allow WAL traffic to be steamed to another server for stand-by
> replication
Bruce Momjian [Mon, 19 Sep 2005 22:32:32 +0000 (22:32 +0000)]
Remove:
< * Research use of sched_yield() for spinlock acquisition failure
Bruce Momjian [Mon, 19 Sep 2005 17:21:49 +0000 (17:21 +0000)]
Print proper cause of statement cancel, user interaction or timeout.
Bruce Momjian [Mon, 19 Sep 2005 15:01:28 +0000 (15:01 +0000)]
update timestamp on file.
Peter Eisentraut [Sun, 18 Sep 2005 09:48:24 +0000 (09:48 +0000)]
Clarify some error messages
Tom Lane [Sun, 18 Sep 2005 04:02:05 +0000 (04:02 +0000)]
Fix typo in link label, per Evgeny Gridasov.
Bruce Momjian [Sat, 17 Sep 2005 12:12:58 +0000 (12:12 +0000)]
Add:
>
1032a1034
> * Remove BeOS and QNX-specific code
Bruce Momjian [Fri, 16 Sep 2005 19:39:25 +0000 (19:39 +0000)]
Add:
> o Fix SELECT INTERVAL '1' MONTH
Bruce Momjian [Fri, 16 Sep 2005 19:39:02 +0000 (19:39 +0000)]
Adjust regression for new cancel query message.
Bruce Momjian [Fri, 16 Sep 2005 19:31:04 +0000 (19:31 +0000)]
Update query cancel message:
errmsg("canceling query due to user request or statement timeout")));
Bruce Momjian [Fri, 16 Sep 2005 19:00:05 +0000 (19:00 +0000)]
Adjust bcc to work for thread changes.
Bruce Momjian [Fri, 16 Sep 2005 18:58:48 +0000 (18:58 +0000)]
This correction is required of nmake of Windows.
Hiroshi Saito
Bruce Momjian [Fri, 16 Sep 2005 18:07:35 +0000 (18:07 +0000)]
Update numbering.
Michael Fuhr
Bruce Momjian [Fri, 16 Sep 2005 17:37:10 +0000 (17:37 +0000)]
Add:
<
> * Update Bonjour to work with newer cross-platform SDK
PostgreSQL Daemon [Fri, 16 Sep 2005 17:15:55 +0000 (17:15 +0000)]
tag it all beta2 ...
Bruce Momjian [Fri, 16 Sep 2005 16:46:09 +0000 (16:46 +0000)]
Update wording:
<
390d388
<
453c451
< removed or have its heap and index files truncated. One
> be removed or have its heap and index files truncated. One
< * Use a phantom command counter for nested subtransactions to reduce
< per-tuple overhead
Teodor Sigaev [Fri, 16 Sep 2005 14:40:54 +0000 (14:40 +0000)]
Small fixes
Bruce Momjian [Fri, 16 Sep 2005 11:24:02 +0000 (11:24 +0000)]
Add:
> o Add single-step debugging of PL/PgSQL functions
Neil Conway [Fri, 16 Sep 2005 05:35:41 +0000 (05:35 +0000)]
Rename pg_complete_relation_size() to pg_total_relation_size(), for the
sake of brevity and clarity.
Make pg_reload_conf(), pg_rotate_logfile(), and pg_cancel_backend()
return a boolean rather than an integer to indicate success or failure.
Along the way, make some minor cleanups to dbsize.c -- in particular,
use elog() rather than ereport() for "shouldn't happen" error
conditions, and remove some of the more flagrant violations of the
Postgres indentation conventions.
Catalog version bumped.
Neil Conway [Fri, 16 Sep 2005 04:13:18 +0000 (04:13 +0000)]
Update two comments to refer to use the new list API names.
Tom Lane [Fri, 16 Sep 2005 03:37:35 +0000 (03:37 +0000)]
Update release notes for changes between beta1 and beta2.
Alvaro Herrera [Fri, 16 Sep 2005 03:12:32 +0000 (03:12 +0000)]
Add note about pg_autovacuum settings not being saved on a dump, per
Robert Treat.
Tom Lane [Fri, 16 Sep 2005 00:30:05 +0000 (00:30 +0000)]
Force the size and alignment of LWLock array entries to be either 16 or 32
bytes. This shouldn't make any difference on x86 machines, where the size
happened to be 16 bytes anyway, but on 64-bit machines and machines with
slock_t int or wider, it will speed array indexing and hopefully reduce
SMP cache contention effects. Per recent experimentation.
Neil Conway [Thu, 15 Sep 2005 17:44:27 +0000 (17:44 +0000)]
Copy-editing for GiST README.
Teodor Sigaev [Thu, 15 Sep 2005 16:39:15 +0000 (16:39 +0000)]
Readme about GiST's algorithms
Teodor Sigaev [Thu, 15 Sep 2005 11:14:18 +0000 (11:14 +0000)]
1 Update Snowball sources
2 Makefile fixes
Neil Conway [Wed, 14 Sep 2005 21:14:26 +0000 (21:14 +0000)]
Various documentation improvements. Add a lot of index entries for
the builtin functions (although some more entries are still needed),
and remove the duplicate index entries that have been causing
collateindex.pl warnings. Consistently use "int" and "bigint", rather
than a mix of "int", "integer", "int4", "bigint", and "int8". Make
parenthesis style in syntax examples more consistent. Various
copy-editing for newly-added documentation and SGML markup fixes.
Neil Conway [Wed, 14 Sep 2005 18:35:38 +0000 (18:35 +0000)]
Tweak the PL/PgSQL regression tests to catch the recently reported bug
in parsing cursor declarations.
Tom Lane [Wed, 14 Sep 2005 13:46:47 +0000 (13:46 +0000)]
Fix recent breakage of decl_cursor_arglist syntax, per Michael Paesold.
Tom Lane [Tue, 13 Sep 2005 16:16:17 +0000 (16:16 +0000)]
Fix make_tuple_from_row to support nested rowtypes, per gripe from
Roman Neuhauser. Update some obsolete comments for exec_eval_datum, too.
Neil Conway [Tue, 13 Sep 2005 15:24:57 +0000 (15:24 +0000)]
Minor SGML markup fixes.
Alvaro Herrera [Tue, 13 Sep 2005 01:51:18 +0000 (01:51 +0000)]
Document the new autovacuum daemon.
Tom Lane [Mon, 12 Sep 2005 23:09:05 +0000 (23:09 +0000)]
Fix cut-and-paste-o in TCP keepalives documentation.
Neil Conway [Mon, 12 Sep 2005 22:39:30 +0000 (22:39 +0000)]
Minor documentation tweak: make the capitalization of a section title
consistent with the other sections in this chapter.
Tom Lane [Mon, 12 Sep 2005 22:20:16 +0000 (22:20 +0000)]
Ensure that any memory leaked during an error inside the bgwriter is
recovered. I did not see any actual leak while testing this in CVS tip,
but 8.0 definitely has a problem with leaking the space temporarily
palloc'd by BufferSync(). In any case this seems a good idea to forestall
similar problems in future. Per report from Arjen van der Meijden.
Neil Conway [Mon, 12 Sep 2005 22:11:38 +0000 (22:11 +0000)]
Make the documentation of GUC variables a separate chapter, rather than
a section of the "Server Run-time Environment" chapter. Also, move the
SGML for the new chapter to a separate file and fix the resulting
fallout.
Tom Lane [Mon, 12 Sep 2005 19:17:45 +0000 (19:17 +0000)]
Update manual's introduction to indexes to reflect 8.1 changes; in
particular the addition of bitmap scans and the relaxation of rules
about when multicolumn indexes can be used. Also some minor editorial
work in other parts of the chapter.
Neil Conway [Mon, 12 Sep 2005 18:40:19 +0000 (18:40 +0000)]
Fix a mistake in the documentation for SPI_getbinval(), per Michael Fuhr.
Tom Lane [Mon, 12 Sep 2005 16:43:29 +0000 (16:43 +0000)]
Forgot to add pg_pltemplate to the list of shared system catalogs that
appears in the REINDEX ref page.
Michael Meskes [Mon, 12 Sep 2005 11:57:53 +0000 (11:57 +0000)]
Fixed transaction command handling to not ignore savepoints and to correctly check for errors.
Neil Conway [Mon, 12 Sep 2005 05:10:12 +0000 (05:10 +0000)]
Add a few items to the release notes, and make a few more minor cleanups.
Tom Lane [Mon, 12 Sep 2005 02:26:33 +0000 (02:26 +0000)]
Tweak TCP-keepalive code so that an invalid setting doesn't cause us
to drop connections unceremoniously. Also some other marginal cleanups:
don't query getsockopt() repeatedly if it fails, and avoid having the
apparent definition of struct Port depend on which system headers you
might have included or not. Oliver Jowett and Tom Lane.
Neil Conway [Sun, 11 Sep 2005 23:40:33 +0000 (23:40 +0000)]
Many small improvements and copy edits to the release notes. Use "—"
rather than "-" for the "dash" character. Correct SGML markup. Make
references to the names of contributors more consistent. Rewrite a bit
of prose, and make some other similar cleanups.
Tom Lane [Sun, 11 Sep 2005 04:10:25 +0000 (04:10 +0000)]
Fix some corner-case bugs in _sendSQLLine's parsing of SQL commands
> found in a pg_dump archive. It had problems with dollar-quote tags
broken across bufferload boundaries (this may explain bug report from
Rod Taylor), also with dollar-quote literals of the form $a$a$...,
and was also confused about the rules for backslash in double quoted
identifiers (ie, they're not special). Also put in placeholder support
for E'...' literals --- this will need more work later.
Tom Lane [Sun, 11 Sep 2005 00:36:14 +0000 (00:36 +0000)]
Avoid changing stdin/stdout to binary mode on Windows unless that is
really the source or destination of the archive. I think this will
resolve recent complaints that password prompting is broken in pg_restore
on Windows. Note that password prompting and reading from stdin is an
unworkable combination on Windows ... but that was true anyway.
Bruce Momjian [Sat, 10 Sep 2005 05:21:52 +0000 (05:21 +0000)]
Update URL for FAQ_MINGW.
Tom Lane [Fri, 9 Sep 2005 06:51:12 +0000 (06:51 +0000)]
Given its current definition that depends on time(NULL), timetz_zone
is certainly no longer immutable, but must indeed be marked volatile.
I wonder if it should use the value of now() (that is, transaction
start time) so that it could be marked stable. But it's probably not
important enough to be worth changing the code for ... indeed, I'm not
even going to force an initdb for this catalog change, seeing that we
just did one a few hours ago.
Tom Lane [Fri, 9 Sep 2005 06:46:14 +0000 (06:46 +0000)]
timestamptz_izone should return the input, not NULL, when the input
is a non-finite timestamp, for consistency with related functions.
In other words: +infinity rotated to a different timezone is still
+infinity.
Tom Lane [Fri, 9 Sep 2005 02:31:50 +0000 (02:31 +0000)]
Fix the various forms of AT TIME ZONE to accept either timezones found
in the zic database or zone names found in the date token table. This
preserves the old ability to do AT TIME ZONE 'PST' along with the new
ability to do AT TIME ZONE 'PST8PDT'. Per gripe from Bricklen Anderson.
Also, fix some inconsistencies in usage of TZ_STRLEN_MAX --- the old
code had the potential for one-byte buffer overruns, though given
alignment considerations it's unlikely there was any real risk.
Tom Lane [Thu, 8 Sep 2005 20:07:42 +0000 (20:07 +0000)]
Create the pg_pltemplate system catalog to hold template information
for procedural languages. This replaces the hard-wired table I had
originally proposed as a stopgap solution. For the moment, the initial
contents only include languages shipped with the core distribution.
Tom Lane [Thu, 8 Sep 2005 16:49:04 +0000 (16:49 +0000)]
Update regression tests for new USA timezone data. Mea culpa for not
realizing that the regression tests could be affected.
Tom Lane [Wed, 7 Sep 2005 21:39:25 +0000 (21:39 +0000)]
Update timezone data files to release 2005m of the zic database.
Among other changes, this reflects the recently passed change in USA
daylight savings rules.
Tom Lane [Mon, 5 Sep 2005 23:50:49 +0000 (23:50 +0000)]
Implement a preliminary 'template' facility for procedural languages,
as per my recent proposal. For now the template data is hard-wired in
proclang.c --- this should be replaced later by a new shared system
catalog, but we don't want to force initdb during 8.1 beta. This change
lets us cleanly load existing dump files even if they contain outright
wrong information about a PL's support functions, such as a wrong path
to the shared library or a missing validator function. Also, we can
revert the recent kluges to make pg_dump dump PL support functions that
are stored in pg_catalog.
While at it, I removed the code in pg_regress that replaced $libdir
with a hardcoded path for temporary installations. This is no longer
needed given our support for relocatable installations.
Tom Lane [Mon, 5 Sep 2005 18:59:38 +0000 (18:59 +0000)]
Back out prior patch and instead just suppress SubqueryScan elimination
when there are extra resjunk columns in the child node. I found some
additional cases involving Append nodes that weren't handled by the
prior patch, and it's not clear how to fix them in the same way without
breaking inheritance cases. So the prudent path seems to be to narrow
the scope of the optimization.
Tom Lane [Mon, 5 Sep 2005 18:05:13 +0000 (18:05 +0000)]
Clean up version comparison/display code, per gripe from Michael Fuhr.
Tom Lane [Mon, 5 Sep 2005 17:25:01 +0000 (17:25 +0000)]
For non-projecting plan node types such as Limit, set_plan_references
has to recopy the input plan node's targetlist if it removes a
SubqueryScan node just below the non-projecting node. For simplicity
I made it recopy always. Per bug report from Allan Wang and Michael Fuhr.
Andrew Dunstan [Mon, 5 Sep 2005 14:44:05 +0000 (14:44 +0000)]
Add a note about CSV lines with trailing spaces.
Suggestion by Darcy Buskermolen, reworded by me.
Bruce Momjian [Mon, 5 Sep 2005 13:59:08 +0000 (13:59 +0000)]
Conditionally output the server version number in psql if it doesn't
exactly match the client version number, and warn about major version
mismatches.
Alvaro Herrera [Sun, 4 Sep 2005 13:40:24 +0000 (13:40 +0000)]
Fix typo in Richard's last name.
Tom Lane [Sat, 3 Sep 2005 15:55:00 +0000 (15:55 +0000)]
libpgport routines need nonstandard palloc to work on Windows.
Propagate hack that's in dirmod.c to copydir.c.
Bruce Momjian [Sat, 3 Sep 2005 00:41:30 +0000 (00:41 +0000)]
Add idea:
< cmin/cmax pair and is stored in local memory.
> cmin/cmax pair and is stored in local memory. Another idea is to
> store both cmin and cmax only in local memory.
Bruce Momjian [Fri, 2 Sep 2005 21:50:54 +0000 (21:50 +0000)]
Add log display label for unnamed server-side portals.
Tom Lane [Fri, 2 Sep 2005 21:25:30 +0000 (21:25 +0000)]
Fix the spelling.
Bruce Momjian [Fri, 2 Sep 2005 21:23:05 +0000 (21:23 +0000)]
Update.
< have its heap and index files truncated. One issue is
< that no other backend should be able to add to the table
< at the same time, which is something that is currently
< allowed.
> removed or have its heap and index files truncated. One
> issue is that no other backend should be able to add to
> the table at the same time, which is something that is
> currently allowed.
Bruce Momjian [Fri, 2 Sep 2005 21:10:59 +0000 (21:10 +0000)]
Update:
> o Allow COPY on a newly-created table to skip WAL logging
450a452,456
> On crash recovery, the table involved in the COPY would
> have its heap and index files truncated. One issue is
> that no other backend should be able to add to the table
> at the same time, which is something that is currently
> allowed.
Bruce Momjian [Fri, 2 Sep 2005 21:01:20 +0000 (21:01 +0000)]
Update:
< o Allow COPY into an empty table to skip WAL logging
> o Allow COPY into an new table to skip WAL logging
Bruce Momjian [Fri, 2 Sep 2005 21:00:59 +0000 (21:00 +0000)]
Update listen_addresses description.
Darcy Buskermolen
Bruce Momjian [Fri, 2 Sep 2005 20:11:34 +0000 (20:11 +0000)]
Add:
> * Use UTF8 encoding for NLS messages so all server encodings can
> read them properly
< o %Add support for Unicode
<
< To fix this, the data needs to be converted to/from UTF16/UTF8
< so the Win32 wcscoll() can be used, and perhaps other functions
< like towupper(). However, UTF8 already works with normal
< locales but provides no ordering or character set classes.
Bruce Momjian [Fri, 2 Sep 2005 19:51:37 +0000 (19:51 +0000)]
Update wording:
< could only see committed rows from another transaction. However,
> could only see rows from another completed transaction. However,
981c981
< proper visibility of the row, for example, for cursors.
> proper visibility of the row's cmin, for example, for cursors.
Bruce Momjian [Fri, 2 Sep 2005 19:39:15 +0000 (19:39 +0000)]
Add:
> o Allow COPY into an empty table to skip WAL logging
Tom Lane [Fri, 2 Sep 2005 19:02:20 +0000 (19:02 +0000)]
Clean up a couple of ad-hoc computations of the maximum number of tuples
on a page, as suggested by ITAGAKI Takahiro. Also, change a few places
that were using some other estimates of max-items-per-page to consistently
use MaxOffsetNumber. This is conservatively large --- we could have used
the new MaxHeapTuplesPerPage macro, or a similar one for index tuples ---
but those places are simply declaring a fixed-size buffer and assuming it
will work, rather than actively testing for overrun. It seems safer to
size these buffers in a way that can't overflow even if the page is
corrupt.