Commit Graph

11740 Commits

Author SHA1 Message Date
Thomas G. Lockhart
c826d1cefb 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.
2002-01-04 15:49:42 +00:00
Bruce Momjian
5a60ba5078 Replace #ifdef, #endif with # requires comment. 2002-01-04 05:50:25 +00:00
Bruce Momjian
0b79ed2745 Update FAQ. 2002-01-04 05:44:45 +00:00
Bruce Momjian
b5213b5c37 Give attribution:
<   perhaps CREATE DATABASE dbname WITH USER = "user"
---
>   perhaps CREATE DATABASE dbname WITH USER = "user" (Gavin)
2002-01-04 05:03:15 +00:00
Bruce Momjian
f27b0eeea7 Remove:
< * Allow only owner to create indexes
2002-01-04 04:53:26 +00:00
Tom Lane
dc6b4deb97 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.
2002-01-03 23:21:32 +00:00
Tom Lane
d02f0aaa3b 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.
2002-01-03 21:52:05 +00:00
Bruce Momjian
0e3793e621 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]
2002-01-03 21:15:04 +00:00
Bruce Momjian
a2dc469ac7 Update:
< 	  allow error codes to be specified
---
> 	  allow error codes to be specified; requires nested transactions
2002-01-03 20:42:23 +00:00
Tom Lane
ab20692e1e 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.
2002-01-03 20:30:47 +00:00
Bruce Momjian
6d78fdae7f Add:
> 	o Allow COPY to report error lines and continue;  optionally
> 	  allow error codes to be specified
2002-01-03 18:25:43 +00:00
Bruce Momjian
258af1d57a Add:
> * Make equals sign optional in CREATE DATABASE WITH param = 'val'
2002-01-03 18:22:43 +00:00
Bruce Momjian
8dcc4c058d Added:
> * Prevent create/drop scripts from allowing extra args (Bruce)
2002-01-03 18:13:14 +00:00
Tom Lane
f7fb29dec3 Shouldn't try to copy null datums with datumCopy. 2002-01-03 18:01:59 +00:00
Bruce Momjian
b8ef396d6b Added:
> * Allow only owner to create indexes
2002-01-03 17:31:52 +00:00
Bruce Momjian
13acb5b37d 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
2002-01-03 17:29:31 +00:00
Bruce Momjian
85974a75fc Add to java mention of pl/j. 2002-01-03 17:18:19 +00:00
Bruce Momjian
b9da4b726c Droplang didn't have test for -l, list. This was really broken too.
Took test from createlang.
2002-01-03 08:53:00 +00:00
Bruce Momjian
4ecd278991 Add mention that createlang.sh indirection not needed but kept for later. 2002-01-03 08:38:00 +00:00
Bruce Momjian
8be67450aa Update FAQ_DEV. 2002-01-03 08:20:54 +00:00
Bruce Momjian
5b24a98f2a Update FAQ_DEV. 2002-01-03 08:13:51 +00:00
Bruce Momjian
9c00d0de57 Added
> * Add config file check for $ODBCINI, $HOME/.odbc.ini, and /etc/odbc.ini
2002-01-03 08:04:16 +00:00
Bruce Momjian
b96b0415fa Added suggested syntax:
> * Make it easier to create a database owned by someone who can't createdb,
>   perhaps CREATE DATABASE dbname WITH USER = "user"
2002-01-03 08:01:17 +00:00
Bruce Momjian
b490469cb9 > > 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
2002-01-03 07:21:48 +00:00
Bruce Momjian
bc29b06b0a Add mention of index on foreign key for frequently updated primary key
tables.
2002-01-03 06:26:22 +00:00
Bruce Momjian
a4ee277e17 droplang had same problem as createlang; default are backwards and did
not work.  Fixed to match createlang.
2002-01-03 06:09:02 +00:00
Bruce Momjian
f9b792c5c3 Add to pool discussion. 2002-01-03 05:52:48 +00:00
Bruce Momjian
2446e300fa Added
< 	o Move to using 'make' rather than 'ant'(?)
---
> 	o Support both 'make' and 'ant'
2002-01-03 05:48:48 +00:00
Bruce Momjian
9d77dcc366 Add mention of PRIMARY in ALTER TABLE ... [ UNIQUE | PRIMARY ] 2002-01-03 05:37:43 +00:00
Bruce Momjian
04f3342e03 In createlang, make dbname optional, not langname, or rather, make
existing code of dbname optional actually work.
2002-01-03 05:30:04 +00:00
Bruce Momjian
b3d9768f3b Remove:
< * Change 'createlang [langname] dbname' to 'createlang langname [dbname]'
2002-01-03 05:20:34 +00:00
Bruce Momjian
d5de91ddad Added:
> * Change 'createlang [langname] dbname' to 'createlang langname [dbname]'
2002-01-03 05:06:50 +00:00
Tom Lane
b36df04ce2 Guard against roundoff errors in new selectivity-estimation code,
per bug report from Laurette Cisneros.
2002-01-03 04:02:34 +00:00
Tom Lane
bb2bff498c 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.
2002-01-02 22:09:23 +00:00
Tom Lane
e274325e02 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.
2002-01-02 00:41:26 +00:00
Tom Lane
4764ae823b 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.
2002-01-01 23:16:22 +00:00
Tom Lane
1ccc67600b 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.
2002-01-01 20:32:37 +00:00
Thomas G. Lockhart
c546170e77 Rename TIME token to ISOTIME to eliminate conflict with gram.y parser
token. Seems to be isolated to datetime.c and datetime.h.
2002-01-01 02:54:33 +00:00
Bruce Momjian
6b086de31a Update dbase for Maarten.Boekhold. 2001-12-31 13:32:04 +00:00
Tom Lane
ee051baeac Make sure that all <ctype.h> routines are called with unsigned char
values; it's not portable to call them with signed chars.  I recall doing
this for the last release, but a few more uncasted calls have snuck in.
2001-12-30 23:09:42 +00:00
Tom Lane
e7d9a6bf63 Repair example, per note in interactive docs. 2001-12-30 04:36:52 +00:00
Bruce Momjian
23ef0926e1 Update FAQ_DEV. 2001-12-30 04:31:29 +00:00
Bruce Momjian
3f53ad7108 *** empty log message *** 2001-12-30 01:51:10 +00:00
Bruce Momjian
550d38458c Add
> * Make locking of shared data structures more fine-grained
2001-12-30 01:48:23 +00:00
Bruce Momjian
6f901b6f5a Oops, only wanted datetime.c changes in there. lock stuff reversed out. 2001-12-29 21:30:32 +00:00
Bruce Momjian
9e7b9c6f54 Fix newly introduced datetime.c compile failure; not enough parens. 2001-12-29 21:28:18 +00:00
Bruce Momjian
48ad40ba99 Added
> * Change factorial to return a numeric
2001-12-29 20:40:42 +00:00
Bruce Momjian
642f2fe7cf Add missing <varlistentry>; shown in build logs. 2001-12-29 20:29:49 +00:00
Thomas G. Lockhart
b7a0af7d64 Check a bit more carefully for preceeding ISO field tags
when decoding date fields.
2001-12-29 18:40:58 +00:00
Thomas G. Lockhart
dd0279b1ba Document the precision arguments for date/time types per SQL9x.
Update the list of recognized time zones.
Document the range of arguments allowed for SET TIME ZONE.
Still need to add info on other date/time symbols (e.g. "AM", "T")
 and to freshen the docs on the date/time parsing rules.
2001-12-29 18:35:54 +00:00