Commit Graph

19625 Commits

Author SHA1 Message Date
eecc92564d Don't try to run clauseless index scans on index types that don't support
it.  Per report from Marinos Yannikos.
2005-04-20 21:48:12 +00:00
25bd3019e0 Fix mis-display of negative fractional seconds in interval values for
--enable-integer-datetimes case.  Per report from Oliver Siegmar.
2005-04-20 17:14:58 +00:00
cc5b676087 Add comment about permissions on pg_ts* tables 2005-04-19 13:58:11 +00:00
0a2400e964 Update PITR wording, per Simon. 2005-04-19 01:40:02 +00:00
92645c42c8 pg_dumpall should enforce the server version check for itself, rather
than simply passing it down to pg_dump.  Else, version-related failures
in pg_dumpall itself generate unhelpful error messages.
2005-04-18 23:48:01 +00:00
1186365c3c record_in and record_recv must be careful to return a separately
pfree'able result, since some callers expect to be able to pfree
the result of a pass-by-reference function.  Per report from Chris Trawick.
2005-04-18 17:11:15 +00:00
fef57bd487 Update PITR mention of which WAL files are needed. 2005-04-18 01:29:08 +00:00
2bf3ab90bd Clarify name of file to be checked for PITR expiring. 2005-04-17 03:05:27 +00:00
96d61bc163 Fix comment typo. 2005-04-15 22:49:45 +00:00
beb9e2ef34 Revert addition of poorly-thought-out DUMP TIMESTAMP archive entry,
which induced bug #1597 in addition to having several other misbehaviors
(like labeling the dump with a completion time having nothing to do with
reality).  Instead just print out the desired strings where RestoreArchive
was already emitting the 'PostgreSQL database dump' and
'PostgreSQL database dump complete' strings.
2005-04-15 16:40:59 +00:00
69cb5acf62 Make equalTupleDescs() compare attlen/attbyval/attalign rather than
assuming comparison of atttypid is sufficient.  In a dropped column
atttypid will be 0, and we'd better check the physical-storage data
to make sure the tupdescs are physically compatible.
I do not believe there is a real risk before 8.0, since before that
we only used this routine to compare successive states of the tupdesc
for a particular relation.  But 8.0's typcache.c might be comparing
arbitrary tupdescs so we'd better play it safer.
2005-04-14 22:35:12 +00:00
59974b0e0a Don't try to constant-fold functions returning RECORD, since the optimizer
isn't presently set up to pass them an expected tuple descriptor.  Bug has
been there since 7.3 but was just recently reported by Thomas Hallgren.
2005-04-14 21:44:22 +00:00
c61d1c95ea Added patch by Philip Yarra <philip.yarra@internode.on.net> for a bug in thread support. 2005-04-14 10:09:20 +00:00
fa57fd1c0a Fix interaction between materializing holdable cursors and firing
deferred triggers: either one can create more work for the other,
so we have to loop till it's all gone.  Per example from andrew@supernews.
Add a regression test to help spot trouble in this area in future.
2005-04-11 19:51:32 +00:00
add2c3f4d6 PersistHoldablePortal must establish the correct value for ActiveSnapshot
while completing execution of the cursor's query.  Otherwise we get wrong
answers or even crashes from non-volatile functions called by the query.
Per report from andrew@supernews.
2005-04-11 15:59:47 +00:00
88b229d907 Make constant-folding produce sane output for COALESCE(NULL,NULL),
that is a plain NULL and not a COALESCE with no inputs.  Fixes crash
reported by Michael Williamson.
2005-04-10 20:57:45 +00:00
c8814f4840 SQL functions returning pass-by-reference types were copying the results
into the wrong memory context, resulting in a query-lifespan memory leak.
Bug is new in 8.0, I believe.  Per report from Rae Stiening.
2005-04-10 18:04:31 +00:00
7dbded2c9c Stamp 8.0.2. REL8_0_2 2005-04-07 19:43:06 +00:00
9b8438169a Update and copy-edit release notes for 8.0.2. 2005-04-07 19:04:19 +00:00
b93529f232 In cost_mergejoin, the early-exit effect should not apply to the
outer side of an outer join.  Per andrew@supernews.
2005-04-04 01:43:23 +00:00
9e57970860 Put back code mistakenly removed from copy of postmaster's
daemonize routine, namely forcing stdin/stdout/stderr to point
to /dev/null.  Per Karl Denninger.
2005-04-03 00:02:03 +00:00
774cdb9159 Translation updates 2005-04-02 18:45:19 +00:00
5b7ef0daa7 Translation updates 2005-04-02 15:54:57 +00:00
9c4b34796f Fix release not typo. 2005-04-02 03:43:08 +00:00
6176eb50d4 Update release notes for 8.0.2. 2005-04-02 02:42:59 +00:00
f0aa94f5d8 Second try at making examine_variable and friends behave sanely in
cases with binary-compatible relabeling.  My first try was implicitly
assuming that all operators scalarineqsel is used for have binary-
compatible datatypes on both sides ... which is very wrong of course.
Per report from Michael Fuhr.
2005-04-01 20:32:09 +00:00
558dace99f Backpatch FAQ's to 8.0.X. 2005-04-01 16:42:59 +00:00
cc20233a81 Fix wrong week returnded by date_trunc('week') for early dates in
January --- would return wrong year for 2005-01-01 and 2006-01-01.

