]> granicus.if.org Git - postgresql/log
postgresql
18 years agoAdjust bcc to work for thread changes.
Bruce Momjian [Fri, 16 Sep 2005 19:00:05 +0000 (19:00 +0000)]
Adjust bcc to work for thread changes.

18 years agoThis correction is required of nmake of Windows.
Bruce Momjian [Fri, 16 Sep 2005 18:58:48 +0000 (18:58 +0000)]
This correction is required of nmake of Windows.

Hiroshi Saito

18 years agoUpdate numbering.
Bruce Momjian [Fri, 16 Sep 2005 18:07:35 +0000 (18:07 +0000)]
Update numbering.

Michael Fuhr

18 years agoAdd:
Bruce Momjian [Fri, 16 Sep 2005 17:37:10 +0000 (17:37 +0000)]
Add:

<
> * Update Bonjour to work with newer cross-platform SDK

18 years agotag it all beta2 ... REL8_1_0BETA2
PostgreSQL Daemon [Fri, 16 Sep 2005 17:15:55 +0000 (17:15 +0000)]
tag it all beta2 ...

18 years agoUpdate wording:
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

18 years agoSmall fixes
Teodor Sigaev [Fri, 16 Sep 2005 14:40:54 +0000 (14:40 +0000)]
Small fixes

18 years agoAdd:
Bruce Momjian [Fri, 16 Sep 2005 11:24:02 +0000 (11:24 +0000)]
Add:

>  o Add single-step debugging of PL/PgSQL functions

18 years agoRename pg_complete_relation_size() to pg_total_relation_size(), for the
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.

18 years agoUpdate two comments to refer to use the new list API names.
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.

18 years agoUpdate release notes for changes between beta1 and beta2.
Tom Lane [Fri, 16 Sep 2005 03:37:35 +0000 (03:37 +0000)]
Update release notes for changes between beta1 and beta2.

18 years agoAdd note about pg_autovacuum settings not being saved on a dump, per
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.

18 years agoForce the size and alignment of LWLock array entries to be either 16 or 32
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.

18 years agoCopy-editing for GiST README.
Neil Conway [Thu, 15 Sep 2005 17:44:27 +0000 (17:44 +0000)]
Copy-editing for GiST README.

18 years agoReadme about GiST's algorithms
Teodor Sigaev [Thu, 15 Sep 2005 16:39:15 +0000 (16:39 +0000)]
Readme about GiST's algorithms

18 years ago1 Update Snowball sources
Teodor Sigaev [Thu, 15 Sep 2005 11:14:18 +0000 (11:14 +0000)]
1 Update Snowball sources
2 Makefile fixes

18 years agoVarious documentation improvements. Add a lot of index entries for
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.

18 years agoTweak the PL/PgSQL regression tests to catch the recently reported bug
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.

18 years agoFix recent breakage of decl_cursor_arglist syntax, per Michael Paesold.
Tom Lane [Wed, 14 Sep 2005 13:46:47 +0000 (13:46 +0000)]
Fix recent breakage of decl_cursor_arglist syntax, per Michael Paesold.

18 years agoFix make_tuple_from_row to support nested rowtypes, per gripe from
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.

18 years agoMinor SGML markup fixes.
Neil Conway [Tue, 13 Sep 2005 15:24:57 +0000 (15:24 +0000)]
Minor SGML markup fixes.

18 years agoDocument the new autovacuum daemon.
Alvaro Herrera [Tue, 13 Sep 2005 01:51:18 +0000 (01:51 +0000)]
Document the new autovacuum daemon.

18 years agoFix cut-and-paste-o in TCP keepalives documentation.
Tom Lane [Mon, 12 Sep 2005 23:09:05 +0000 (23:09 +0000)]
Fix cut-and-paste-o in TCP keepalives documentation.

18 years agoMinor documentation tweak: make the capitalization of a section title
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.

18 years agoEnsure that any memory leaked during an error inside the bgwriter is
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.

18 years agoMake the documentation of GUC variables a separate chapter, rather than
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.

18 years agoUpdate manual's introduction to indexes to reflect 8.1 changes; in
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.

