OSDN Git Service

pg-rex/syncrep.git
19 years agoCome to think of it, functions in FROM have the same syntactic restriction
Tom Lane [Thu, 30 Sep 2004 00:24:27 +0000 (00:24 +0000)]
Come to think of it, functions in FROM have the same syntactic restriction
as CREATE INDEX did, and can be fixed the same way, for another small
improvement in usability and reduction in grammar size.

19 years agoSplit out everything that looks like a function call from c_expr into
Tom Lane [Wed, 29 Sep 2004 23:39:20 +0000 (23:39 +0000)]
Split out everything that looks like a function call from c_expr into
a separate production func_expr.  This allows us to accept all these
variants in the backwards-compatible syntax for creating a functional
index; which beats documenting exactly which things work and which don't.
Interestingly, it also seems to make the generated state machine a little
bit smaller.

19 years agoAdd Farsi version of FAQ.
Bruce Momjian [Wed, 29 Sep 2004 16:23:16 +0000 (16:23 +0000)]
Add Farsi version of FAQ.

Mahmoud Taghizadeh

19 years agoMinor adjustments to improve the accuracy of our computation of required
Tom Lane [Wed, 29 Sep 2004 15:15:56 +0000 (15:15 +0000)]
Minor adjustments to improve the accuracy of our computation of required
shared memory size.

19 years agoMinor documentation improvement.
Neil Conway [Wed, 29 Sep 2004 06:27:11 +0000 (06:27 +0000)]
Minor documentation improvement.

19 years agoAdjust obsolete comment about memory needs for lock table.
Tom Lane [Tue, 28 Sep 2004 21:19:30 +0000 (21:19 +0000)]
Adjust obsolete comment about memory needs for lock table.

19 years agoArrange to preallocate all required space for the buffer and FSM hash
Tom Lane [Tue, 28 Sep 2004 20:46:37 +0000 (20:46 +0000)]
Arrange to preallocate all required space for the buffer and FSM hash
tables in shared memory.  This ensures that overflow of the lock table
creates no long-lasting problems.  Per discussion with Merlin Moncure.

19 years agoCode review for recent dbsize changes. Fix some thinkos, enforce coding
Tom Lane [Tue, 28 Sep 2004 19:35:43 +0000 (19:35 +0000)]
Code review for recent dbsize changes.  Fix some thinkos, enforce coding
style and message style standards, improve documentation.

19 years ago An include path got missed out of the patch - see the attached fix.
Bruce Momjian [Tue, 28 Sep 2004 16:17:26 +0000 (16:17 +0000)]
 An include path got missed out of the patch - see the attached fix.
This also adds debug build support to src/bin/psql/win32.mak.

Dave Page

19 years agoFix typo in docs.
Neil Conway [Tue, 28 Sep 2004 10:18:22 +0000 (10:18 +0000)]
Fix typo in docs.

19 years agoRemove duplicate PQclear(res) operations leading to double free() and
Tom Lane [Tue, 28 Sep 2004 00:49:04 +0000 (00:49 +0000)]
Remove duplicate PQclear(res) operations leading to double free() and
subsequent core dump.  It looks like at one time DBLINK_RES_ERROR_AS_NOTICE
didn't include a PQclear, but now it does and so these other ones are
duplicate.

19 years agoRevert patch that removed BUFSIZ usage. The memory has to hold the
Bruce Momjian [Tue, 28 Sep 2004 00:07:01 +0000 (00:07 +0000)]
Revert patch that removed BUFSIZ usage.  The memory has to hold the
structures plus pointers used by the structure.

19 years agoSmall WIN32_CLIENT_ONLY cleanup for new build patch.
Bruce Momjian [Mon, 27 Sep 2004 23:58:09 +0000 (23:58 +0000)]
Small WIN32_CLIENT_ONLY cleanup for new build patch.

19 years agoRemove use of large BUFSIZ for buffers and use the proper struct sizes.
Bruce Momjian [Mon, 27 Sep 2004 23:39:14 +0000 (23:39 +0000)]
Remove use of large BUFSIZ for buffers and use the proper struct sizes.
This greatly helps threaded libpq programs.

19 years agoAdd new macro as shorthand for MS VC and Borland C++:
Bruce Momjian [Mon, 27 Sep 2004 23:24:45 +0000 (23:24 +0000)]
Add new macro as shorthand for MS VC and Borland C++:

