1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-16 17:07:43 +03:00
Commit Graph

12356 Commits

Author SHA1 Message Date
Tom Lane
c144a42cac Overdue code review for ALTER SEQUENCE patch. Don't generate illegal Node
tree for CYCLE option; don't assume zeros are invalid values for sequence
fields other than increment_by; don't reset cache_value when not told to;
simplify code for testing whether to apply defaults.
2003-11-24 16:54:15 +00:00
Tom Lane
511887f8c0 Repair missed renamings of show_statement_stats and show_executor_stats. 2003-11-24 14:50:02 +00:00
Peter Eisentraut
83ab17e051 Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash with Perl.
Fixes compliation failure with --enable-thread-safety --with-perl and Perl
5.6.1.
2003-11-24 13:11:27 +00:00
Michael Meskes
a62f62d78b Fixed typo in create schema parsing. 2003-11-19 13:19:40 +00:00
Tom Lane
fc2e2ef64e Fix datetime input parsing to accept YYYY-MONTHNAME-DD and related syntaxes,
which had been unintentionally broken by recent changes to tighten up the
DateStyle rules for all-numeric date input.  Add documentation and
regression tests for this, too.
2003-11-16 20:29:34 +00:00
Peter Eisentraut
75c2cf9567 Translation update for last-minute change 2003-11-16 08:59:21 +00:00
Peter Eisentraut
4fa3b94f6b Second try at adjusting translations for last-minute changes. 2003-11-15 23:04:13 +00:00
Tom Lane
3bdde811d9 Make creation of statistics collection socket more robust, by allowing it
to try additional addresses returned from getaddrinfo() if the first one
fails at the bind() or connect() steps.  Per yesterday's discussion.
2003-11-15 17:24:19 +00:00
Peter Eisentraut
140a81c90c Translation update 2003-11-15 17:15:38 +00:00
Peter Eisentraut
4a06878106 Adjust translations for CREATE TABLE reference page change. 2003-11-15 12:54:28 +00:00
Peter Eisentraut
64c11b9b87 Translation updates 2003-11-15 10:20:02 +00:00
Peter Eisentraut
720c8491ff Translation updates 2003-11-14 02:05:04 +00:00
Peter Eisentraut
db99a2cd63 Regenerate text files. 2003-11-13 17:59:35 +00:00
Bruce Momjian
d422b5b887 Update win32 include file on 7.4 branch. 2003-11-13 05:06:56 +00:00
Tom Lane
e2e8591f54 AcceptResult() was missing a case for PGRES_EMPTY_QUERY --- probably
my fault.  Adding it fixes bogus message display when reading a block
comment at the end of a script file.
2003-11-12 22:55:42 +00:00
Michael Meskes
9be4433789 Commit the remaining parts of the array changes. 2003-11-12 08:42:57 +00:00
Bruce Momjian
3466e33eac Default ioctlsocket_ret to 1 in case Cygwin needs it for 7.4 --- already
in HEAD.
2003-11-11 21:37:35 +00:00
Tom Lane
1d42f3246a Fix thinko in reltime and tinterval operator classes that I added a
couple months ago: the >= and > operators were swapped.  Not worth
forcing an initdb for this, but we should get it right in the release.
Will be patched separately in HEAD.
2003-11-11 21:23:26 +00:00
Michael Meskes
9736e8f95c Re-added forgotten cache. 2003-11-10 20:28:06 +00:00
Bruce Momjian
205342687e Allow tab completion for ALTER TABLE dbname <tab><tab> to show new
RENAME TO option.
2003-11-08 20:54:37 +00:00
Tom Lane
c3bc15f422 Correct misspellings of REFERENCES. 2003-11-08 20:43:57 +00:00
Tom Lane
939c203974 Restore compatibility with Tcl 8.0.* --- from ljb. 2003-11-08 20:34:42 +00:00
Tom Lane
cda57fa035 Don't need hack copy of system() anymore in OS X 10.3. 2003-11-08 20:14:57 +00:00
Michael Meskes
d3268ee2ef Fix parsing of create index call 2003-11-08 19:14:20 +00:00
Tom Lane
c8fcb38363 Fix process-status handling for OS X 10.3. 2003-11-08 19:07:30 +00:00
Tom Lane
87c93e112b Cause stats processes to detach from shared memory when started, so that
they do not prevent the postmaster from deleting the shmem segment during
a post-backend-crash restart cycle.  Per recent discussion.
2003-11-07 21:56:02 +00:00
Tom Lane
8762e10174 zero_damaged_pages must absolutely NOT be marked GUC_DISALLOW_IN_FILE,
else it cannot be used to handle failures detected during WAL replay.
Fortunately this flag isn't actually enforced yet, but get it right.
2003-11-07 21:27:50 +00:00
Tom Lane
5781237531 Fix for this problem:
regression=# select 1 from tenk1 ta cross join tenk1 tb for update;
ERROR:  no relation entry for relid 3

