OSDN Git Service

pg-rex/syncrep.git
18 years agoEliminate a gratuitously different wording of the 'cannot use aggregate function...
Tom Lane [Wed, 21 Jun 2006 18:09:53 +0000 (18:09 +0000)]
Eliminate a gratuitously different wording of the 'cannot use aggregate function in check constraint' error message.

18 years ago- During dblink_open, if transaction state was IDLE, force cursor count to
Joe Conway [Wed, 21 Jun 2006 16:43:11 +0000 (16:43 +0000)]
- During dblink_open, if transaction state was IDLE, force cursor count to
  initially be 0. This is needed as a previous ABORT might have wiped out
  an automatically opened transaction without maintaining the cursor count.
- Fix regression test expected file for the correct ERROR message, which
  we now get given the above bug fix.

18 years agoClean up psql variable code a little: eliminate unnecessary tests in
Tom Lane [Wed, 21 Jun 2006 16:05:11 +0000 (16:05 +0000)]
Clean up psql variable code a little: eliminate unnecessary tests in
GetVariable() and be consistent about treatment of the list header.
Motivated by noticing strspn() taking an unreasonable percentage of
runtime --- the call removed from GetVariable() was the only one that
could be in a high-usage path ...

18 years agoAdded some more coverity report patches send in by Martijn van Oosterhout <kleptog...
Michael Meskes [Wed, 21 Jun 2006 11:38:07 +0000 (11:38 +0000)]
Added some more coverity report patches send in by Martijn van Oosterhout <kleptog@svana.org>.

18 years agoFixed small typo in changelog
Michael Meskes [Wed, 21 Jun 2006 10:34:48 +0000 (10:34 +0000)]
Fixed small typo in changelog

18 years agoAdded fixed from the coverity report send in by Joachim Wieland <joe@mcknight.de>
Michael Meskes [Wed, 21 Jun 2006 10:24:41 +0000 (10:24 +0000)]
Added fixed from the coverity report send in by Joachim Wieland <joe@mcknight.de>
Added missing error handling in a few functions in ecpglib

18 years agoRemove redundant gettimeofday() calls to the extent practical without
Tom Lane [Tue, 20 Jun 2006 22:52:00 +0000 (22:52 +0000)]
Remove redundant gettimeofday() calls to the extent practical without
changing semantics too much.  statement_timestamp is now set immediately
upon receipt of a client command message, and the various places that used
to do their own gettimeofday() calls to mark command startup are referenced
to that instead.  I have also made stats_command_string use that same
value for pg_stat_activity.query_start for both the command itself and
its eventual replacement by <IDLE> or <idle in transaction>.  There was
some debate about that, but no argument that seemed convincing enough to
justify an extra gettimeofday() call.

18 years agoSplit definitions for md5.c out of crypt.h and into their own header
Tom Lane [Tue, 20 Jun 2006 19:56:52 +0000 (19:56 +0000)]
Split definitions for md5.c out of crypt.h and into their own header
libpq/md5.h, so that there's a clear separation between backend-only
definitions and shared frontend/backend definitions.  (Turns out this
is reversing a bad decision from some years ago...)  Fix up references
to crypt.h as needed.  I looked into moving the code into src/port, but
the headers in src/include/libpq are sufficiently intertwined that it
seems more work than it's worth to do that.

18 years agoSome editorial work on the documentation of the current-date/time
Tom Lane [Mon, 19 Jun 2006 16:13:01 +0000 (16:13 +0000)]
Some editorial work on the documentation of the current-date/time
functions.

18 years agoDo not use already free'ed errmsg, bug found by Joachim Wieland
Michael Meskes [Mon, 19 Jun 2006 09:19:49 +0000 (09:19 +0000)]
Do not use already free'ed errmsg, bug found by Joachim Wieland
<joachim.wieland@credativ.de>

18 years agoTake the statistics collector out of the loop for monitoring backends'
Tom Lane [Mon, 19 Jun 2006 01:51:22 +0000 (01:51 +0000)]
Take the statistics collector out of the loop for monitoring backends'
current commands; instead, store current-status information in shared
memory.  This substantially reduces the overhead of stats_command_string
and also ensures that pg_stat_activity is fully up to date at all times.
Per my recent proposal.

18 years agoUpdate my email address.
Bruce Momjian [Sun, 18 Jun 2006 19:34:00 +0000 (19:34 +0000)]
Update my email address.

18 years agoDon't try to call posix_fadvise() unless <fcntl.h> supplies a declaration
Tom Lane [Sun, 18 Jun 2006 18:30:21 +0000 (18:30 +0000)]
Don't try to call posix_fadvise() unless <fcntl.h> supplies a declaration
for it.  Hopefully will fix core dump evidenced by some buildfarm members
since fadvise patch went in.  The actual definition of the function is not
ABI-compatible with compiler's default assumption in the absence of any
declaration, so it's clearly unsafe to try to call it without seeing a
declaration.