+ #if   defined(_MSC_VER) || defined(__BORLANDC__)
+ #define       WIN32_CLIENT_ONLY
+ #endif

19 years agoMore MS VC and BCC psql compile cleanups.
Bruce Momjian [Mon, 27 Sep 2004 22:20:40 +0000 (22:20 +0000)]
More MS VC and BCC psql compile cleanups.

19 years agoMore Win32 cleanups for Dave Page.
Bruce Momjian [Mon, 27 Sep 2004 22:11:23 +0000 (22:11 +0000)]
More Win32 cleanups for Dave Page.

19 years agoMake adjustment for MS VC and BCC compile of psql, from Dave Page.
Bruce Momjian [Mon, 27 Sep 2004 22:06:41 +0000 (22:06 +0000)]
Make adjustment for MS VC and BCC compile of psql, from Dave Page.

19 years agoImprove MS VC builds for psql by handlling flex properly and prevent
Bruce Momjian [Mon, 27 Sep 2004 20:37:20 +0000 (20:37 +0000)]
Improve MS VC builds for psql by handlling flex properly and prevent
rename prototype conflict.

19 years agoTranslation update
Peter Eisentraut [Mon, 27 Sep 2004 20:28:15 +0000 (20:28 +0000)]
Translation update

19 years agoTranslation updates
Peter Eisentraut [Mon, 27 Sep 2004 20:26:03 +0000 (20:26 +0000)]
Translation updates

19 years agoTranslation update
Peter Eisentraut [Mon, 27 Sep 2004 20:23:07 +0000 (20:23 +0000)]
Translation update

19 years agoNew translations
Peter Eisentraut [Mon, 27 Sep 2004 20:21:24 +0000 (20:21 +0000)]
New translations

19 years agoUpdate docs for Borland CC build.
Bruce Momjian [Mon, 27 Sep 2004 19:43:17 +0000 (19:43 +0000)]
Update docs for Borland CC build.

19 years agoRemove inclusion of windows.h now that it is included in c.h, per idea
Bruce Momjian [Mon, 27 Sep 2004 19:16:03 +0000 (19:16 +0000)]
Remove inclusion of windows.h now that it is included in c.h, per idea
from Peter.

19 years agoAdd:
Bruce Momjian [Mon, 27 Sep 2004 14:17:51 +0000 (14:17 +0000)]
Add:

>
> * Consider automatic caching of queries at various levels:
>  o Parsed query tree
>  o Query execute plan
>  o Query results

19 years agoRemove completed items:
Bruce Momjian [Mon, 27 Sep 2004 14:15:49 +0000 (14:15 +0000)]
Remove completed items:

< Last updated: Sat Sep 25 21:33:44 EDT 2004
> Last updated: Mon Sep 27 10:15:31 EDT 2004
13,19d12
< Remove items before beta?
<
< Urgent
< ======
<
< * -Point-in-time data recovery using backup and write-ahead log
< * -Create native Win32 port
25d17
< * -Incremental backups
28d19
< * -Allow configuration files to be specified in a different directory
32,34d22
< * -Add the concept of dataspaces/tablespaces (Gavin)
< * -Allow logging of only data definition(DDL), or DDL and modification statements
< * -Allow log lines to include session-level information, like database and user
54d41
< * -Allow external interfaces to extend the GUC variable set
126d112
< * -Change factorial to return a numeric (Gavin)
141,142d126
< * -Allow pg_dump to dump sequences using NO_MAXVALUE and NO_MINVALUE
< * -Prevent whole-row references from leaking memory, e.g. SELECT COUNT(tab.*)
147d130
< * -Make LENGTH() of CHAR() not count trailing spaces
150d132
< * -Support composite types as table columns
198,200d179
< * -Prevent mismatch of frontend/backend encodings from converting bytea
<   data from being interpreted as encoded strings
< * -Fix upper()/lower() to work for multibyte encodings
217d195
< * -Order duplicate index entries on creation by ctid for faster heap lookups
242d219
< * -Be smarter about insertion of already-ordered data into btree index
265,266d241
< * -Allow SELECT * FROM tab WHERE int2col = 4 to use int2col index, int8,
<   float4, numeric/decimal too
282d256
< * -Allow command blocks to ignore certain types of errors
302,303d275
< * -Allow savepoints / nested transactions (Alvaro)
< * -Use nested transactions to prevent syntax errors from aborting a transaction
306,307d277
< * -Prevent COMMENT ON DATABASE from using a database name
< * -Add NO WAIT LOCKs
325,326d294
< * -COMMENT ON [ CAST | CONVERSION | OPERATOR CLASS | LARGE OBJECT | LANGUAGE ]
<   (Christopher)
334d301
< * -Allow more ISOLATION LEVELS to be accepted
347d313
< * -Add GUC setting to make created tables default to WITHOUT OIDS
365,369d330
<  o -ALTER TABLE ADD COLUMN does not honor DEFAULT and non-CHECK CONSTRAINT
<  o -ALTER TABLE ADD COLUMN column DEFAULT should fill existing
<    rows with DEFAULT value
<  o -ALTER TABLE ADD COLUMN column SERIAL doesn't create sequence because
<           of the item above
371,373d331
<  o -Allow ALTER TABLE to modify column lengths and change to binary
<    compatible types
<  o -Add ALTER DATABASE ... OWNER TO newowner
390,393d347
<  o -Add ALTER DOMAIN, AGGREGATE, CONVERSION ... OWNER TO
<  o -Add ALTER SEQUENCE ... OWNER TO
<  o -Add ALTER INDEX that works just like ALTER TABLE already does
<    on an index
404d357
<  o -Add ALTER TABLE table SET WITHOUT CLUSTER (Christopher)
411d363
<  o -Allow dump/load of CSV format
464d415
<  o -Allow Java server-side programming
473d423
<  o -Allow PL/pgSQL parameters to be specified by name and type during definition
493,495d442
< * -Allow psql \du to show users, and add \dg for groups
< * -Have psql \dn show only visible temp schemas using current_schemas()
< * -Have psql '\i ~/<tab><tab>' actually load files it displays from home dir
509,511d455
<  o -Allow pg_dump to dump CREATE CONVERSION (Christopher)
<  o -Make pg_restore continue after errors, so it acts more like pg_dump
<    scripts
545d488
<  o -Implement SET DESCRIPTOR
592,596d534
< * -Have AFTER triggers execute after the appropriate SQL statement in a
<   function, not at the end of the function
< * -Print table names with constraint names in error messages, or make constraint
<   names unique within a schema
< * -Issue NOTICE if foreign key data requires costly test to match primary key
614,615d551
< * -Use dependency information to dump data in proper order
< * -Have pg_dump -c clear the database using dependency information
694,695d629
< * -Provide automatic running of vacuum in the background in backend
<   rather than in /contrib (Matthew)
828d761
< * -Use background process to write dirty shared buffers to disk
843d775
< * -Change representation of whole-tuple parameters to functions
850,852d781
< * -Add checks for fclose() failure (Tom)
< * -Change CVS ID to PostgreSQL
< * -Exit postmaster if postgresql.conf can not be opened

19 years agoSynced parser.
Michael Meskes [Mon, 27 Sep 2004 09:59:17 +0000 (09:59 +0000)]
Synced parser.
Removed Oracle transaction syntax to fix shift/reduce error.

19 years agoAddition to documentation about cvsup. From Andrew Dunstan, minor SGML
Neil Conway [Mon, 27 Sep 2004 05:54:58 +0000 (05:54 +0000)]
Addition to documentation about cvsup. From Andrew Dunstan, minor SGML
tweak by Neil Conway.

19 years agoRemove references to the ODBC driver from the main source tree. From Kris
Neil Conway [Mon, 27 Sep 2004 04:18:28 +0000 (04:18 +0000)]
Remove references to the ODBC driver from the main source tree. From Kris
Jurka.

19 years agoA few minor list-related cleanups:
Neil Conway [Mon, 27 Sep 2004 04:12:03 +0000 (04:12 +0000)]
A few minor list-related cleanups:

(1) Replace while loop with the new forboth() construct in
parser/analyze.c

(2) Replace lcons() with lappend() in SearchCatCacheList(). Since these
now have the same performance, there is no reason to prefer lcons() in
this case, and using lappend() leads to cleaner code.

(3) Improve the name of the second parameter to for_each_cell()

19 years agoCode cleanup: don't bother casting the argument to pfree() to void *
Neil Conway [Mon, 27 Sep 2004 04:01:23 +0000 (04:01 +0000)]
Code cleanup: don't bother casting the argument to pfree() to void *
from another pointer type. Per C89, this is unnecessary, and it is common
practice throughout the rest of the tree anyway.

