- 16 Feb, 2007 18 commits
-
-
Tom Lane authored
an opclass for a generic type such as ANYARRAY. The original coding failed to check that PK and FK columns were of the same array type. Per discussion with Tom Dunstan. Also, make the code a shade more readable by not trying to economize on variables.
-
Bruce Momjian authored
on platforms that need this. This is done by only writing past the previously stored message, if it was longer.
-
Tom Lane authored
JOIN quals, just like WHERE quals, even if they reference every one of the join's relations. Now that we can reorder outer and inner joins, it's possible for such a qual to end up being assigned to an outer join plan node, and we mustn't have it treated as a join qual rather than a filter qual for the node. (If it were, the join could produce null-extended rows that it shouldn't.) Per bug report from Pelle Johansson.
-
Peter Eisentraut authored
require stdint.h and works for "busted" int64.
-
Alvaro Herrera authored
remove duplicated tests in timestamp, and complete timestamptz with the tests that were missing to more closely mirror timestamp.
-
Tom Lane authored
-
Tom Lane authored
-
Alvaro Herrera authored
timestamp_tbl table into the timestamp test. Also, restore a test that used to exist as a valid test in the timestamptz test.
-
Peter Eisentraut authored
-
Peter Eisentraut authored
-
Peter Eisentraut authored
-
Bruce Momjian authored
-
Bruce Momjian authored
detection of tabs are added in the future.
-
Tom Lane authored
be checked at plan levels below the top; namely, we have to allow for Result nodes inserted just above a nestloop inner indexscan. Should think about using the general Param mechanism to pass down outer-relation variables, but for the moment we need a back-patchable solution. Per report from Phil Frost.
-
Bruce Momjian authored
to_timestamp(): - ID for day-of-week - IDDD for day-of-year This makes it possible to convert ISO week dates to and from text fully represented in either week ('IYYY-IW-ID') or day-of-year ('IYYY-IDDD') format. I have also added an 'isoyear' field for use with extract / date_part. Brendan Jurd
-
Bruce Momjian authored
o read global SSL configuration file o add GUC "ssl_ciphers" to control allowed ciphers o add libpq environment variable PGSSLKEY to control SSL hardware keys Victor B. Wagner
-
Alvaro Herrera authored
startup and bgwriter processes), and the -y flag. It's not used anywhere.
-
Tom Lane authored
considered when it is necessary to do so because of a join-order restriction (that is, an outer-join or IN-subselect construct). The former coding was a bit ad-hoc and inconsistent, and it missed some cases, as exposed by Mario Weilguni's recent bug report. His specific problem was that an IN could be turned into a "clauseless" join due to constant-propagation removing the IN's joinclause, and if the IN's subselect involved more than one relation and there was more than one such IN linking to the same upper relation, then the only valid join orders involve "bushy" plans but we would fail to consider the specific paths needed to get there. (See the example case added to the join regression test.) On examining the code I wonder if there weren't some other problem cases too; in particular it seems that GEQO was defending against a different set of corner cases than the main planner was. There was also an efficiency problem, in that when we did realize we needed a clauseless join because of an IN, we'd consider clauseless joins against every other relation whether this was sensible or not. It seems a better design is to use the outer-join and in-clause lists as a backup heuristic, just as the rule of joining only where there are joinclauses is a heuristic: we'll join two relations if they have a usable joinclause *or* this might be necessary to satisfy an outer-join or IN-clause join order restriction. I refactored the code to have just one place considering this instead of three, and made sure that it covered all the cases that any of them had been considering. Backpatch as far as 8.1 (which has only the IN-clause form of the disease). By rights 8.0 and 7.4 should have the bug too, but they accidentally fail to fail, because the joininfo structure used in those releases preserves some memory of there having once been a joinclause between the inner and outer sides of an IN, and so it leads the code in the right direction anyway. I'll be conservative and not touch them.
-
- 15 Feb, 2007 3 commits
-
-
Alvaro Herrera authored
continuously, and requests vacuum runs of "autovacuum workers" to postmaster. The workers do the actual vacuum work. This allows for future improvements, like allowing multiple autovacuum jobs running in parallel. For now, the code keeps the original behavior of having a single autovac process at any time by sleeping until the previous worker has finished.
-
Tom Lane authored
platform-specific result ordering. Per buildfarm results.
-
Tom Lane authored
WHERE clauses. createplan.c is now willing to stick a gating Result node almost anywhere in the plan tree, and in particular one can wind up directly underneath a MergeJoin node. This means it had better be willing to handle Mark/Restore. Fortunately, that's trivial in such cases, since we can just pass off the call to the input node (which the planner has previously ensured can handle Mark/Restore). Per report from Phil Frost.
-
- 14 Feb, 2007 13 commits
-
-
Magnus Hagander authored
-
Bruce Momjian authored
> > o Use LC_TIME for localized weekday/month names, rather than > LC_MESSAGES > > http://archives.postgresql.org/pgsql-hackers/2006-11/msg00390.php
-
Tom Lane authored
had never touched the subject before.
-
Peter Eisentraut authored
-
Bruce Momjian authored
Converting from char using 'D' doesn't make lots of sense, of course. Report from Brendan Jurd.
-
Bruce Momjian authored
can be used by src/tools/fsync/test_fsync.c.
-
Tom Lane authored
copied-and-pasted text in a more useful location.
-
Bruce Momjian authored
> * Clean up casting in /contrib/isn > > http://archives.postgresql.org/pgsql-hackers/2006-11/msg00245.php >
-
Bruce Momjian authored
> * Improve logging of prepared statements recovered during startup > > http://archives.postgresql.org/pgsql-hackers/2006-11/msg00092.php >
-
Neil Conway authored
-
Bruce Momjian authored
* Allow SQL-language functions to return results from RETURNING queries > > http://archives.postgresql.org/pgsql-hackers/2006-10/msg00665.php >
-
Tom Lane authored
equality checks it applies, instead of a random dependence on whatever operators might be named "=". The equality operators will now be selected from the opfamily of the unique index that the FK constraint depends on to enforce uniqueness of the referenced columns; therefore they are certain to be consistent with that index's notion of equality. Among other things this should fix the problem noted awhile back that pg_dump may fail for foreign-key constraints on user-defined types when the required operators aren't in the search path. This also means that the former warning condition about "foreign key constraint will require costly sequential scans" is gone: if the comparison condition isn't indexable then we'll reject the constraint entirely. All per past discussions. Along the way, make the RI triggers look into pg_constraint for their information, instead of using pg_trigger.tgargs; and get rid of the always error-prone fixed-size string buffers in ri_triggers.c in favor of building up the RI queries in StringInfo buffers. initdb forced due to columns added to pg_constraint and pg_trigger.
-
-
- 13 Feb, 2007 6 commits
-
-
Bruce Momjian authored
* Update Bonjour to work with newer cross-platform SDK > http://archives.postgresql.org/pgsql-patches/2006-10/msg00048.php
-
Bruce Momjian authored
> * Improve failure message when DROP DATABASE is used on a database that > has prepared transactions
-
Tom Lane authored
it was executed in. Someday it might be nice to allow cross-DB commits, but work would be needed in NOTIFY and perhaps other places. Per Heikki.
-
Tom Lane authored
socket is still read-ready, the code was a tight loop, wasting lots of CPU. We can't do anything to clear the failure, other than wait, but we should give other processes more chance to finish and release FDs; so insert a small sleep. Also, avoid bogus "close(-1)" in this case. Per report from Jim Nasby.
-
Bruce Momjian authored
* Update Bonjour to work with newer cross-platform SDK > > http://archives.postgresql.org/pgsql-hackers/2006-09/msg02238.php >
-
Bruce Momjian authored
pg_dumpall.
-