1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-18 17:41:14 +03:00

17179 Commits

Author SHA1 Message Date
Teodor Sigaev
1a1485115e One more fix confusion 2003-12-05 15:38:30 +00:00
Teodor Sigaev
84d2ed136c Avoid confusion start_parse_str function with tsearch V1 2003-12-05 14:28:21 +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
Teodor Sigaev
be5a80739b Fix for word with several infinitives 2003-12-03 16:06:59 +00:00
Tom Lane
ebe0cfd79e Update release notes for 7.3.5. 2003-12-02 16:14: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
Bruce Momjian
e16c318590 I've run across a pretty serious problem with pg_autovacuum.
pg_autovacuum looses track of any table that's ever been truncated
(possibly other situations too).   When i truncate a table it gets a
new relfilenode in pg_class.  This is a problem because pg_autovacuum
assumes pg_class.relfilenode will join to pg_stats_all_tables.relid.
pg_stats_all_tables.relid is actallly the oid from pg_class, not the
relfilenode.   These two values start out equal so pg_autovacuum works
initially, but it fails later on because of this incorrect assumption.

This patch fixes that problem.  Applied to HEAD and 7.4.X.

Brian Hirt
2003-12-01 23:19:54 +00:00
Bruce Momjian
0bdc0a6d33 I noticed in the 7.4 release that in contrib/pg_autovacuum, args->logfile is
not initialized if a log file is not specified on the command line.  This
causes an immediate segfault on systems that fill allocated memory with some
value other than zero (my FreeBSD machine uses 0xD0).

Several crashes later I discovered that args->user, password, host, and port
are also used without being initialized.

This doesn't appear to be fixed in CVS and I came up empty on a mailing list
search -- hope it hasn't been reported already.

Craig Boston
2003-12-01 23:14:29 +00:00
Tom Lane
e1d2c43a22 Minor wordsmithing in datetime docs to try to address gripes raised by
cnliou.
2003-12-01 20:35:04 +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
c0f3fdfb99 Fix typos noted by Halley Pacheco de Oliveira. 2003-12-01 17:58:38 +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
Bruce Momjian
c9fdb54998 Update TODO 7.4 mention. 2003-11-30 03:41:56 +00:00
Bruce Momjian
da8736aa8a Update Russian FAQ, both branches.
Viktor Vislobokov
2003-11-28 20:20:45 +00:00
Joe Conway
e664c28fe7 Fix regression in dblink_disconnect() reported by Eduardo Stern:
persistent_conn was left dangling after a disconnect in the
unnamed connection case, causing a subsequent disconnect to
crash the backend.
2003-11-28 05:03:48 +00:00
Teodor Sigaev
f77c90b3de Fixes about word with several infiniteve 2003-11-27 16:08:41 +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
Joe Conway
da876b5df4 Added missing SPI_finish() calls to get_tuple_of_interest(). Fixes bug
reported by Andrea Grassi.
2003-11-26 20:44:13 +00:00
Peter Eisentraut
420d84d32a Add NetBSD Sparc as supported. 2003-11-26 15:57:22 +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
Tatsuo Ishii
0ab82f66e9 Patches from Yutaka Tanida. Create primary key indexes after data
insertion to reduce initialization time.
2003-11-26 06:48:53 +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
Peter Eisentraut
1230343332 Fix language. 2003-11-25 19:27:04 +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
Teodor Sigaev
0527540896 Ignore too long lexeme 2003-11-25 13:40:16 +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
Bruce Momjian
84fd77d782 Change "IN/NOT IN" to "IN / NOT IN" for clarity, both branches. 2003-11-17 04:52:03 +00:00
PostgreSQL Daemon
3f78df10b1 k, tag the release REL7_4 2003-11-16 21:33:50 +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
Tom Lane
41e95ee086 Another try at fixing the Linux overcommit docs, per Andrew Dunstan. 2003-11-16 17:01:57 +00:00
Peter Eisentraut
75c2cf9567 Translation update for last-minute change 2003-11-16 08:59:21 +00:00
Bruce Momjian
971183146c Update FAQ for 7.4 branch. 2003-11-16 04:51:23 +00:00
Bruce Momjian
968715775c Update HISTORY 2003-11-16 04:49:51 +00:00
Tom Lane
ddc0e796af Update info about SysV configuration procedures on OS X 10.3. 2003-11-16 03:58:16 +00:00
Tom Lane
6906a2a510 Some editorializing on the Linux memory overcommit docs, from Neil Conway. 2003-11-16 03:38:41 +00:00
Tom Lane
8e82d32315 More release-notes copy editing, from Neil Conway. 2003-11-16 03:23:57 +00:00
Peter Eisentraut
4fa3b94f6b Second try at adjusting translations for last-minute changes. 2003-11-15 23:04:13 +00:00
Tom Lane
50c4d2a39b A little bit more copy-editing... 2003-11-15 20:01:20 +00:00
Tom Lane
f869a42d7f Minor wording improvement suggested by a comment in the interactive docs. 2003-11-15 19:46:36 +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
9bda4c71c7 Punctuation improvements 2003-11-15 17:20:40 +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