18 years agoFix saveHistory() to not emit bogus complaint during psql exit when using
Tom Lane [Sun, 18 Jun 2006 17:30:48 +0000 (17:30 +0000)]
Fix saveHistory() to not emit bogus complaint during psql exit when using
Darwin's libedit; per my proposal last August.  Also, suppress cast-away-
const warnings.

18 years agoIncrease timeout in statement_timeout test from 1 second to 2 seconds.
Tom Lane [Sun, 18 Jun 2006 16:21:23 +0000 (16:21 +0000)]
Increase timeout in statement_timeout test from 1 second to 2 seconds.
We have once or twice seen failures suggesting that control didn't get
to the exception block before the timeout elapsed, which is unlikely
but not impossible in a parallel regression test (with a dozen other
backends competing for cycles).  This change doesn't completely prevent
the problem of course, but it should reduce the probability enough that
we don't see it anymore.  Per buildfarm results.

18 years agoMerge postmaster and postgres command into just postgres. postmaster
Peter Eisentraut [Sun, 18 Jun 2006 15:38:37 +0000 (15:38 +0000)]
Merge postmaster and postgres command into just postgres.  postmaster
symlink is kept for now for compatibility.  To call single-user mode, use
postgres --single.

18 years agoFix a couple of obvious problems in DROP IF EXISTS patch.
Tom Lane [Fri, 16 Jun 2006 23:50:48 +0000 (23:50 +0000)]
Fix a couple of obvious problems in DROP IF EXISTS patch.

18 years agoCode review for SELECT INTO STRICT patch: use saner choices of error
Tom Lane [Fri, 16 Jun 2006 23:29:27 +0000 (23:29 +0000)]
Code review for SELECT INTO STRICT patch: use saner choices of error
SQLSTATEs, fix some documentation problems.

18 years agoClean up after someone's curious idea that it'd be good to strip
Tom Lane [Fri, 16 Jun 2006 22:41:45 +0000 (22:41 +0000)]
Clean up after someone's curious idea that it'd be good to strip
leading zeroes from the SQLSTATE codes.  They're strings, people,
not numbers.

18 years agodocs for DROP ... IF EXISTS for the following cases:
Andrew Dunstan [Fri, 16 Jun 2006 22:27:55 +0000 (22:27 +0000)]
docs for DROP ... IF EXISTS for the following cases:
  language, tablespace, trigger, rule, opclass, function, aggregate. operator, and cast.

18 years agoAdd:
Bruce Momjian [Fri, 16 Jun 2006 22:08:46 +0000 (22:08 +0000)]
Add:

>  o Allow PL/python to composite types and result sets
>    once buggy assert-enabled versions of python can be detected
>
>    http://archives.postgresql.org/pgsql-patches/2006-04/msg00087.php

18 years agoAdd:
Bruce Momjian [Fri, 16 Jun 2006 22:05:01 +0000 (22:05 +0000)]
Add:

>
> * Fix CREATE CAST on DOMAINs
>
>   http://archives.postgresql.org/pgsql-hackers/2006-05/msg00072.php

18 years agoDocument issues with non-default tablespaces and pg_dumpall restores.
Bruce Momjian [Fri, 16 Jun 2006 22:01:17 +0000 (22:01 +0000)]
Document issues with non-default tablespaces and pg_dumpall restores.

Backpatch documentation addition to 8.1.X.

18 years agoAdd URL for ISO dates:
Bruce Momjian [Fri, 16 Jun 2006 21:41:24 +0000 (21:41 +0000)]
Add URL for ISO dates:

>    http://archives.postgresql.org/pgsql-bugs/2006-04/msg00248.php

18 years agoDROP ... IF EXISTS for the following cases:
Andrew Dunstan [Fri, 16 Jun 2006 20:23:45 +0000 (20:23 +0000)]
DROP ... IF EXISTS for the following cases:
  language, tablespace, trigger, rule, opclass, function, aggregate. operator, and cast.

18 years agoAdd URL for currency type:
Bruce Momjian [Fri, 16 Jun 2006 19:49:50 +0000 (19:49 +0000)]
Add URL for currency type:

>   http://archives.postgresql.org/pgsql-general/2005-08/msg01432.php

18 years agoAdd URL for updatable views:
Bruce Momjian [Fri, 16 Jun 2006 18:50:24 +0000 (18:50 +0000)]
Add URL for updatable views:

>   http://archives.postgresql.org/pgsql-hackers/2006-03/msg00586.php

