OSDN Git Service

pg-rex/syncrep.git
22 years agoAdd a directory to save the changes until 7.3-tree is branched.
Hiroshi Inoue [Fri, 11 Jan 2002 02:50:01 +0000 (02:50 +0000)]
Add a directory to save the changes until 7.3-tree is branched.

22 years agoMore improvements using pg_resetxlog. still disabled.
Bruce Momjian [Fri, 11 Jan 2002 00:27:42 +0000 (00:27 +0000)]
More improvements using pg_resetxlog.  still disabled.

22 years agoHave pg_resetxlog -n return zero exit status.
Bruce Momjian [Thu, 10 Jan 2002 23:46:13 +0000 (23:46 +0000)]
Have pg_resetxlog -n return zero exit status.

22 years agoUpdate FAQ.
Bruce Momjian [Thu, 10 Jan 2002 23:41:49 +0000 (23:41 +0000)]
Update FAQ.

22 years agoRemove 7.1beta WAL handling from /contrib/pg_resetxlog.
Bruce Momjian [Thu, 10 Jan 2002 23:40:58 +0000 (23:40 +0000)]
Remove 7.1beta WAL handling from /contrib/pg_resetxlog.

22 years agoUpdate FAQ.
Bruce Momjian [Thu, 10 Jan 2002 23:35:20 +0000 (23:35 +0000)]
Update FAQ.

22 years agoUpdate FAQ.
Bruce Momjian [Thu, 10 Jan 2002 23:35:19 +0000 (23:35 +0000)]
Update FAQ.

22 years agoUpdate FAQ.
Bruce Momjian [Thu, 10 Jan 2002 23:34:14 +0000 (23:34 +0000)]
Update FAQ.

22 years agoUpdate FAQ.
Bruce Momjian [Thu, 10 Jan 2002 23:33:35 +0000 (23:33 +0000)]
Update FAQ.

22 years agoUpdate FAQ.
Bruce Momjian [Thu, 10 Jan 2002 23:32:11 +0000 (23:32 +0000)]
Update FAQ.

22 years agoUpdate FAQ.
Bruce Momjian [Thu, 10 Jan 2002 23:07:07 +0000 (23:07 +0000)]
Update FAQ.

22 years agoAdd new -l flag to set checkpoint location for /contrib/pg_resetxlog.
Bruce Momjian [Thu, 10 Jan 2002 20:09:06 +0000 (20:09 +0000)]
Add new -l flag to set checkpoint location for /contrib/pg_resetxlog.

22 years agoTemporary workaround for links within bibliography references fouling up
Peter Eisentraut [Thu, 10 Jan 2002 18:22:44 +0000 (18:22 +0000)]
Temporary workaround for links within bibliography references fouling up
footnote count.

22 years agoPer Tom, do full reset on -x flag.
Bruce Momjian [Thu, 10 Jan 2002 18:08:29 +0000 (18:08 +0000)]
Per Tom, do full reset on -x flag.

22 years agoAdd new -x XID option to /contrib/pg_resetxlog for future pg_upgrade use.
Bruce Momjian [Thu, 10 Jan 2002 17:51:52 +0000 (17:51 +0000)]
Add new -x XID option to /contrib/pg_resetxlog for future pg_upgrade use.

22 years agoInclude sqlca.h automatically.
Michael Meskes [Thu, 10 Jan 2002 10:42:54 +0000 (10:42 +0000)]
Include sqlca.h automatically.

22 years agoMore pg_upgrade improvements. Almost done, except for max transaction
Bruce Momjian [Thu, 10 Jan 2002 04:58:19 +0000 (04:58 +0000)]
More pg_upgrade improvements.  Almost done, except for max transaction
setting.