7.3 said "SELECT FOR UPDATE cannot be applied to a join", which was better
but still wrong, considering that 7.2 took the query just fine.  Fix by
making transformForUpdate() ignore JOIN and other special RTE types,
rather than trying to mark them FOR UPDATE.  The actual error message now
only appears if you explicitly name the join in FOR UPDATE.
2003-11-05 22:00:52 +00:00
Peter Eisentraut
967cd91b08 Add -O to really trigger compiler bug. 2003-11-05 07:42:18 +00:00
Peter Eisentraut
e937f3df80 Add detection of compiler bug. 2003-11-05 00:09:25 +00:00
Peter Eisentraut
77a8f230cc Improve wording of spinlocks-missing compilation error message. 2003-11-04 09:43:56 +00:00
Michael Meskes
f651e7cfbe Make sure bug fix makes it into 7.4 as well. Thanks Peter. 2003-11-04 08:45:47 +00:00
Tom Lane
b402503fb6 Adjust data types in some of the UNION tests to avoid potentially
platform-dependent results, as per example from Larry Rosenman.
2003-11-02 22:35:26 +00:00
Tom Lane
eeaf5f04ae Provide a way to run the parallel regression tests with a user-specified
limit on the number of simultaneous connections.  Andrew Dunstan, with
review by Tom Lane.
2003-11-02 21:56:15 +00:00
Peter Eisentraut
1af403e42d Complete options help and put it in less random order. 2003-11-02 12:55:24 +00:00
Peter Eisentraut
0543af2f12 Fix CFLAGS logic. 2003-11-01 20:45:30 +00:00
Peter Eisentraut
f7e5e9d493 More whitespace fixes. Do people write the expected files by hand? 2003-11-01 03:18:20 +00:00
Peter Eisentraut
32ab99ba10 Fix hidden whitespace differences between expected and result files. 2003-11-01 03:07:07 +00:00
Tom Lane
4240d2bffd Update future-tense comments in README to present tense. Noted by
Neil Conway.
2003-10-31 22:48:08 +00:00
Peter Eisentraut
bc010cd9ef Translation update 2003-10-31 22:14:15 +00:00
Tom Lane
8545482947 When a superuser does GRANT or REVOKE on an object he doesn't own,
process the command as though it were issued by the object owner.
This prevents creating weird scenarios in which the same privileges
may appear to flow from different sources, and ensures that a superuser
can in fact revoke all privileges if he wants to.  In particular this
means that the regression tests work when run by a superuser other than
the original bootstrap userid.  Per report from Larry Rosenman.
2003-10-31 20:00:49 +00:00
Tom Lane
bcf4d35699 Minor cleanup of PQunescapeBytea(). Avoid unportable assumptions about
behavior of malloc and realloc when request size is 0.  Fix escape
sequence recognizer so that only valid 3-digit octal sequences are
treated as escape sequences ... isdigit() is not a correct test.
2003-10-31 17:43:10 +00:00
Jan Wieck
774f57038a Moved the recently added test for foreign key disabled by rewrite
rule into the rule.sql since it affects the latter if run in paralell.

Jan
2003-10-31 14:27:57 +00:00
Michael Meskes
e6152300f1 If EOF is found inside a string/comment/etc. stop parsing. 2003-10-31 14:10:41 +00:00
Jan Wieck
cc4baf4da3 Fix for possible referential integrity violation when a qualified ON INSERT
rule split the query into one INSERT and one UPDATE where the UPDATE
then hit's the just created row without modifying the key fields again.
In this special case, the new key slipped in totally unchecked.

Jan
2003-10-31 03:58:21 +00:00
Tom Lane
e181001764 Small fix to Christopher's recent improvements --- underscore is not
a special character in regexes, but it is for LIKE, so NOT LIKE 'pg_%'
is incorrect.  Need NOT LIKE 'pg\_%'.
2003-10-31 03:58:15 +00:00
Tom Lane
ede9b68e03 Use Tcl ByteArray objects to avoid unwanted character set translation
in libpgtcl's lo_read/lo_write commands.  Also, deal correctly with
failure return from lo_read().  ljb and Tom Lane.
2003-10-31 00:18:55 +00:00
Tom Lane
e84487f67a Further work on tab completion code: arrange for system catalogs to be
offered for completion only when the input-so-far is at least 'pg_'.
This seems to be the best compromise behavior emerging from yesterday's
discussion.  While at it, refactor code to eliminate repetitive use of
nearly identical queries, which was exceedingly tedious to maintain.
Also const-ify code more thoroughly in hopes of moving constant data into
text segment, and remove unnecessary length limit on queries.
2003-10-30 21:37:38 +00:00
Tom Lane
3108b5db28 Allow the query for a plpgsql cursor to begin with '(' as well as 'SELECT'.
Per example from Kumar, 30-Oct-03.
2003-10-30 17:18:55 +00:00
Dave Cramer
f4b4d7ce60 use the result set to set the fetchsize 2003-10-30 12:18:56 +00:00