18 years agoAdd:
Bruce Momjian [Fri, 16 Jun 2006 18:48:42 +0000 (18:48 +0000)]
Add:

> * Consider shrinking expired tuples to just their headers
>   http://archives.postgresql.org/pgsql-patches/2006-03/msg00142.php

18 years agoFix problems with cached tuple descriptors disappearing while still in use
Tom Lane [Fri, 16 Jun 2006 18:42:24 +0000 (18:42 +0000)]
Fix problems with cached tuple descriptors disappearing while still in use
by creating a reference-count mechanism, similar to what we did a long time
ago for catcache entries.  The back branches have an ugly solution involving
lots of extra copies, but this way is more efficient.  Reference counting is
only applied to tupdescs that are actually in caches --- there seems no need
to use it for tupdescs that are generated in the executor, since they'll go
away during plan shutdown by virtue of being in the per-query memory context.
Neil Conway and Tom Lane

18 years agoAdd URL to:
Bruce Momjian [Fri, 16 Jun 2006 18:38:39 +0000 (18:38 +0000)]
Add URL to:

* Auto-fill the free space map by scanning the buffer cache or by
  checking pages written by the background writer

18 years agoAdd URL for freespace map filling.
Bruce Momjian [Fri, 16 Jun 2006 18:37:31 +0000 (18:37 +0000)]
Add URL for freespace map filling.

>
>   http://archives.postgresql.org/pgsql-hackers/2006-02/msg01125.php
>

18 years ago>
Bruce Momjian [Fri, 16 Jun 2006 18:32:07 +0000 (18:32 +0000)]
>
> * Add support for public SYNONYMS
>
>   http://archives.postgresql.org/pgsql-hackers/2006-03/msg00519.php

18 years ago> o Add PL/Python tracebacks
Bruce Momjian [Fri, 16 Jun 2006 18:11:03 +0000 (18:11 +0000)]
>               o Add PL/Python tracebacks
>
>                http://archives.postgresql.org/pgsql-patches/2006-02/msg00288.php

18 years agoAdd:
Bruce Momjian [Fri, 16 Jun 2006 17:44:43 +0000 (17:44 +0000)]
Add:

>  o Fix problems with RETURN NEXT on tables with
>    dropped/added columns after function creation
>
>    http://archives.postgresql.org/pgsql-patches/2006-02/msg00165.php

18 years agoAdd URL for:
Bruce Momjian [Fri, 16 Jun 2006 17:25:38 +0000 (17:25 +0000)]
Add URL for:

> * Allow protocol-level BIND parameter values to be logged
>
>   http://archives.postgresql.org/pgsql-hackers/2006-02/msg00165.php

18 years agoAdd to locale TODO.detail.
Bruce Momjian [Fri, 16 Jun 2006 17:14:32 +0000 (17:14 +0000)]
Add to locale TODO.detail.

18 years agoAdd URL for ISO date/time syntax:
Bruce Momjian [Fri, 16 Jun 2006 16:59:30 +0000 (16:59 +0000)]
Add URL for ISO date/time syntax:
>
>    http://archives.postgresql.org/pgsql-hackers/2006-01/msg00250.php
>

18 years agoAdd LDAP documentation missed in code patch.
Bruce Momjian [Fri, 16 Jun 2006 15:16:16 +0000 (15:16 +0000)]
Add LDAP documentation missed in code patch.

Magnus Hagander

18 years agoUpdate preload_library magic block wording.
Bruce Momjian [Fri, 16 Jun 2006 12:47:49 +0000 (12:47 +0000)]
Update preload_library magic block wording.

18 years agoTest for POSIX_FADV_DONTNEED to use posix_fadvise().
Bruce Momjian [Fri, 16 Jun 2006 04:11:48 +0000 (04:11 +0000)]
Test for POSIX_FADV_DONTNEED to use posix_fadvise().

18 years agoFix:
Bruce Momjian [Fri, 16 Jun 2006 04:04:52 +0000 (04:04 +0000)]
Fix:

<    get_employee_salary(emp_id AS 12345, tax_year AS 2001)
>    get_employee_salary(12345 AS emp_id, 2001 AS tax_year)

18 years agoUpdate magic block wording for preloaded libraries.
Bruce Momjian [Fri, 16 Jun 2006 04:02:35 +0000 (04:02 +0000)]
Update magic block wording for preloaded libraries.

18 years agoUse posix_fadvise() to avoid kernel caching of WAL contents on WAL file
Bruce Momjian [Thu, 15 Jun 2006 19:15:00 +0000 (19:15 +0000)]
Use posix_fadvise() to avoid kernel caching of WAL contents on WAL file
close.

ITAGAKI Takahiro