19 years agoupdate for beta3, and update Copyright date to 2004
PostgreSQL Daemon [Mon, 27 Sep 2004 02:17:14 +0000 (02:17 +0000)]
update for beta3, and update Copyright date to 2004

19 years agoRewrite ReadArrayStr() to avoid O(N^2) behavior on large strings,
Tom Lane [Mon, 27 Sep 2004 01:39:02 +0000 (01:39 +0000)]
Rewrite ReadArrayStr() to avoid O(N^2) behavior on large strings,
and hopefully improve code clarity while at it.  One intentional
semantics change: a backslashed space will not be treated as removable
trailing whitespace, as the prior coding would do.  ISTM that if it
wouldn't be considered removable leading whitespace, it shouldn't be
stripped at the end either.

19 years agoFix misstatement in docs: CREATE TABLE AS is now part of the standard.
Neil Conway [Sun, 26 Sep 2004 23:48:07 +0000 (23:48 +0000)]
Fix misstatement in docs: CREATE TABLE AS is now part of the standard.

19 years agoFix multiple breakages in our support for SSL certificates.
Tom Lane [Sun, 26 Sep 2004 22:51:49 +0000 (22:51 +0000)]
Fix multiple breakages in our support for SSL certificates.

19 years agoUse ULL not LL in UINT64CONST.
Tom Lane [Sun, 26 Sep 2004 15:13:42 +0000 (15:13 +0000)]
Use ULL not LL in UINT64CONST.

19 years agoHere is a patch that adds the version info from libpq.rc to the DLL
Bruce Momjian [Sun, 26 Sep 2004 02:14:47 +0000 (02:14 +0000)]
Here is a patch that adds the version info from libpq.rc to the DLL
build in mingw. The MSVC build already did this, but it was not linked
into the mingw one.

This is not the same as the versioninfo patch that's in the queue.
Please apply this one before beta-3 if at all possible.

Magnus Hagander

19 years agoUse <> not "" for include of pthread.h.
Bruce Momjian [Sun, 26 Sep 2004 01:40:55 +0000 (01:40 +0000)]
Use <> not "" for include of pthread.h.

19 years agoRefresh for recent changes.
Bruce Momjian [Sun, 26 Sep 2004 01:33:55 +0000 (01:33 +0000)]
Refresh for recent changes.

19 years agoRepair bug that would allow libpq to think a command had succeeded when
Tom Lane [Sun, 26 Sep 2004 00:26:28 +0000 (00:26 +0000)]
Repair bug that would allow libpq to think a command had succeeded when
it really hadn't, due to double output of previous command's response.
Fix prevents recursive entry to libpq routines.  Found by Jan Wieck.

19 years agoPersuade plpython to build on OS X.
Tom Lane [Fri, 24 Sep 2004 20:08:42 +0000 (20:08 +0000)]
Persuade plpython to build on OS X.

19 years agoGUC assign hooks that look at external state in deciding whether a
Tom Lane [Fri, 24 Sep 2004 19:43:03 +0000 (19:43 +0000)]
GUC assign hooks that look at external state in deciding whether a
setting is valid must ignore that state and permit the assignment anyway
when source is PGC_S_OVERRIDE.  Otherwise they may disallow a rollback
at transaction abort, which is The Wrong Thing.  Per example from
Michael Fuhr 12-Sep-04.

19 years agoFix slightly misleading description of PERFORM syntax.
Tom Lane [Fri, 24 Sep 2004 18:54:14 +0000 (18:54 +0000)]
Fix slightly misleading description of PERFORM syntax.

19 years agoCleanup some ancient Ultrix / Alpha code in main() that is intended to
Neil Conway [Fri, 24 Sep 2004 06:29:07 +0000 (06:29 +0000)]
Cleanup some ancient Ultrix / Alpha code in main() that is intended to
modify how unaligned memory accesses are dealt with. Document that this
is really what is going on, and merge the NOFIXADE and NOPRINTADE code
paths.

19 years agoshmdt takes a void* parameter, per Kris Jurka.
Tom Lane [Fri, 24 Sep 2004 05:27:35 +0000 (05:27 +0000)]
shmdt takes a void* parameter, per Kris Jurka.

19 years agoFix gratuitous weirdness in function prototype, per Kris Jurka.
Tom Lane [Fri, 24 Sep 2004 05:16:35 +0000 (05:16 +0000)]
Fix gratuitous weirdness in function prototype, per Kris Jurka.