22 years agoMore improvements; still disabled. (Don't panic.)
Bruce Momjian [Thu, 10 Jan 2002 03:05:48 +0000 (03:05 +0000)]
More improvements;  still disabled.  (Don't panic.)

22 years agoThe result of getopt() should be compared to -1, not EOF, per
Tom Lane [Thu, 10 Jan 2002 01:11:45 +0000 (01:11 +0000)]
The result of getopt() should be compared to -1, not EOF, per
pgsql-hackers discussion of this date.

22 years agoDescribe type casts under the heading of Value Expressions, and explain
Tom Lane [Wed, 9 Jan 2002 23:38:06 +0000 (23:38 +0000)]
Describe type casts under the heading of Value Expressions, and explain
the difference between a run-time type cast and casting a literal string
to a specific type.  Minor editorial work in same area.

22 years agoUpdate with new features. Still disabled.
Bruce Momjian [Wed, 9 Jan 2002 21:50:52 +0000 (21:50 +0000)]
Update with new features.  Still disabled.

22 years agoFix use of 'char' to hold result of getc, per bug report forwarded by
Tom Lane [Wed, 9 Jan 2002 19:13:41 +0000 (19:13 +0000)]
Fix use of 'char' to hold result of getc, per bug report forwarded by
Oliver Elphick.  A few other minor cleanups while at it.

22 years agoFix portability problem (result of getopt is int, not char).
Tom Lane [Wed, 9 Jan 2002 18:21:46 +0000 (18:21 +0000)]
Fix portability problem (result of getopt is int, not char).

22 years agoRemove clog copy.
Bruce Momjian [Wed, 9 Jan 2002 16:08:54 +0000 (16:08 +0000)]
Remove clog copy.

22 years agoMake improvements to pg_upgrade; is still disabled.
Bruce Momjian [Wed, 9 Jan 2002 16:00:46 +0000 (16:00 +0000)]
Make improvements to pg_upgrade; is still disabled.

22 years agoAdd quotes around $bindir.
Bruce Momjian [Wed, 9 Jan 2002 04:56:44 +0000 (04:56 +0000)]
Add quotes around $bindir.

22 years agoMake spelling of operating system names match official version closely.
Peter Eisentraut [Wed, 9 Jan 2002 00:52:38 +0000 (00:52 +0000)]
Make spelling of operating system names match official version closely.
And listing QNX 6 as both supported and unsupported is probably not helpful.

22 years agoFix include paths for case of VPATH build.
Tom Lane [Wed, 9 Jan 2002 00:06:42 +0000 (00:06 +0000)]
Fix include paths for case of VPATH build.

22 years agoAdjust spelling of article titles to match the originals, add some links.
Peter Eisentraut [Tue, 8 Jan 2002 23:50:37 +0000 (23:50 +0000)]
Adjust spelling of article titles to match the originals, add some links.

22 years agomake install failed in VPATH build.
Tom Lane [Tue, 8 Jan 2002 23:40:02 +0000 (23:40 +0000)]
make install failed in VPATH build.

22 years agoFix copy-and-paste mistake exposed by gcc warning.
Tom Lane [Tue, 8 Jan 2002 23:34:47 +0000 (23:34 +0000)]
Fix copy-and-paste mistake exposed by gcc warning.

22 years agoIn a VPATH build, resultmap must be one of the symlinked files, else
Tom Lane [Tue, 8 Jan 2002 21:00:30 +0000 (21:00 +0000)]
In a VPATH build, resultmap must be one of the symlinked files, else
pg_regress doesn't see it and you don't get any port-specific
comparisons.

22 years agoRevert last change (CFLAGS+=-g). Probably was a mistake...
Peter Eisentraut [Tue, 8 Jan 2002 20:41:28 +0000 (20:41 +0000)]
Revert last change (CFLAGS+=-g).  Probably was a mistake...

22 years agoUpdate Lockhart's email address.
Bruce Momjian [Tue, 8 Jan 2002 20:04:31 +0000 (20:04 +0000)]
Update Lockhart's email address.

< * Thomas is Thomas Lockhart <lockhart@alumni.caltech.edu>
---
> * Thomas is Thomas Lockhart <lockhart@fourpalms.org>

22 years agoUpdate Thomas Lockhart's email address to lockhart@fourpalms.org.
Bruce Momjian [Tue, 8 Jan 2002 20:03:58 +0000 (20:03 +0000)]
Update Thomas Lockhart's email address to lockhart@fourpalms.org.

22 years agoRemove shift/reduce conflicts introduced by last change.
Tom Lane [Tue, 8 Jan 2002 19:02:51 +0000 (19:02 +0000)]
Remove shift/reduce conflicts introduced by last change.

22 years agoRepair the GEQO bibliography. It was marked up all wrong. Move some of
Peter Eisentraut [Tue, 8 Jan 2002 18:03:26 +0000 (18:03 +0000)]
Repair the GEQO bibliography.  It was marked up all wrong.  Move some of
the info to the main bibliography.

22 years agoFix lpad() and rpad() to produce correct results in variable-length
Tom Lane [Tue, 8 Jan 2002 17:03:41 +0000 (17:03 +0000)]
Fix lpad() and rpad() to produce correct results in variable-length
multibyte encodings.

22 years agoPoint to main CPAN site, and reword a little.
Peter Eisentraut [Tue, 8 Jan 2002 16:13:41 +0000 (16:13 +0000)]
Point to main CPAN site, and reword a little.

22 years agoMinor wordsmithing.
Tom Lane [Tue, 8 Jan 2002 15:38:42 +0000 (15:38 +0000)]
Minor wordsmithing.

22 years agoMake FreeBSD URL point to the right chapter again.
Peter Eisentraut [Tue, 8 Jan 2002 15:16:16 +0000 (15:16 +0000)]
Make FreeBSD URL point to the right chapter again.

22 years agoFixed array pointers, no longer using void * in arithmetics.
Michael Meskes [Tue, 8 Jan 2002 14:25:06 +0000 (14:25 +0000)]
Fixed array pointers, no longer using void * in arithmetics.

22 years agoEmail address no longer valid.
Bruce Momjian [Tue, 8 Jan 2002 05:45:19 +0000 (05:45 +0000)]
Email address no longer valid.

22 years agoUpdate bad URL's with good ones.
Bruce Momjian [Tue, 8 Jan 2002 05:39:26 +0000 (05:39 +0000)]
Update bad URL's with good ones.

22 years agoUpdate my2pg to version 1.22.
Bruce Momjian [Mon, 7 Jan 2002 22:36:51 +0000 (22:36 +0000)]
Update my2pg to version 1.22.

22 years agoAdd variants of digest() and hmac() that accept text inputs.
Tom Lane [Mon, 7 Jan 2002 18:56:09 +0000 (18:56 +0000)]
Add variants of digest() and hmac() that accept text inputs.
 Marko Kreen says:
This is so obvious that I would like to make it 'official'.

Seems like the theology around bytea<>text casting kept me from
seeing the simple :)

22 years agoTweak LWLock algorithms so that an awakened waiter for a lock is not
Tom Lane [Mon, 7 Jan 2002 16:33:00 +0000 (16:33 +0000)]
Tweak LWLock algorithms so that an awakened waiter for a lock is not
granted the lock when awakened; the signal now only means that the lock
is potentially available.  The waiting process must retry its attempt
to get the lock when it gets to run.  This allows the lock releasing
process to re-acquire the lock later in its timeslice.  Since LWLocks
are usually held for short periods, it is possible for a process to
acquire and release the same lock many times in a timeslice.  The old
spinlock-based implementation of these locks allowed for that; but the
original coding of LWLock would force a process swap for each acquisition
if there was any contention.  Although this approach reopens the door to
process starvation (a waiter might repeatedly fail to get the lock),
the odds of that being a big problem seem low, and the performance cost
of the previous approach is considerable.

22 years agoFixed parser to accept initializing expressions starting with "(".
Michael Meskes [Mon, 7 Jan 2002 16:25:45 +0000 (16:25 +0000)]
Fixed parser to accept initializing expressions starting with "(".

22 years agoEditorial review
Peter Eisentraut [Mon, 7 Jan 2002 02:29:15 +0000 (02:29 +0000)]
Editorial review

22 years agoIf we fail to fork a new backend process, (try to) report the failure
Tom Lane [Sun, 6 Jan 2002 21:40:02 +0000 (21:40 +0000)]
If we fail to fork a new backend process, (try to) report the failure
to the client before closing the connection.  Before 7.2 this was done
correctly, but new code would simply close the connection with no report
to the client.

22 years agoFix ecpg wording to be consistent.
Bruce Momjian [Sun, 6 Jan 2002 18:12:00 +0000 (18:12 +0000)]
Fix ecpg wording to be consistent.

22 years agoRemove ecpg TODO section:
Bruce Momjian [Sun, 6 Jan 2002 17:54:14 +0000 (17:54 +0000)]
Remove ecpg TODO section:

> Looking at this I also found an ecpg TODO list in the docs:
>
>
http://candle.pha.pa.us/main/writings/pgsql/sgml/ecpg-develop.html
>
> Seems that TODO section should be removed.  Some items are done,
others
> are on the main TODO list.

That's correct. I did not fix the docs for quite some time.

Michael
--
Michael Meskes

22 years agoFix copy-and-paste brain damage. (These commands do not create a
Tom Lane [Sun, 6 Jan 2002 03:33:26 +0000 (03:33 +0000)]
Fix copy-and-paste brain damage.  (These commands do not create a
database.)

22 years agoAdd CHECK_FOR_INTERRUPTS() in various strategic spots, per comments
Tom Lane [Sun, 6 Jan 2002 00:37:44 +0000 (00:37 +0000)]
Add CHECK_FOR_INTERRUPTS() in various strategic spots, per comments
from Hiroshi.

22 years agoBugfix for bug reported by Marcus Better (marcus@dactylis.com). When preforming
Barry Lind [Sat, 5 Jan 2002 22:26:23 +0000 (22:26 +0000)]
Bugfix for bug reported by Marcus Better (marcus@dactylis.com).  When preforming
a get on a bytea value the code was running the raw value from the server
through character set conversion, which if the character set was SQL_ASCII
would cause all 8bit characters to become ?'s.

22 years agoSpelling fix:
Bruce Momjian [Sat, 5 Jan 2002 04:03:47 +0000 (04:03 +0000)]
Spelling fix:

< * Consider use of open/fctl(O_DIRECT) to minimize OS caching
---
> * Consider use of open/fcntl(O_DIRECT) to minimize OS caching

22 years agoRe-order items:
Bruce Momjian [Fri, 4 Jan 2002 21:32:28 +0000 (21:32 +0000)]
Re-order items:

> * Consider use of open/fctl(O_DIRECT) to minimize OS caching
> * Make blind writes go through the file descriptor cache
391d392
< * Make blind writes go through the file descriptor cache
409d409
< * Consider use of open/fctl(O_DIRECT) to minimize OS caching

22 years agoAdded:
Bruce Momjian [Fri, 4 Jan 2002 21:08:42 +0000 (21:08 +0000)]
Added:

> * Consider use of open/fctl(O_DIRECT) to minimize OS caching

22 years agoecpg.sgml manual page updated to ON.
Bruce Momjian [Fri, 4 Jan 2002 18:58:46 +0000 (18:58 +0000)]
ecpg.sgml manual page updated to ON.

---------------------------------------------------------------------------

When you run 'ecpg --help' you get the following:

          -t   turn on autocommit of transactions

amongst the other options... Shouldn't this be OFF as per the
documentation?

Best regards, Lee.

--
 Lee Kindness,   Senior Software Engineer,   lkindness@csl.co.uk

22 years agoChange:
Bruce Momjian [Fri, 4 Jan 2002 18:42:40 +0000 (18:42 +0000)]
Change:

<   perhaps CREATE DATABASE dbname WITH USER = "user" (Gavin)
---
>   perhaps CREATE DATABASE dbname WITH OWNER = "user" (Gavin)

22 years agoAdd from Vadim:
Bruce Momjian [Fri, 4 Jan 2002 18:23:56 +0000 (18:23 +0000)]
Add from Vadim:

> * Allow command blocks that can ignore certain types of errors

22 years agoFix some incorrect and obsolete commentary.
Tom Lane [Fri, 4 Jan 2002 17:06:51 +0000 (17:06 +0000)]
Fix some incorrect and obsolete commentary.

22 years agoAdd more complete details on date/time keywords and parsing rules.
Thomas G. Lockhart [Fri, 4 Jan 2002 17:02:25 +0000 (17:02 +0000)]
Add more complete details on date/time keywords and parsing rules.
Move some tabular information on these from the chapter on data types to
 the appendix on dates and times.

22 years agoHave to_date() call timestamptz_date() per Karel's email instructions.
Thomas G. Lockhart [Fri, 4 Jan 2002 15:49:42 +0000 (15:49 +0000)]
Have to_date() call timestamptz_date() per Karel's email instructions.
Fixes time zone problems introduced by Thomas' implementation of
 TIMESTAMP WITHOUT TIME ZONE which caused the behavior of the previously
 appropriate routine, timestamp_date(), to change for the worse in this
 context.

22 years agoReplace #ifdef, #endif with # requires comment.
Bruce Momjian [Fri, 4 Jan 2002 05:50:25 +0000 (05:50 +0000)]
Replace #ifdef, #endif with # requires comment.

22 years agoUpdate FAQ.
Bruce Momjian [Fri, 4 Jan 2002 05:44:45 +0000 (05:44 +0000)]
Update FAQ.

22 years agoGive attribution:
Bruce Momjian [Fri, 4 Jan 2002 05:03:15 +0000 (05:03 +0000)]
Give attribution:

<   perhaps CREATE DATABASE dbname WITH USER = "user"
---
>   perhaps CREATE DATABASE dbname WITH USER = "user" (Gavin)

22 years agoRemove:
Bruce Momjian [Fri, 4 Jan 2002 04:53:26 +0000 (04:53 +0000)]
Remove:

< * Allow only owner to create indexes

22 years agoRequire ownership permission for CREATE INDEX, per bug report.
Tom Lane [Thu, 3 Jan 2002 23:21:32 +0000 (23:21 +0000)]
Require ownership permission for CREATE INDEX, per bug report.
Disallow CREATE INDEX on system catalogs, non-tables (views, sequences, etc).
Disallow CREATE/DROP TRIGGER on system catalogs, non-tables.
Disallow ALTER TABLE ADD/DROP CONSTRAINT on system catalogs.
Disallow FOREIGN KEY reference to non-table.
None of these things can actually work in the present system structure,
but the code was letting them pass without complaint.

22 years agoInstead of waiting a fixed amount of time for the test postmaster to
Tom Lane [Thu, 3 Jan 2002 21:52:05 +0000 (21:52 +0000)]
Instead of waiting a fixed amount of time for the test postmaster to
start up, wait until a psql connection attempt succeeds.  Per gripe
from Jason Tishler.

22 years agoPrefer savepoints term:
Bruce Momjian [Thu, 3 Jan 2002 21:15:04 +0000 (21:15 +0000)]
Prefer savepoints term:

<    allow error codes to be specified; requires nested transactions
---
>    allow error codes to be specified; requires savepoints
321c321
< * Allow nested transactions / savepoints [transactions]
---
> * Allow savepoints / nested transactions [transactions]

22 years agoUpdate:
Bruce Momjian [Thu, 3 Jan 2002 20:42:23 +0000 (20:42 +0000)]
Update:

<    allow error codes to be specified
---
>    allow error codes to be specified; requires nested transactions

22 years agoSPI_cursor_open must copy by-reference parameter values into the
Tom Lane [Thu, 3 Jan 2002 20:30:47 +0000 (20:30 +0000)]
SPI_cursor_open must copy by-reference parameter values into the
portal's memory context, so that they will live as long as the portal does.

22 years agoAdd:
Bruce Momjian [Thu, 3 Jan 2002 18:25:43 +0000 (18:25 +0000)]
Add:

>  o Allow COPY to report error lines and continue;  optionally
>    allow error codes to be specified

22 years agoAdd:
Bruce Momjian [Thu, 3 Jan 2002 18:22:43 +0000 (18:22 +0000)]
Add:

> * Make equals sign optional in CREATE DATABASE WITH param = 'val'

22 years agoAdded:
Bruce Momjian [Thu, 3 Jan 2002 18:13:14 +0000 (18:13 +0000)]
Added:

> * Prevent create/drop scripts from allowing extra args (Bruce)

22 years agoShouldn't try to copy null datums with datumCopy.
Tom Lane [Thu, 3 Jan 2002 18:01:59 +0000 (18:01 +0000)]
Shouldn't try to copy null datums with datumCopy.

22 years agoAdded:
Bruce Momjian [Thu, 3 Jan 2002 17:31:52 +0000 (17:31 +0000)]
Added:

> * Allow only owner to create indexes

22 years agoUpdated:
Bruce Momjian [Thu, 3 Jan 2002 17:29:31 +0000 (17:29 +0000)]
Updated:

< * Add config file check for $ODBCINI, $HOME/.odbc.ini, and /etc/odbc.ini
---
> * Add config file check for $ODBCINI, $HOME/.odbc.ini, installpath/etc/odbc.ini

22 years agoAdd to java mention of pl/j.
Bruce Momjian [Thu, 3 Jan 2002 17:18:19 +0000 (17:18 +0000)]
Add to java mention of pl/j.

22 years agoDroplang didn't have test for -l, list. This was really broken too.
Bruce Momjian [Thu, 3 Jan 2002 08:53:00 +0000 (08:53 +0000)]
Droplang didn't have test for -l, list.  This was really broken too.
Took test from createlang.

22 years agoAdd mention that createlang.sh indirection not needed but kept for later.
Bruce Momjian [Thu, 3 Jan 2002 08:38:00 +0000 (08:38 +0000)]
Add mention that createlang.sh indirection not needed but kept for later.

22 years agoUpdate FAQ_DEV.
Bruce Momjian [Thu, 3 Jan 2002 08:20:54 +0000 (08:20 +0000)]
Update FAQ_DEV.

22 years agoUpdate FAQ_DEV.
Bruce Momjian [Thu, 3 Jan 2002 08:13:51 +0000 (08:13 +0000)]
Update FAQ_DEV.

22 years agoAdded
Bruce Momjian [Thu, 3 Jan 2002 08:04:16 +0000 (08:04 +0000)]
Added

> * Add config file check for $ODBCINI, $HOME/.odbc.ini, and /etc/odbc.ini

22 years agoAdded suggested syntax:
Bruce Momjian [Thu, 3 Jan 2002 08:01:17 +0000 (08:01 +0000)]
Added suggested syntax:

> * Make it easier to create a database owned by someone who can't createdb,
>   perhaps CREATE DATABASE dbname WITH USER = "user"

22 years ago> > On Fri, Dec 21, 2001 at 11:43:21AM +0800, Christopher Kings-Lynne
Bruce Momjian [Thu, 3 Jan 2002 07:21:48 +0000 (07:21 +0000)]
> > On Fri, Dec 21, 2001 at 11:43:21AM +0800, Christopher Kings-Lynne
wrote:
> > > Just testing pgcrypto on freebsd/alpha.  I get some warnings:
> > They should be harmless, although I should fix them.
>
> The actual code is:
>
>     if ((dlen & 15) || (((unsigned) res) & 3))
>         return -1;

> Hard to imagine how (uint *) & 3 makes any sense, unless res isn't
> always a (uint8 *).  Is that true?

At some point it was casted to (uint32*) so I wanted to be sure its ok.
ATM its pointless.  Please apply the following patch.

--
marko

22 years agoAdd mention of index on foreign key for frequently updated primary key
Bruce Momjian [Thu, 3 Jan 2002 06:26:22 +0000 (06:26 +0000)]
Add mention of index on foreign key for frequently updated primary key
tables.

22 years agodroplang had same problem as createlang; default are backwards and did
Bruce Momjian [Thu, 3 Jan 2002 06:09:02 +0000 (06:09 +0000)]
droplang had same problem as createlang;  default are backwards and did
not work.  Fixed to match createlang.

22 years agoAdd to pool discussion.
Bruce Momjian [Thu, 3 Jan 2002 05:52:48 +0000 (05:52 +0000)]
Add to pool discussion.

22 years agoAdded
Bruce Momjian [Thu, 3 Jan 2002 05:48:48 +0000 (05:48 +0000)]
Added

<  o Move to using 'make' rather than 'ant'(?)
---
>  o Support both 'make' and 'ant'

22 years agoAdd mention of PRIMARY in ALTER TABLE ... [ UNIQUE | PRIMARY ]
Bruce Momjian [Thu, 3 Jan 2002 05:37:43 +0000 (05:37 +0000)]
Add mention of PRIMARY in ALTER TABLE ... [ UNIQUE | PRIMARY ]

22 years agoIn createlang, make dbname optional, not langname, or rather, make
Bruce Momjian [Thu, 3 Jan 2002 05:30:04 +0000 (05:30 +0000)]
In createlang, make dbname optional, not langname, or rather, make
existing code of dbname optional actually work.

22 years agoRemove:
Bruce Momjian [Thu, 3 Jan 2002 05:20:34 +0000 (05:20 +0000)]
Remove:

< * Change 'createlang [langname] dbname' to 'createlang langname [dbname]'

22 years agoAdded:
Bruce Momjian [Thu, 3 Jan 2002 05:06:50 +0000 (05:06 +0000)]
Added:

> * Change 'createlang [langname] dbname' to 'createlang langname [dbname]'

22 years agoGuard against roundoff errors in new selectivity-estimation code,
Tom Lane [Thu, 3 Jan 2002 04:02:34 +0000 (04:02 +0000)]
Guard against roundoff errors in new selectivity-estimation code,
per bug report from Laurette Cisneros.

22 years agoFix to_timestamp/to_date so that zero year input for Y, YY, or YYY
Tom Lane [Wed, 2 Jan 2002 22:09:23 +0000 (22:09 +0000)]
Fix to_timestamp/to_date so that zero year input for Y, YY, or YYY
formats will be taken as 2000, not year zero.  Per bug report from
Aasmund Midttun Godal.  Fix from Karel Zak.

22 years agoFix incorrect description of rowtype variable declarations. Eventually
Tom Lane [Wed, 2 Jan 2002 00:41:26 +0000 (00:41 +0000)]
Fix incorrect description of rowtype variable declarations.  Eventually
(IMHO) the code should be fixed to do what the documentation formerly
claimed, and then revert this change.

22 years agoDo not accept interrupts in RESUME_INTERRUPTS() and END_CRIT_SECTION()
Tom Lane [Tue, 1 Jan 2002 23:16:22 +0000 (23:16 +0000)]
Do not accept interrupts in RESUME_INTERRUPTS() and END_CRIT_SECTION()
macros, but only at explicit CHECK_FOR_INTERRUPTS() calls.  Not clear
whether overenthusiastic acceptance of interrupts accounts for any real
bugs, but it definitely seems risky and unnecessary.

22 years agoFix race condition that could allow two concurrent transactions
Tom Lane [Tue, 1 Jan 2002 20:32:37 +0000 (20:32 +0000)]
Fix race condition that could allow two concurrent transactions
to insert the same key into a supposedly unique index.  The bug is of
low probability, and may not explain any of the recent reports of
duplicated rows; but a bug is a bug.