18 years agoAdd STRICT to PL/pgSQL SELECT INTO, so exceptions are thrown if more or
Bruce Momjian [Thu, 15 Jun 2006 18:02:22 +0000 (18:02 +0000)]
Add STRICT to PL/pgSQL SELECT INTO, so exceptions are thrown if more or
less than one row is returned by the SELECT, for Oracle PL/SQL
compatibility.

Improve SELECT INTO documentation.

Matt Miller

18 years agoFix to_ascii() markup error.
Bruce Momjian [Thu, 15 Jun 2006 17:52:48 +0000 (17:52 +0000)]
Fix to_ascii() markup error.

18 years agoAdd mention that preload_libraries check the magic block, so
Bruce Momjian [Thu, 15 Jun 2006 17:49:09 +0000 (17:49 +0000)]
Add mention that preload_libraries check the magic block, so
non-PostgreSQL libraries cannot be loaded using this capability.

18 years agoUpdate syntax suggestion:
Bruce Momjian [Thu, 15 Jun 2006 17:42:02 +0000 (17:42 +0000)]
Update syntax suggestion:

<    get_employee_salary(emp_id => 12345, tax_year => 2001)
>    get_employee_salary(emp_id AS 12345, tax_year AS 2001)

18 years agoMove list of supported to_ascii() encodings from footnote to main
Bruce Momjian [Thu, 15 Jun 2006 17:38:26 +0000 (17:38 +0000)]
Move list of supported to_ascii() encodings from footnote to main
description.

Nis Jorgensen

18 years agoAdd:
Bruce Momjian [Thu, 15 Jun 2006 17:17:41 +0000 (17:17 +0000)]
Add:

>
>  o Fix memory leak from exceptions
>
>    http://archives.postgresql.org/pgsql-performance/2006-06/msg00305.php

18 years agoClarify dynamic pl/pgsql item and add URLs. Restructure server-side
Bruce Momjian [Thu, 15 Jun 2006 16:54:13 +0000 (16:54 +0000)]
Clarify dynamic pl/pgsql item and add URLs.  Restructure server-side
section into PL/pgSQL and non-PL/pgSQL sections:

<  o Fix PL/pgSQL RENAME to work on variables other than OLD/NEW
<  o Allow function parameters to be passed by name,
<    get_employee_salary(emp_id => 12345, tax_year => 2001)
<  o Add Oracle-style packages
<  o Add table function support to pltcl, plpython
<  o Add capability to create and call PROCEDURES
<  o Allow PL/pgSQL to handle %TYPE arrays, e.g. tab.col%TYPE[]
<  o Allow function argument names to be statements from PL/PgSQL
<  o Add MOVE to PL/pgSQL
<  o Add support for polymorphic arguments and return types to
<    languages other than PL/PgSQL
<  o Add support for OUT and INOUT parameters to languages other
<    than PL/PgSQL
<  o Add single-step debugging of PL/PgSQL functions
<  o Allow PL/PgSQL to support WITH HOLD cursors
<  o Allow PL/PgSQL RETURN to return row or record functions
<
<    http://archives.postgresql.org/pgsql-patches/2005-11/msg00045.php
>  o PL/pgSQL
>  o Fix RENAME to work on variables other than OLD/NEW
>  o Allow function parameters to be passed by name,
>    get_employee_salary(emp_id => 12345, tax_year => 2001)
>  o Add Oracle-style packages
>  o Allow handling of %TYPE arrays, e.g. tab.col%TYPE[]
>  o Allow listing of record column names, and access to
>    record columns via variables, e.g. columns := r.(*),
>    tval2 := r.(colname)
>
>    http://archives.postgresql.org/pgsql-patches/2005-07/msg00458.php
>    http://archives.postgresql.org/pgsql-patches/2006-05/msg00302.php
>    http://archives.postgresql.org/pgsql-patches/2006-06/msg00031.php
>
>  o Add MOVE
>  o Add single-step debugging of functions
>  o Add support for WITH HOLD cursors
>  o Allow PL/RETURN to return row or record functions
>
>    http://archives.postgresql.org/pgsql-patches/2005-11/msg00045.php
>
>
>  o Other
>  o Add table function support to pltcl, plpython
>  o Add support for polymorphic arguments and return types to
>    languages other than PL/PgSQL
>  o Add capability to create and call PROCEDURES
>  o Add support for OUT and INOUT parameters to languages other
>    than PL/PgSQL

18 years agoAdd:
Bruce Momjian [Thu, 15 Jun 2006 16:02:32 +0000 (16:02 +0000)]
Add:

>  o Allow PL/PgSQL RETURN to return row or record functions
>
>    http://archives.postgresql.org/pgsql-patches/2005-11/msg00045.php