19 years agoOkay, I'm tired of reading gripes from OS X users ... add a regression
Tom Lane [Fri, 24 Sep 2004 04:58:46 +0000 (04:58 +0000)]
Okay, I'm tired of reading gripes from OS X users ... add a regression
variant file to cover OS X 10.3's bizarre minus-zero behavior.

19 years agoGet rid of /*-inside-comment warning. My fault.
Tom Lane [Fri, 24 Sep 2004 01:48:43 +0000 (01:48 +0000)]
Get rid of /*-inside-comment warning.  My fault.

19 years agoExecProcAppend() wasn't called ExecAppend() because the latter name was
Neil Conway [Fri, 24 Sep 2004 01:36:37 +0000 (01:36 +0000)]
ExecProcAppend() wasn't called ExecAppend() because the latter name was
formerly used in execMain. Since that is no longer the case, this patch
renames ExecProcAppend() to ExecAppend() for the sake of consistency.

19 years agoMinor improvements to the release notes.
Neil Conway [Fri, 24 Sep 2004 01:31:32 +0000 (01:31 +0000)]
Minor improvements to the release notes.

19 years agoFix TAS assembly stuff for Solaris/386. (I'm not in a position to
Tom Lane [Fri, 24 Sep 2004 00:21:32 +0000 (00:21 +0000)]
Fix TAS assembly stuff for Solaris/386.  (I'm not in a position to
actually test this, but it couldn't be broken any worse than it was...)

19 years agoImprove description of Execute message behavior, per Oliver Jowett.
Tom Lane [Thu, 23 Sep 2004 23:35:07 +0000 (23:35 +0000)]
Improve description of Execute message behavior, per Oliver Jowett.

19 years agoFix ALTER TABLE OWNER to adjust the ownership of dependent sequences,
Tom Lane [Thu, 23 Sep 2004 23:20:24 +0000 (23:20 +0000)]
Fix ALTER TABLE OWNER to adjust the ownership of dependent sequences,
not only indexes.  Alvaro Herrera, with some kibitzing by Tom Lane.

19 years agoIf we're going to print unrecognized result codes from SSL_get_error
Tom Lane [Thu, 23 Sep 2004 20:27:50 +0000 (20:27 +0000)]
If we're going to print unrecognized result codes from SSL_get_error
in open_client_SSL, surely we should do it everywhere.  Also make
message formatting conform to style guide.

19 years agoThis patch attempts to outline the supported level of SSL within libpq.
Bruce Momjian [Thu, 23 Sep 2004 13:31:09 +0000 (13:31 +0000)]
This patch attempts to outline the supported level of SSL within libpq.
I haven't mentioned any of
~/.postgresql/{root.crt,postgresql.crt,postresql.key} even though they
are checked for in the code, since they do not appear to be supported. I
base this on discussions in pgsql-hackers.

Dominic Mitchell

19 years agoThis patch logs the error code in the default case, so that the user
Bruce Momjian [Thu, 23 Sep 2004 13:20:45 +0000 (13:20 +0000)]
This patch logs the error code in the default case, so that the user
stands a chance of looking it up.  "Unrecognised error" is always
disheartening.  :-)

Dominic Mitchell

19 years agoThis patch attempts to note the use of the root.crt file in the server.
Bruce Momjian [Thu, 23 Sep 2004 13:16:02 +0000 (13:16 +0000)]
This patch attempts to note the use of the root.crt file in the server.
Given that PostgreSQL will output a message complaining about it's
absence if you're using SSL mode, I feel it's important that it gets a
mention in the documentation at some point.

Dominic Mitchell

19 years agoUpdate CREATE TABLE AS docs to reflect the fact that CREATE TABLE AS was
Neil Conway [Thu, 23 Sep 2004 03:43:57 +0000 (03:43 +0000)]
Update CREATE TABLE AS docs to reflect the fact that CREATE TABLE AS was
added to the SQL:2003 standard.

19 years agoMinor tweak to pg_controldata usage information, per suggestion from
Neil Conway [Thu, 23 Sep 2004 00:47:44 +0000 (00:47 +0000)]
Minor tweak to pg_controldata usage information, per suggestion from
Dennis Björklund. Also, remove some redundant #include directives.

19 years agoUpdate installation docs for PL/Python to note that distutils is now
Neil Conway [Thu, 23 Sep 2004 00:30:13 +0000 (00:30 +0000)]
Update installation docs for PL/Python to note that distutils is now
required. Original patch from James William Pye, editorializing by
Neil Conway.

19 years agoArrange for hash join to skip scanning the outer relation if it detects
Tom Lane [Wed, 22 Sep 2004 19:13:52 +0000 (19:13 +0000)]
Arrange for hash join to skip scanning the outer relation if it detects
that the inner one is completely empty.  Per recent discussion.  Also some
cosmetic cleanups in nearby code.

19 years agoIssue a CHECKPOINT just after creating the regression database. Without
Tom Lane [Wed, 22 Sep 2004 19:11:19 +0000 (19:11 +0000)]
Issue a CHECKPOINT just after creating the regression database.  Without
this, it's hard to debug core-dump test failures, because WAL replay will
enthusiastically remove the core file (along with the rest of the
regression database directory).  Per recent discussion, not to mention
bitter experience.

19 years agoAdjust ExecMakeTableFunctionResult to produce a single all-nulls row
Tom Lane [Wed, 22 Sep 2004 17:41:51 +0000 (17:41 +0000)]
Adjust ExecMakeTableFunctionResult to produce a single all-nulls row
when a function that returns a single tuple (not a setof tuple) returns
NULL.  This seems to be the most consistent behavior.  It would have
taken a bit less code to make it return an empty table (zero rows) but
ISTM a non-SETOF function ought always return exactly one row.  Per
bug report from Ivan-Sun1.

19 years agoMinor cleanup of libpq/LO examples: fix some memory leaks, update a comment
Neil Conway [Wed, 22 Sep 2004 05:12:45 +0000 (05:12 +0000)]
Minor cleanup of libpq/LO examples: fix some memory leaks, update a comment
or two.

19 years agoSome improvements for the tab-completion of psql. This should
Neil Conway [Wed, 22 Sep 2004 04:25:16 +0000 (04:25 +0000)]
Some improvements for the tab-completion of psql. This should
address all of the items in the todo list and adds some new
things as well. Specifically:

* Add support for ALTER SEQUENCE ...
* Add "RENAME TO" for ALTER TRIGGER xx ON yy
* Pick proper table for ALTER TRIGGER xx ON ...
* Support for ALTER USER xxx ...
* Fix ALTER GROUP xxx DROP ...
* Fix ALTER DOMAIN xxx DROP ...
* Remove "OWNER TO" from ALTER DOMAIN xx DROP ...
* Fix ALTER DOMAIN xx SET DEFAULT ..
* Prevent ALTER INDEX xxx SET TABLESPACE from using "TO"
* Support for ALTER LANGUAGE xxx (RENAME TO)
* More support for ALTER TABLE xxx ALTER COLUMN xxx ...
* More support for COPY

Greg Sabino Mullane

19 years agoThis patch from Alvaro Herrera adds transaction ID to the list of
Neil Conway [Wed, 22 Sep 2004 03:55:27 +0000 (03:55 +0000)]
This patch from Alvaro Herrera adds transaction ID to the list of
log_line_prefix escapes. The escape sequence used for this is %x.
%x previously meant "postmaster et al. stop here" -- this has been
renamed to %q.

19 years agoClarify TODO item: we ought to implement updatable views per SQL99, not
Neil Conway [Tue, 21 Sep 2004 05:38:54 +0000 (05:38 +0000)]
Clarify TODO item: we ought to implement updatable views per SQL99, not
SQL92 (the former defines a much more ambitious subset of views that
need to be updatable).

19 years agoRotate on time boundaries that are sensible per local time rather than GMT.
Tom Lane [Tue, 21 Sep 2004 00:21:25 +0000 (00:21 +0000)]
Rotate on time boundaries that are sensible per local time rather than GMT.
Also, avoid truncating the file we just wrote into, which might otherwise
easily happen at DST boundaries.  Ed L. and Tom Lane.

19 years agoChange some of the existing plpgsql regression test cases so that they
Tom Lane [Mon, 20 Sep 2004 23:00:12 +0000 (23:00 +0000)]
Change some of the existing plpgsql regression test cases so that they
exercise dollar quoting and named function parameters.  AFAICS we had
no tests of either feature before.

19 years agoSome editorializing on the docs for the dollar-quoting feature: fix
Tom Lane [Mon, 20 Sep 2004 22:48:29 +0000 (22:48 +0000)]
Some editorializing on the docs for the dollar-quoting feature: fix
grammar, don't drop discussions into the middle of unrelated discussions,
etc.

19 years agoFix some shortcomings in psql's autocommit-off mode concerning detection
Tom Lane [Mon, 20 Sep 2004 18:51:19 +0000 (18:51 +0000)]
Fix some shortcomings in psql's autocommit-off mode concerning detection
of commands for which a transaction block should not be forced.  Recognize
VACUUM and other PreventTransactionChain commands; handle nested /* .. */
comments correctly; handle multibyte encodings correctly.
Michael Paesold with some kibitzing from Tom Lane.