18 years agoFix a mistake in the documentation for SPI_getbinval(), per Michael Fuhr.
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.

18 years agoForgot to add pg_pltemplate to the list of shared system catalogs that
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.

18 years agoFixed transaction command handling to not ignore savepoints and to correctly check...
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.

18 years agoAdd a few items to the release notes, and make a few more minor cleanups.
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.

18 years agoTweak TCP-keepalive code so that an invalid setting doesn't cause us
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.

18 years agoMany small improvements and copy edits to the release notes. Use "&mdash;"
Neil Conway [Sun, 11 Sep 2005 23:40:33 +0000 (23:40 +0000)]
Many small improvements and copy edits to the release notes. Use "&mdash;"
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.

18 years agoFix some corner-case bugs in _sendSQLLine's parsing of SQL commands
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.

18 years agoAvoid changing stdin/stdout to binary mode on Windows unless that is
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.

18 years agoUpdate URL for FAQ_MINGW.
Bruce Momjian [Sat, 10 Sep 2005 05:21:52 +0000 (05:21 +0000)]
Update URL for FAQ_MINGW.

18 years agoGiven its current definition that depends on time(NULL), timetz_zone
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.

18 years agotimestamptz_izone should return the input, not NULL, when the input
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.

18 years agoFix the various forms of AT TIME ZONE to accept either timezones found
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.

18 years agoCreate the pg_pltemplate system catalog to hold template information
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.

18 years agoUpdate regression tests for new USA timezone data. Mea culpa for not
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.

18 years agoUpdate timezone data files to release 2005m of the zic database.
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.

18 years agoImplement a preliminary 'template' facility for procedural languages,
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.

18 years agoBack out prior patch and instead just suppress SubqueryScan elimination
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.

18 years agoClean up version comparison/display code, per gripe from Michael Fuhr.
Tom Lane [Mon, 5 Sep 2005 18:05:13 +0000 (18:05 +0000)]
Clean up version comparison/display code, per gripe from Michael Fuhr.

18 years agoFor non-projecting plan node types such as Limit, set_plan_references
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.

18 years agoAdd a note about CSV lines with trailing spaces.
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.

18 years agoConditionally output the server version number in psql if it doesn't
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.

18 years agoFix typo in Richard's last name.
Alvaro Herrera [Sun, 4 Sep 2005 13:40:24 +0000 (13:40 +0000)]
Fix typo in Richard's last name.

18 years agolibpgport routines need nonstandard palloc to work on Windows.
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.

18 years agoAdd idea:
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.

18 years agoAdd log display label for unnamed server-side portals.
Bruce Momjian [Fri, 2 Sep 2005 21:50:54 +0000 (21:50 +0000)]
Add log display label for unnamed server-side portals.

18 years agoFix the spelling.
Tom Lane [Fri, 2 Sep 2005 21:25:30 +0000 (21:25 +0000)]
Fix the spelling.

18 years agoUpdate.
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.

18 years agoUpdate:
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.

18 years agoUpdate:
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

18 years agoUpdate listen_addresses description.
Bruce Momjian [Fri, 2 Sep 2005 21:00:59 +0000 (21:00 +0000)]
Update listen_addresses description.

Darcy Buskermolen

18 years agoAdd:
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.

18 years agoUpdate wording:
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.

18 years agoAdd:
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

18 years agoClean up a couple of ad-hoc computations of the maximum number of tuples
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.

18 years agoIn copy_file, use a palloc'd buffer instead of just a local char array;
Tom Lane [Fri, 2 Sep 2005 18:55:32 +0000 (18:55 +0000)]
In copy_file, use a palloc'd buffer instead of just a local char array;
a local array isn't guaranteed to have any particular alignment, and
so it could slow down the data transfer.

18 years agoAdd text:
Bruce Momjian [Fri, 2 Sep 2005 15:22:44 +0000 (15:22 +0000)]
Add text:

* Merge xmin/xmax/cmin/cmax back into three header fields

  Before subtransactions, there used to be only three fields needed to
  store these four values. This was possible because only the current
  transaction looks at the cmin/cmax values. If the current transaction
  created and expired the row the fields stored where xmin (same as
  xmax), cmin, cmax, and if the transaction was expiring a row from a
  another transaction, the fields stored were xmin (cmin was not
  needed), xmax, and cmax. Such a system worked because a transaction
  could only see committed rows from another transaction. However,
  subtransactions can see rows from outer transactions, and once the
  subtransaction completes, the outer transaction continues, requiring
  the storage of all four fields. With subtransactions, an outer
  transaction can create a row, a subtransaction expire it, and when the
  subtransaction completes, the outer transaction still has to have
  proper visibility of the row, for example, for cursors.

  One possible solution is to create a phantom cid which represents a
  cmin/cmax pair and is stored in local memory.

18 years agoAdd some notes about how pg_dump relates to the practices recommended
Tom Lane [Fri, 2 Sep 2005 03:19:53 +0000 (03:19 +0000)]
Add some notes about how pg_dump relates to the practices recommended
under 'Populating a Database'.

18 years agoUpdate performance discussion for 8.1. Add a little more explanatory
Tom Lane [Fri, 2 Sep 2005 00:57:57 +0000 (00:57 +0000)]
Update performance discussion for 8.1.  Add a little more explanatory
material in the EXPLAIN section, update examples to match current reality,
show examples of bitmap indexscans as well as plain ones.

18 years agoDuplicate:
Bruce Momjian [Fri, 2 Sep 2005 00:49:57 +0000 (00:49 +0000)]
Duplicate:

< * Maintain a map of recently-expired rows
<
<   This allows vacuum to target specific pages for possible free space
<   without requiring a sequential scan.
<
Update entry:

>   One complexity is that index entries still have to be vacuumed, and
>   doing this without an index scan (by using the heap values to find the
>   index entry) might be slow and unreliable, especially for user-defined
>   index functions.

18 years agoCorrect comment about why contrib/xml2 isn't built automatically.
Tom Lane [Thu, 1 Sep 2005 22:02:44 +0000 (22:02 +0000)]
Correct comment about why contrib/xml2 isn't built automatically.

18 years agoUpdate storage.sgml to reflect current reality.
Tom Lane [Thu, 1 Sep 2005 20:01:53 +0000 (20:01 +0000)]
Update storage.sgml to reflect current reality.

18 years agoShort-circuit AllocSetReset if nothing has been palloc'd in the memory
Tom Lane [Thu, 1 Sep 2005 18:15:42 +0000 (18:15 +0000)]
Short-circuit AllocSetReset if nothing has been palloc'd in the memory
context since the previous AllocSetReset.  Original patch by Atsushi Ogawa,
editorialized on a little bit by Tom Lane.

18 years ago8.0.3 is now the most recent version.
Bruce Momjian [Thu, 1 Sep 2005 16:18:51 +0000 (16:18 +0000)]
8.0.3 is now the most recent version.

18 years agoUpdate disk space computation because oids are now optional.
Bruce Momjian [Thu, 1 Sep 2005 16:18:08 +0000 (16:18 +0000)]
Update disk space computation because oids are now optional.

18 years agoFix unportable uses of <ctype.h> functions. Per Sergey Koposov.
Tom Lane [Thu, 1 Sep 2005 15:34:31 +0000 (15:34 +0000)]
Fix unportable uses of <ctype.h> functions.  Per Sergey Koposov.

18 years agoAdd:
Bruce Momjian [Tue, 30 Aug 2005 23:25:23 +0000 (23:25 +0000)]
Add:

> * Eventually enable escape_string_warning and standard_conforming_strings

18 years agoAdd regression tests for disabling constraints.
Bruce Momjian [Tue, 30 Aug 2005 18:57:48 +0000 (18:57 +0000)]
Add regression tests for disabling constraints.

Gavin Sherry

18 years agoRemove a couple of obsolete statements about how many buffers you can
Tom Lane [Tue, 30 Aug 2005 15:48:28 +0000 (15:48 +0000)]
Remove a couple of obsolete statements about how many buffers you can
fit into a 512K shared memory segment.