18 years agoDone, removed:
Bruce Momjian [Thu, 15 Jun 2006 02:23:13 +0000 (02:23 +0000)]
Done, removed:

<
< * Consider padding the spinlock structure to have spinlock registers
<   on different CPU cache line
<
<   http://archives.postgresql.org/pgsql-hackers/2005-10/msg00498.php

18 years agoRemove the limit on the number of entries allowed in catcaches, and
Tom Lane [Thu, 15 Jun 2006 02:08:09 +0000 (02:08 +0000)]
Remove the limit on the number of entries allowed in catcaches, and
remove the infrastructure needed to enforce the limit, ie, the global
LRU list of cache entries.  On small-to-middling databases this wins
because maintaining the LRU list is a waste of time.  On large databases
this wins because it's better to keep more cache entries (we assume
such users can afford to use some more per-backend memory than was
contemplated in the Berkeley-era catcache design).  This provides a
noticeable improvement in the speed of psql \d on a 10000-table
database, though it doesn't make it instantaneous.

While at it, use per-catcache settings for the number of hash buckets
per catcache, rather than the former one-size-fits-all value.  It's a
bit silly to be using the same number of hash buckets for, eg, pg_am
and pg_attribute.  The specific values I used might need some tuning,
but they seem to be in the right ballpark based on CATCACHE_STATS
results from the standard regression tests.

18 years agoAdd to locale TODO.detail.
Bruce Momjian [Wed, 14 Jun 2006 23:28:22 +0000 (23:28 +0000)]
Add to locale TODO.detail.

18 years agoRemove, done:
Bruce Momjian [Wed, 14 Jun 2006 23:19:04 +0000 (23:19 +0000)]
Remove, done:

<
< * Add support for WIN1253 (Greek) encoding
<
<   http://archives.postgresql.org/pgsql-bugs/2005-12/msg00000.php

18 years agoAdd:
Bruce Momjian [Wed, 14 Jun 2006 23:07:55 +0000 (23:07 +0000)]
Add:

>
> * Add support for WIN1253 (Greek) encoding
>
>   http://archives.postgresql.org/pgsql-bugs/2005-12/msg00000.php

18 years agoAdd URL to ILIKE encoding fix:
Bruce Momjian [Wed, 14 Jun 2006 23:03:12 +0000 (23:03 +0000)]
Add URL to ILIKE encoding fix:

>   http://archives.postgresql.org/pgsql-patches/2005-11/msg00173.php

18 years agoAdd:
Bruce Momjian [Wed, 14 Jun 2006 22:31:53 +0000 (22:31 +0000)]
Add:

>
> * Consider increasing internal areas when shared buffers is increased
>
>   http://archives.postgresql.org/pgsql-hackers/2005-10/msg01419.php

18 years agoAlready done:
Bruce Momjian [Wed, 14 Jun 2006 22:23:05 +0000 (22:23 +0000)]
Already done:

<
<  o Properly mark all libpq-exported functions with "PQ"
<
<    http://archives.postgresql.org/pgsql-hackers/2005-10/msg00696.php

18 years agoDone by Peter:
Bruce Momjian [Wed, 14 Jun 2006 21:58:21 +0000 (21:58 +0000)]
Done by Peter:

< * Improve the information schema to be more standards-compliant:
<
<   http://archives.postgresql.org/pgsql-bugs/2005-10/msg00028.php

18 years agoAdd:
Bruce Momjian [Wed, 14 Jun 2006 21:54:43 +0000 (21:54 +0000)]
Add:

>
>  o Properly mark all libpq-exported functions with "PQ"
>
>    http://archives.postgresql.org/pgsql-hackers/2005-10/msg00696.php

18 years agoAdd:
Bruce Momjian [Wed, 14 Jun 2006 21:47:06 +0000 (21:47 +0000)]
Add:

>
> * Consider padding the spinlock structure to have spinlock registers
>   on different CPU cache line
>
>   http://archives.postgresql.org/pgsql-hackers/2005-10/msg00498.php

18 years agoAdd item, not fixed:
Bruce Momjian [Wed, 14 Jun 2006 21:40:00 +0000 (21:40 +0000)]
Add item, not fixed:

>
> * Fix ILIKE and regular expressions to handle case insensitivity
>   properly in multibyte encodings
>
>   http://archives.postgresql.org/pgsql-bugs/2005-10/msg00001.php

18 years agoRemove, already in back branches:
Bruce Momjian [Wed, 14 Jun 2006 21:38:21 +0000 (21:38 +0000)]
Remove, already in back branches:

<
<  o Add new version of PQescapeString() that doesn't double backslashes
<    that are part of a client-only multibyte sequence
<
<    Single-quote is not a valid byte in any supported client-only
<    encoding.  This requires using mblen() to determine if the
<    backslash is inside or outside a multi-byte sequence.
<
<  o Add new version of PQescapeString() that doesn't double
<    backslashes when standard_conforming_strings is true and
<    non-E strings are used