19 years agoDocumentation improvements, per Josh Berkus.
Tom Lane [Mon, 20 Sep 2004 17:53:59 +0000 (17:53 +0000)]
Documentation improvements, per Josh Berkus.

19 years agoTranslation update
Peter Eisentraut [Mon, 20 Sep 2004 08:15:29 +0000 (08:15 +0000)]
Translation update

19 years agoTranslation updates
Peter Eisentraut [Mon, 20 Sep 2004 07:57:14 +0000 (07:57 +0000)]
Translation updates

19 years agoTranslation updates
Peter Eisentraut [Mon, 20 Sep 2004 07:49:54 +0000 (07:49 +0000)]
Translation updates

19 years agoTranslation updates
Peter Eisentraut [Mon, 20 Sep 2004 07:44:42 +0000 (07:44 +0000)]
Translation updates

19 years agoNow that I look, table 8-1 has some other marginal misstatements in it.
Tom Lane [Mon, 20 Sep 2004 04:19:50 +0000 (04:19 +0000)]
Now that I look, table 8-1 has some other marginal misstatements in it.
If we're going to put brackets around optional precision specs in some
entries, we'd better do it in all.

19 years agoMinor documentation cleanup and improvement.
Neil Conway [Mon, 20 Sep 2004 00:04:19 +0000 (00:04 +0000)]
Minor documentation cleanup and improvement.