per report from Robert Creager.

Backpatch to 8.0.X.
2005-04-01 14:25:39 +00:00
ab6853e0b3 Flush any remaining statistics counts out to the collector at process
exit.  Without this, operations triggered during backend exit (such as
temp table deletions) won't be counted ... which given heavy usage of
temp tables can lead to pg_autovacuum falling way behind on the need
to vacuum pg_class and pg_attribute.  Per reports from Steve Crawford
and others.
2005-03-31 23:21:09 +00:00
5530877add Translation updates 2005-03-31 18:14:25 +00:00
da2010f40b Fix various comparing functions 2005-03-31 15:10:48 +00:00
01ebb55c06 Document that the "-P" option to pg_autovacuum is insecure on many
platforms, and suggest using ~/.pgpass instead.
2005-03-30 05:06:32 +00:00
90ce397ad6 Fix a pair of related issues with estimation of inequalities that involve
binary-compatible relabeling of one or both operands.  examine_variable
should avoid stripping RelabelType from non-variable expressions, so that
they will continue to have the correct type; and convert_to_scalar should
just use that type and ignore the other input type.  This isn't perfect
but it beats failing entirely.  Per example from Michael Fuhr.
2005-03-26 20:55:58 +00:00
d4f727808f Make additional stamps for 8.0.2. 2005-03-26 05:05:23 +00:00
507fc3c554 Tag for 8.0.2beta1 2005-03-26 03:46:33 +00:00
9b31b4ac29 Add Windows-specific variant comparison file. 2005-03-26 03:38:11 +00:00
cc31f7e7f4 Add another ORDER BY to rules test to eliminate platform-specific
output ordering.
2005-03-26 02:14:54 +00:00
209bc96ff6 Prevent to_char(interval) from dumping core on month-related formats
when a zero-month interval is given.  Per discussion with Karel.
Also, some desultory const-labeling of constant tables.  More could be
done along that line.
2005-03-26 00:41:45 +00:00
869825c4f2 Remove lazy_update_relstats; go back to having VACUUM just record the
actual number of unremoved tuples as pg_class.reltuples.  The idea of
trying to estimate a steady state condition still seems attractive, but
this particular implementation crashed and burned ...
2005-03-25 22:51:42 +00:00
7751c06852 Have libpgport link before libpq so that PG client applications are more
immunte to changes in libpq's usage of pgport between major versions.

Backpatch to 8.0.X.
2005-03-25 18:18:41 +00:00
42a00ef3b8 Fix two bugs in change_owner_recurse_to_sequences: it was grabbing an
overly strong lock on pg_depend, and it wasn't closing the rel when done.
The latter bug was masked by the ResourceOwner code, which is something
that should be changed.
2005-03-25 18:04:47 +00:00
ae7c18d1ae Update and copy-edit description of privileges. 2005-03-25 16:39:03 +00:00
f87592fce7 Add missing min/max parameters to DefineCustomIntVariable() and
DefineCustomRealVariable().  Thomas Hallgren
2005-03-25 16:17:39 +00:00
88f07b183f Fix to_date to behave reasonably when CC and YY fields are both used.
Karel Zak
2005-03-25 16:08:50 +00:00
8416036f5f Kerberos fixes from Magnus Hagander --- in theory Kerberos 5 auth
should work on Windows now.  Also, rename set_noblock to pg_set_noblock;
since it is included in libpq, the former name polluted application
namespace.
2005-03-25 00:35:20 +00:00
cb2a2fd8d0 Revert ill-conceived change of libpq linkage --- breaks ecpg. 2005-03-24 23:54:01 +00:00
e1fc33969a array_map can't use the fn_extra field of the provided fcinfo struct as
its private storage, because that belongs to the function that it is
supposed to call.  Per report from Ezequiel Tolnay.
2005-03-24 21:50:52 +00:00
d5595f986d Force PG client applications to link to non-shared libpgport before
linking to libpq.  This insulates applications from changes in libpq's
usage of libpgport functions.

Backpatched to 8.0.X.
2005-03-24 19:33:40 +00:00
b741e9d419 Tweak planner to use a minimum size estimate of 10 pages for a
never-yet-vacuumed relation.  This restores the pre-8.0 behavior of
avoiding seqscans during initial data loading, while still allowing
reasonable optimization after a table has been vacuumed.  Several
regression test cases revert to 7.4-like behavior, which is probably
a good sign.  Per gripes from Keith Browne and others.
2005-03-24 19:15:11 +00:00
dd0702a399 Fix python regression testing script to bail out early if language
creation fails ... no point in running the tests.
2005-03-24 17:23:39 +00:00