18 years agoDone:
Bruce Momjian [Wed, 14 Jun 2006 21:26:49 +0000 (21:26 +0000)]
Done:

>  o -Port contrib/xml2

18 years agoAdd information schema item:
Bruce Momjian [Wed, 14 Jun 2006 21:10:50 +0000 (21:10 +0000)]
Add information schema item:

> * Improve the information schema to be more standards-compliant:
>
>   http://archives.postgresql.org/pgsql-bugs/2005-10/msg00028.php
> * Add URL to more complete multi-byte regression tests
>
>   http://archives.postgresql.org/pgsql-hackers/2005-07/msg00272.php
< * Add URL to more complete multi-byte regression tests
<
<   http://archives.postgresql.org/pgsql-hackers/2005-07/msg00272.php

18 years agoAdd COPY views patch URL:
Bruce Momjian [Wed, 14 Jun 2006 20:40:20 +0000 (20:40 +0000)]
Add COPY views patch URL:

>    http://archives.postgresql.org/pgsql-patches/2005-09/msg00148.php

18 years agoAdd:
Bruce Momjian [Wed, 14 Jun 2006 19:32:48 +0000 (19:32 +0000)]
Add:

>
>  o Add API for 64-bit large object access
>
>    http://archives.postgresql.org/pgsql-hackers/2005-09/msg00781.php

18 years agoKeep TODO.detail until item is done:
Bruce Momjian [Wed, 14 Jun 2006 19:02:06 +0000 (19:02 +0000)]
Keep TODO.detail until item is done:

<  o %Allow pg_dump to use multiple -t and -n switches
>  o %Allow pg_dump to use multiple -t and -n switches  [pg_dump]

18 years agoAdd URL, remove TODO.detail:
Bruce Momjian [Wed, 14 Jun 2006 19:01:42 +0000 (19:01 +0000)]
Add URL, remove TODO.detail:

<  o %Allow pg_dump to use multiple -t and -n switches [pg_dump]
>  o %Allow pg_dump to use multiple -t and -n switches
>
>    http://archives.postgresql.org/pgsql-patches/2006-01/msg00190.php
>

18 years agoAdd locale/encoding references:
Bruce Momjian [Wed, 14 Jun 2006 18:47:53 +0000 (18:47 +0000)]
Add locale/encoding references:

<   Right now only one encoding is allowed per database.
>   Right now only one encoding is allowed per database.  [locale]
> * Add CREATE COLLATE?  [locale]

18 years agoAdd locale TODO.detail emails.
Bruce Momjian [Wed, 14 Jun 2006 18:42:51 +0000 (18:42 +0000)]
Add locale TODO.detail emails.

18 years agoUpdate link to TODO.detail:
Bruce Momjian [Wed, 14 Jun 2006 18:39:18 +0000 (18:39 +0000)]
Update link to TODO.detail:

<  o Check WSACancelBlockingCall() for interrupts (win32intr)
>  o Check WSACancelBlockingCall() for interrupts [win32intr]

18 years agoAdd:
Bruce Momjian [Wed, 14 Jun 2006 18:36:57 +0000 (18:36 +0000)]
Add:

>  o Fix problem when cascading referential triggers make changes on
>    cascaded tables, seeing the tables in an intermediate state
>
>    http://archives.postgresql.org/pgsql-hackers/2005-09/msg00174.php
>    http://archives.postgresql.org/pgsql-hackers/2005-09/msg00174.php

18 years agoAdded:
Bruce Momjian [Wed, 14 Jun 2006 17:59:33 +0000 (17:59 +0000)]
Added:

>
> * Add URL to more complete multi-byte regression tests
>
>   http://archives.postgresql.org/pgsql-hackers/2005-07/msg00272.php

18 years agoAdd entry:
Bruce Momjian [Wed, 14 Jun 2006 17:51:55 +0000 (17:51 +0000)]
Add entry:

> * Allow user-defined types to accept 'typmod' parameters
>   http://archives.postgresql.org/pgsql-hackers/2005-08/msg01142.php
>   http://archives.postgresql.org/pgsql-hackers/2005-09/msg00012.php

18 years agoFurther thoughts about lo_export/lo_import error handling: if one of
Tom Lane [Wed, 14 Jun 2006 17:49:25 +0000 (17:49 +0000)]
Further thoughts about lo_export/lo_import error handling: if one of
the lower-level large object functions fails, it will have already set
a suitable error message --- probably something from the backend ---
and it is not useful to overwrite that with a generic 'error while
reading large object' message.  So remove redundant messages.