19 years agoAdd defenses against plpython functions being declared to take or return
Tom Lane [Sun, 19 Sep 2004 23:38:21 +0000 (23:38 +0000)]
Add defenses against plpython functions being declared to take or return
pseudotypes.  Not sure why I neglected to add these checks at the same
time I added them to the other PLs, but it seems I did.

19 years agoFix estimate_num_groups to be able to use expression-index statistics
Tom Lane [Sat, 18 Sep 2004 19:39:50 +0000 (19:39 +0000)]
Fix estimate_num_groups to be able to use expression-index statistics
when there is an expressional index matching a GROUP BY item.

19 years agoPut the brackets in the right places in timestamp entries in table 8-1.
Tom Lane [Sat, 18 Sep 2004 15:28:03 +0000 (15:28 +0000)]
Put the brackets in the right places in timestamp entries in table 8-1.
Spotted by Josh Purinton.

19 years agoMove comment at end of line to a separate line so trailing tabs don't
Peter Eisentraut [Sat, 18 Sep 2004 13:28:54 +0000 (13:28 +0000)]
Move comment at end of line to a separate line so trailing tabs don't
become part of the make variable value.

19 years agoFix memory leak in tokenize_file, per report from Vadim Passynkov.
Tom Lane [Sat, 18 Sep 2004 01:22:58 +0000 (01:22 +0000)]
Fix memory leak in tokenize_file, per report from Vadim Passynkov.

19 years agoImprove documentation of log rotation options, per Ed L.
Tom Lane [Fri, 17 Sep 2004 22:40:46 +0000 (22:40 +0000)]
Improve documentation of log rotation options, per Ed L.