18 years agoLog send() failures when sending to statistics process (but only in
Tom Lane [Tue, 30 Aug 2005 02:47:37 +0000 (02:47 +0000)]
Log send() failures when sending to statistics process (but only in
assert-enabled builds).  This is a temporary measure to see if we can
learn anything about those intermittent stats test failures in the
buildfarm.

18 years agoImprove table describing shared memory parameters.
Tom Lane [Tue, 30 Aug 2005 02:09:29 +0000 (02:09 +0000)]
Improve table describing shared memory parameters.

18 years agoMention max_prepared_transactions in PREPARE TRANSACTION reference page,
Tom Lane [Tue, 30 Aug 2005 01:37:38 +0000 (01:37 +0000)]
Mention max_prepared_transactions in PREPARE TRANSACTION reference page,
per Bruce's suggestion.

18 years agoDropTableSpace forgot to remove dependency on tablespace's owner.
Tom Lane [Tue, 30 Aug 2005 01:08:47 +0000 (01:08 +0000)]
DropTableSpace forgot to remove dependency on tablespace's owner.
Per report from Jaime Casanova.

18 years agoFix misleading comment.
Tom Lane [Tue, 30 Aug 2005 01:07:54 +0000 (01:07 +0000)]
Fix misleading comment.

18 years agoUpdate documentation about shared memory sizing to reflect current
Tom Lane [Tue, 30 Aug 2005 00:58:48 +0000 (00:58 +0000)]
Update documentation about shared memory sizing to reflect current
reality.

18 years agoReduce default value of max_prepared_transactions from 50 to 5. This
Tom Lane [Mon, 29 Aug 2005 21:38:18 +0000 (21:38 +0000)]
Reduce default value of max_prepared_transactions from 50 to 5.  This
saves nearly 700kB in the default shared memory segment size, which seems
worthwhile, and it is a feature that many users won't use anyway.  Per
Heikki's argument, there is no point in a compromise value --- those who
are using 2PC at all will probably want it at least equal to max_connections.
But we can't set it to zero by default without breaking the prepared_xacts
regression test.

18 years agoFix platform-specific test for path prefix-ness: move it into path.c where
Tom Lane [Mon, 29 Aug 2005 19:39:39 +0000 (19:39 +0000)]
Fix platform-specific test for path prefix-ness: move it into path.c where
it can be done right.  Allow explicit use of absolute DataDir path.
Per Dave Page.

18 years agoFix misspelled error message.
Tom Lane [Mon, 29 Aug 2005 01:32:00 +0000 (01:32 +0000)]
Fix misspelled error message.

18 years agoAllow Win32 libpq will use it's minimal pthread implementation, and ecpg
Bruce Momjian [Mon, 29 Aug 2005 00:47:35 +0000 (00:47 +0000)]
Allow Win32 libpq will use it's minimal pthread implementation, and ecpg
will use pthreadGC2.

Dave Page

18 years agoSigh, looks like you need '.set mips2' before you can access MIPS
Tom Lane [Mon, 29 Aug 2005 00:41:34 +0000 (00:41 +0000)]
Sigh, looks like you need '.set mips2' before you can access MIPS
SYNC instruction.

18 years agoTweak nodeBitmapAnd to stop evaluating sub-plan scans if it finds it's
Tom Lane [Sun, 28 Aug 2005 22:47:20 +0000 (22:47 +0000)]
Tweak nodeBitmapAnd to stop evaluating sub-plan scans if it finds it's
got an empty bitmap after any step; the remaining subplans can no longer
affect the result.  Per a suggestion from Ilia Kantor.

18 years agoFix initdb quoting for Win32 paths in final examples, per Dave Page.
Bruce Momjian [Sun, 28 Aug 2005 22:21:46 +0000 (22:21 +0000)]
Fix initdb quoting for Win32 paths in final examples, per Dave Page.

18 years agoUpdate pthread_self() on Win32 to return DWORD.
Bruce Momjian [Sun, 28 Aug 2005 21:42:28 +0000 (21:42 +0000)]
Update pthread_self() on Win32 to return DWORD.

18 years agoAdd:
Bruce Momjian [Sun, 28 Aug 2005 18:52:37 +0000 (18:52 +0000)]
Add:

> * Add function to return the thread safety status of libpq and ecpg

18 years agoUse GetCurrentThreadId, per Magnus.
Bruce Momjian [Sun, 28 Aug 2005 18:49:01 +0000 (18:49 +0000)]
Use GetCurrentThreadId, per Magnus.

18 years agoAdd a SYNC instruction to the S_UNLOCK sequence for MIPS.
Tom Lane [Sun, 28 Aug 2005 18:26:01 +0000 (18:26 +0000)]
Add a SYNC instruction to the S_UNLOCK sequence for MIPS.

18 years agoAdd comment about pthread_self() cast.
Bruce Momjian [Sun, 28 Aug 2005 16:37:48 +0000 (16:37 +0000)]
Add comment about pthread_self() cast.

18 years agodumpUserConfig failed (in a pretty harmless way, but failed nonetheless)
Tom Lane [Sun, 28 Aug 2005 16:31:37 +0000 (16:31 +0000)]
dumpUserConfig failed (in a pretty harmless way, but failed nonetheless)
to cope with a group name when dumping from a pre-8.1 installation.
Per report from Stefan Kaltenbrunner.

18 years agocost_agg really ought to charge something per output tuple; else there
Tom Lane [Sat, 27 Aug 2005 22:37:00 +0000 (22:37 +0000)]
cost_agg really ought to charge something per output tuple; else there
are cases where it appears to have zero run cost.

18 years agoChange the division of labor between grouping_planner and query_planner
Tom Lane [Sat, 27 Aug 2005 22:13:44 +0000 (22:13 +0000)]
Change the division of labor between grouping_planner and query_planner
so that the latter estimates the number of groups that grouping will
produce.  This is needed because it is primarily query_planner that
makes the decision between fast-start and fast-finish plans, and in the
original coding it was unable to make more than a crude rule-of-thumb
choice when the query involved grouping.  This revision helps us make
saner choices for queries like SELECT ... GROUP BY ... LIMIT, as in a
recent example from Mark Kirkwood.  Also move the responsibility for
canonicalizing sort_pathkeys and group_pathkeys into query_planner;
this information has to be available anyway to support the first change,
and doing it this way lets us get rid of compare_noncanonical_pathkeys
entirely.

18 years agoWindows needs WSAStartup() before getaddrinfo() will work. Andrew Dunstan
Tom Lane [Sat, 27 Aug 2005 18:44:03 +0000 (18:44 +0000)]
Windows needs WSAStartup() before getaddrinfo() will work.  Andrew Dunstan

18 years agoFix two separate bugs in setrefs.c. set_subqueryscan_references needs
Tom Lane [Sat, 27 Aug 2005 18:04:49 +0000 (18:04 +0000)]
Fix two separate bugs in setrefs.c.  set_subqueryscan_references needs
to copy the whole plan tree before invoking adjust_plan_varnos(); else
if there is any multiply-linked substructure, the latter might increment
some Var's varno twice.  Previously there were some retail copyObject
calls inside adjust_plan_varnos, but it seems a lot safer to just dup the
whole tree first.  Also, set_inner_join_references was trying to avoid
work by not recursing if a BitmapHeapScan's bitmapqualorig contained no
outer references; which was OK at the time the code was written, I think,
but now that create_bitmap_scan_plan removes duplicate clauses from
bitmapqualorig it is possible for that field to be NULL while outer
references still remain in the qpqual and/or contained indexscan nodes.
For safety, always recurse even if the BitmapHeapScan looks to be outer
reference free.  Per reports from Michael Fuhr and Oleg Bartunov.

18 years agoGet the MIPS assembler syntax right. Also add a separate sync command;
Tom Lane [Sat, 27 Aug 2005 16:22:48 +0000 (16:22 +0000)]
Get the MIPS assembler syntax right.  Also add a separate sync command;
the reference I consulted yesterday said SC does a SYNC, but apparently
this is not true on newer MIPS processors, so be safe.

18 years agoFix typo:
Bruce Momjian [Sat, 27 Aug 2005 14:13:21 +0000 (14:13 +0000)]
Fix typo:

sql_information_info -> sql_implementation_info

Robert Treat