18 years agoClean up psql's control-C handling to avoid longjmp'ing out of random
Tom Lane [Wed, 14 Jun 2006 16:49:03 +0000 (16:49 +0000)]
Clean up psql's control-C handling to avoid longjmp'ing out of random
places --- that risks corrupting data structures, losing sync with the
backend, etc.  We now longjmp only from calls to readline, fgets, and
fread, which we assume are coded to protect themselves against interrupts
at undesirable times.  This requires adding explicit tests for
cancel_pressed in long-running loops, but on the whole it's far cleaner.
Martijn van Oosterhout and Tom Lane.

18 years agoImprove error detection and recovery in lo_import()/lo_export().
Tom Lane [Wed, 14 Jun 2006 01:28:55 +0000 (01:28 +0000)]
Improve error detection and recovery in lo_import()/lo_export().
Problems noted while experimenting with new control-C code for psql.

18 years agoDo a CHECK_FOR_INTERRUPTS immediately before terminating a fastpath
Tom Lane [Wed, 14 Jun 2006 01:24:14 +0000 (01:24 +0000)]
Do a CHECK_FOR_INTERRUPTS immediately before terminating a fastpath
function call.  Previously, there may have been no CHECK_FOR_INTERRUPTS
at all in the fastpath code path, making it impossible to cancel an
operation such as \lo_import externally.  This addition doesn't ensure
you can cancel, since your SIGINT may arrive while the backend is idle
waiting for the client, but it gives the largest window we can easily
provide.  Noted while experimenting with new control-C code for psql.

18 years agoRemove:
Bruce Momjian [Tue, 13 Jun 2006 21:08:22 +0000 (21:08 +0000)]
Remove:

<  o %Add CSV output format

18 years agoAdd BY clause to PL/PgSQL FOR loop, to control the iteration increment.
Bruce Momjian [Mon, 12 Jun 2006 16:45:30 +0000 (16:45 +0000)]
Add BY clause to PL/PgSQL FOR loop, to control the iteration increment.

Jaime Casanova

18 years agoAvoid use of C commment inside C comment from recent Win32 int overflow patch.
Bruce Momjian [Mon, 12 Jun 2006 16:28:52 +0000 (16:28 +0000)]
Avoid use of C commment inside C comment from recent Win32 int overflow patch.

18 years agoPrevent Win32 from displaying a popup box on backend crash. Instead let
Bruce Momjian [Mon, 12 Jun 2006 16:17:20 +0000 (16:17 +0000)]
Prevent Win32 from displaying a popup box on backend crash.  Instead let
the postmaster deal with it.

Magnus Hagander

18 years agoAdd URL for bitmap AM:
Bruce Momjian [Mon, 12 Jun 2006 16:15:07 +0000 (16:15 +0000)]
Add URL for bitmap AM:

>   http://archives.postgresql.org/pgsql-patches/2005-07/msg00512.php

18 years agoWin32 can't catch the exception thrown by INT_MIN / -1 or INT_MIN * -1,
Bruce Momjian [Mon, 12 Jun 2006 16:09:11 +0000 (16:09 +0000)]
Win32 can't catch the exception thrown by INT_MIN / -1 or INT_MIN * -1,
so on that platform we test for those before the computation and throw
an "out of range" error.

Backpatch to 8.1.X.

18 years agoMinor code cleanup: make the WIN32 case less gratuitously different from
Tom Lane [Mon, 12 Jun 2006 02:39:49 +0000 (02:39 +0000)]
Minor code cleanup: make the WIN32 case less gratuitously different from
the other platform-specific cases in ps_status.

18 years agoCode review for psql multiline history patch(es). Fix memory leak,
Tom Lane [Sun, 11 Jun 2006 23:06:00 +0000 (23:06 +0000)]
Code review for psql multiline history patch(es).  Fix memory leak,
failure to enter commands in history if canceled by control-C, other
infelicities.

18 years agoFix Assert failure when a fastpath function call is attempted inside an
Tom Lane [Sun, 11 Jun 2006 15:49:28 +0000 (15:49 +0000)]
Fix Assert failure when a fastpath function call is attempted inside an
already-aborted transaction block.  GetSnapshotData throws an Assert if
not in a valid transaction; hence we mustn't attempt to set a snapshot
for the function until after checking for aborted transaction.  This is
harmless AFAICT if Asserts aren't enabled (GetSnapshotData will compute
a bogus snapshot, but it doesn't matter since HandleFunctionRequest will
throw an error shortly anywy).  Hence, not a major bug.

Along the way, add some ability to log fastpath calls when statement
logging is turned on.  This could probably stand to be improved further,
but not logging anything is clearly undesirable.

Backpatched as far as 8.0; bug doesn't exist before that.