19 years agoAdd support for GNU/Hurd and GNU/*BSD. For our purposes, they behave just
Peter Eisentraut [Fri, 17 Sep 2004 22:31:59 +0000 (22:31 +0000)]
Add support for GNU/Hurd and GNU/*BSD.  For our purposes, they behave just
like Linux; we just need to recognize the system types.

19 years agoNew config.guess and config.sub
Peter Eisentraut [Fri, 17 Sep 2004 22:09:21 +0000 (22:09 +0000)]
New config.guess and config.sub

19 years agoAllow WIN1250 as server encoding.
Peter Eisentraut [Fri, 17 Sep 2004 21:59:57 +0000 (21:59 +0000)]
Allow WIN1250 as server encoding.

19 years agoHere is a patch bringing oid2name into the 21st century.
Tom Lane [Fri, 17 Sep 2004 21:14:19 +0000 (21:14 +0000)]
Here is a patch bringing oid2name into the 21st century.

Alvaro Herrera

19 years agoHashed LEFT JOIN would miss outer tuples with no inner match if the join
Tom Lane [Fri, 17 Sep 2004 18:28:53 +0000 (18:28 +0000)]
Hashed LEFT JOIN would miss outer tuples with no inner match if the join
was large enough to be batched and the tuples fell into a batch where
there were no inner tuples at all.  Thanks to Xiaoyu Wang for finding a
test case that exposed this long-standing bug.

19 years agoNow that xmax and cmin are distinct fields again, we should zero xmax when
Tom Lane [Fri, 17 Sep 2004 18:09:55 +0000 (18:09 +0000)]
Now that xmax and cmin are distinct fields again, we should zero xmax when
creating a new tuple.  This is just for debugging sanity, though, since
nothing should be paying any attention to xmax when the HEAP_XMAX_INVALID
bit is set.

19 years agoHyperlink a reference to DROP CAST in the CREATE CAST reference page.
Neil Conway [Fri, 17 Sep 2004 02:06:33 +0000 (02:06 +0000)]
Hyperlink a reference to DROP CAST in the CREATE CAST reference page.

19 years agoMake discovery of python_configdir architecture independent. Solution
Joe Conway [Thu, 16 Sep 2004 23:30:30 +0000 (23:30 +0000)]
Make discovery of python_configdir architecture independent. Solution
from James William Pye.

19 years agoFix oversight: there's no reason for PG_TRY to use sigsetjmp(buf,1)
Tom Lane [Thu, 16 Sep 2004 21:59:17 +0000 (21:59 +0000)]
Fix oversight: there's no reason for PG_TRY to use sigsetjmp(buf,1)
since we don't change the signal mask during normal backend operations.
Use sigsetjmp(buf,0) to avoid many unnecessary kernel calls.

19 years agoRemove contrib/pg_logger, per recent discussion.
Tom Lane [Thu, 16 Sep 2004 21:20:20 +0000 (21:20 +0000)]
Remove contrib/pg_logger, per recent discussion.

19 years agoRemove erroneous Assert, per example from Kris Jurka.
Tom Lane [Thu, 16 Sep 2004 21:08:12 +0000 (21:08 +0000)]
Remove erroneous Assert, per example from Kris Jurka.

19 years agoAdd some marginal tweaks to eliminate memory leakages associated with
Tom Lane [Thu, 16 Sep 2004 20:17:49 +0000 (20:17 +0000)]
Add some marginal tweaks to eliminate memory leakages associated with
subtransactions.  Trivial subxacts (such as a plpgsql exception block
containing no database access) now demonstrably leak zero bytes.

19 years agoRecentXmin is too recent to use as the cutoff point for accessing
Tom Lane [Thu, 16 Sep 2004 18:35:23 +0000 (18:35 +0000)]
RecentXmin is too recent to use as the cutoff point for accessing
pg_subtrans --- what we need is the oldest xmin of any snapshot in use
in the current top transaction.  Introduce a new variable TransactionXmin
to play this role.  Fixes intermittent regression failure reported by
Neil Conway.

19 years agoRestructure subtransaction handling to reduce resource consumption,
Tom Lane [Thu, 16 Sep 2004 16:58:44 +0000 (16:58 +0000)]
Restructure subtransaction handling to reduce resource consumption,
as per recent discussions.  Invent SubTransactionIds that are managed like
CommandIds (ie, counter is reset at start of each top transaction), and
use these instead of TransactionIds to keep track of subtransaction status
in those modules that need it.  This means that a subtransaction does not
need an XID unless it actually inserts/modifies rows in the database.
Accordingly, don't assign it an XID nor take a lock on the XID until it
tries to do that.  This saves a lot of overhead for subtransactions that
are only used for error recovery (eg plpgsql exceptions).  Also, arrange
to release a subtransaction's XID lock as soon as the subtransaction
exits, in both the commit and abort cases.  This avoids holding many
unique locks after a long series of subtransactions.  The price is some
additional overhead in XactLockTableWait, but that seems acceptable.
Finally, restructure the state machine in xact.c to have a more orthogonal
set of states for subtransactions.

19 years agoMinor doc tweak: mention that function names can be optionally schema-
Neil Conway [Thu, 16 Sep 2004 04:16:08 +0000 (04:16 +0000)]
Minor doc tweak: mention that function names can be optionally schema-
qualified.