Dave Cramer
f954ebf577
patch to make PSQLState serializable, and a test case for it
...
added a test case for getLastOID
2003-12-11 03:59:37 +00:00
Dave Cramer
3800626d81
incremented the build number to 210
2003-12-10 18:25:11 +00:00
Tom Lane
43d50ba4dd
query_tree_mutator should copy RangeTblEntry nodes even when it's not
...
planning to modify them itself. Otherwise we end up with shared RTE
substructure, which breaks inheritance_planner because the rte->inh
flag needs to be independent in each copied subquery. Per bug report
from Chris Piker.
2003-12-09 01:56:41 +00:00
Tom Lane
1b1d2d5f31
Whole-row references were broken for subqueries and functions, because
...
attr_needed/attr_widths optimization failed to allow for Vars with attno
zero in this case. Per report from Tatsuo Ishii.
2003-12-08 18:20:10 +00:00
Tom Lane
f3bc5ae452
Remove test on c.relkind from check_constraints view; unnecessary and
...
prevents view from showing constraints on domains. This addresses the
other half of Claus Colloseus' bug report.
2003-12-07 19:43:13 +00:00
Peter Eisentraut
d5130d2387
Fix typmod interpretation for bit types. (It was erroneously assumed that
...
for bit(x), the typmod stores x+4, like for the character types.)
2003-12-07 10:18:50 +00:00
Joe Conway
14ddc01eaf
Repair indexed bytea like operations, and related selectivity
...
functionality. Per bug report by Alvar Freude:
http://archives.postgresql.org/pgsql-bugs/2003-12/msg00022.php
2003-12-07 04:12:50 +00:00
Dave Cramer
1276e1ed8f
backpatch for driver threadsafe problems
2003-12-05 21:22:03 +00:00
Dave Cramer
dfaf736bc7
patch from Kris Jurka to allow the server end port to be specified when running
...
regression tests, this is a backpatch to 7.4
2003-12-05 21:06:12 +00:00
Tom Lane
88ae594bde
Guard against bug in Solaris' bsearch(), per Michael Wildpaner.
2003-12-05 15:50:39 +00:00
Tom Lane
b255350864
Planner failed to be smart about binary-compatible expressions in pathkeys
...
and hash bucket-size estimation. Issue has been there awhile but is more
critical in 7.4 because it affects varchar columns. Per report from
Greg Stark.
2003-12-03 17:45:38 +00:00
Bruce Momjian
6fe6e33db6
The attached patch enables contrib/cube to build cleanly under Cygwin
...
(again). Please consider this patch for the 7.4.1 branch (if there
will be one) too.
Jason Tishler
2003-12-02 12:40:08 +00:00
Tom Lane
a8cdd6459c
netmask() and hostmask() functions should return maximum-length masklen,
...
per gripe from Joe Sunday.
2003-12-01 18:50:29 +00:00
Tom Lane
090bdcb317
Force zero_damaged_pages to be effectively ON during recovery from WAL,
...
since there is no need to worry about damaged pages when we are going to
overwrite them anyway from the WAL. Per recent discussion.
2003-12-01 16:53:30 +00:00
Joe Conway
10b84be9b3
Make PQescapeBytea and byteaout consistent with each other, and
...
octal escape all octets outside the range 0x20 to 0x7e. This fixes
the problem pointed out by Sergey Yatskevich here:
http://archives.postgresql.org/pgsql-bugs/2003-11/msg00140.php
2003-11-30 20:53:43 +00:00
Bruce Momjian
1adcaadc2f
Backpatch Borland thread.c fix to 7.4.X.
2003-11-30 06:02:40 +00:00
Tom Lane
2312e20fb9
Second try at fixing no-room-to-move-down PANIC in compact_fsm_storage.
...
Ward's report that it can still happen in RC2 forces me to realize that
this is not a can't-happen condition after all, and that the compaction
code had better cope rather than panicking.
2003-11-26 20:50:26 +00:00
Peter Eisentraut
d8ada3c7cb
Cast field-length variables used in printf to int, because sometimes
...
they might be of a wider type.
2003-11-26 15:54:59 +00:00
Tom Lane
d6dd992b4c
Repair subselect.c's occasional assignment of the wrong vartypmod to
...
Vars created to fill subplan args lists. This is an ancient error, going
back at least to 7.0, but is more easily triggered in 7.4 than before
because we no longer compare varlevelsup when deciding whether a Param
slot can be re-used. Fixes bug reported by Klint Gore.
2003-11-25 23:59:32 +00:00
Tom Lane
9765c6a9a3
Band-aid solution for problems with SubPlans used in hash join clauses,
...
per report from Andrew Holm-Hansen. The difficulty arises from the fact
that the planner allowed a Hash node's hashkeys to share substructure
with the parent HashJoin node's hashclauses, plus some rather bizarre
choices about who initializes what during executor startup. A cleaner
but more invasive solution is to not store hashkeys separately in the
plan tree at all, but let the HashJoin node deconstruct hashclauses
during executor startup. I plan to fix it that way in HEAD.
2003-11-25 19:17:16 +00:00
Peter Eisentraut
bcdf28eb02
Install all the headers files that the ones that are already installed
...
depend on.
2003-11-25 19:10:15 +00:00
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