18 years agoRemove pg_dump wording:
Bruce Momjian [Sat, 10 Jun 2006 23:33:27 +0000 (23:33 +0000)]
Remove pg_dump wording:

<   pg_get_tabledef(), pg_get_domaindef(), pg_get_functiondef(), and
<   make use of them in pg_dump
>   pg_get_tabledef(), pg_get_domaindef(), pg_get_functiondef()

18 years agoAdd:
Bruce Momjian [Sat, 10 Jun 2006 23:17:21 +0000 (23:17 +0000)]
Add:

<   pg_get_tabledef(), pg_get_domaindef(), pg_get_functiondef()
>   pg_get_tabledef(), pg_get_domaindef(), pg_get_functiondef(), and
>   make use of them in pg_dump

18 years agoRepair remarkably-inefficient query for dumping large object comments: it
Tom Lane [Fri, 9 Jun 2006 19:46:09 +0000 (19:46 +0000)]
Repair remarkably-inefficient query for dumping large object comments: it
was invoking obj_description() for each large object chunk, instead of once
per large object.  This code is new as of 8.1, which may explain why the
problem hadn't been noticed already.

18 years agoRevert sampling patch for EXPLAIN ANALYZE; it turns out to be too unreliable
Tom Lane [Fri, 9 Jun 2006 19:30:56 +0000 (19:30 +0000)]
Revert sampling patch for EXPLAIN ANALYZE; it turns out to be too unreliable
because node timing is much less predictable than the patch expects.  I kept
the API change for InstrStopNode, however.

18 years agoCleanups:
Bruce Momjian [Fri, 9 Jun 2006 18:41:57 +0000 (18:41 +0000)]
Cleanups:

<  * Allow a database in tablespace t1 with tables created in
>  o Allow a database in tablespace t1 with tables created in
125c125
<  * Allow reporting of which objects are in which tablespaces
>  o Allow reporting of which objects are in which tablespaces
593c593
<  * Allow GRANT/REVOKE permissions to be inherited by objects based on
>  o Allow GRANT/REVOKE permissions to be inherited by objects based on
596c596
<  * Allow SERIAL sequences to inherit permissions from the base table?
>  o Allow SERIAL sequences to inherit permissions from the base table?

18 years agoCleanup:
Bruce Momjian [Fri, 9 Jun 2006 18:12:29 +0000 (18:12 +0000)]
Cleanup:

< * -%Allow pooled connections to list all prepared statements
> * -Allow pooled connections to list all prepared statements

18 years agoNow ispell dictionary can eat dictionaries in MySpell format,
Teodor Sigaev [Fri, 9 Jun 2006 13:25:59 +0000 (13:25 +0000)]
Now ispell dictionary can eat dictionaries in MySpell format,
used by OpenOffice. Dictionaries are placed at
http://lingucomponent.openoffice.org/spell_dic.html
Dictionary automatically recognizes format of files.

Warning. MySpell's format has limitation with compound
word support: it's impossible to mark affix as
compound-only affix. So for norwegian, german etc
languages it's recommended to use original ispell format.
For that reason I don't want to remove my2ispell
scripts, it's has workaround at least for norwegian language.

18 years agoAdd URL.
Bruce Momjian [Fri, 9 Jun 2006 02:11:10 +0000 (02:11 +0000)]
Add URL.

<    the insert.
>    the insert.
>    http://archives.postgresql.org/pgsql-patches/2005-07/msg00568.php

18 years agoUpdate:
Bruce Momjian [Fri, 9 Jun 2006 01:02:22 +0000 (01:02 +0000)]
Update:

< * Add SQL99 WITH RECURSIVE (hierarchical) queries to SELECT
> * Add SQL:2003 WITH RECURSIVE (hierarchical) queries to SELECT

18 years agoRemove:
Bruce Momjian [Fri, 9 Jun 2006 01:00:36 +0000 (01:00 +0000)]
Remove:

< * Rename some /contrib modules from pg* to pg_*

18 years agoFix bootstrap.c so that database startup process and bgwriter properly release
Tom Lane [Thu, 8 Jun 2006 23:55:48 +0000 (23:55 +0000)]
Fix bootstrap.c so that database startup process and bgwriter properly release
LWLocks during a panic exit.  This avoids the possible self-deadlock pointed
out by Qingqing Zhou.  Also, I noted that an error during LoadFreeSpaceMap()
or BuildFlatFiles() would result in exit(0) which would leave the postmaster
thinking all is well.  Added a critical section to ensure such errors don't
allow startup to proceed.

Backpatched to 8.1.  The 8.0 code is a bit different and I'm not sure if the
problem exists there; given we've not seen this reported from the field, I'm
going to be conservative about backpatching any further.