- 18 Feb, 2011 4 commits
-
-
Alvaro Herrera authored
More generally, arrays are turned in Perl array references, and row and composite types are turned into Perl hash references. This is done recursively, in a way that's natural to every Perl programmer. To avoid a backwards compatibility hit, the string representation of each structure is also available if the function requests it. Authors: Alexey Klyukin and Alex Hunsaker. Some code cleanups by me.
-
Alvaro Herrera authored
-
Alvaro Herrera authored
This allows the user to change the path to be used more easily. Also, change URL in README.
-
Tom Lane authored
ts_typanalyze.c computes MCE statistics as fractions of the non-null rows, which seems fairly reasonable, and anyway changing it in released versions wouldn't be a good idea. But then ts_selfuncs.c has to account for that. Failure to do so results in overestimates in columns with a significant fraction of null documents. Back-patch to 8.4 where this stuff was introduced. Jesper Krogh
-
- 17 Feb, 2011 15 commits
-
-
Tom Lane authored
Update script was being sloppy about two functions that have been changed since 9.0.
-
Tom Lane authored
Take care of a couple of discrepancies between what you get from a fresh install and what the first-draft update-from-unpackaged scripts produced.
-
Tom Lane authored
The initial version of the update-from-unpackaged script neglected to include the <> operators that were added to the opclasses during 9.1. To make this script produce the same final state as the regular install script, use the same ALTER OPERATOR FAMILY trick as in pg_trgm.
-
Robert Haas authored
Peter Eisentraut, reviewed by Steve Singer, Alvaro Herrera, and me.
-
Robert Haas authored
Simon Riggs reports that rnode.dbNode and rnode.spcNode were generating unused variable warnings on gcc 4.4.3 with CFLAGS=-O1
-
Bruce Momjian authored
Erik Rijkers
-
Tom Lane authored
Take care of some loose ends in the update-from-unpackaged script, and apply some ugly hacks to ensure that it produces the same catalog state as the fresh-install script. Per discussion, this seems like a safer plan than having two different catalog states that both call themselves "pg_trgm 1.0", even if it's not immediately clear that the subtle differences would ever matter. Also, fix the stub function gin_extract_trgm() so that it works instead of just bleating. Needed because this function will get called during a regular dump and reload, if there are any indexes using its opclass. The user won't have an opportunity to update the extension till later, so telling him to do so is unhelpful.
-
Bruce Momjian authored
-
Bruce Momjian authored
unique exception, or if not used in read committed transaction mode.
-
Bruce Momjian authored
because concat() is a built-in function. Erik Rijkers
-
Robert Haas authored
Stephen Frost, somewhat rewritten by me
-
Robert Haas authored
Thom Brown
-
Robert Haas authored
Instead, document how to build it manually. Per discussion. KaiGai Kohei, with some wordsmithing by me.
-
Tom Lane authored
Doesn't anybody around here pay attention to compiler warnings?
-
Tom Lane authored
That function was supposing that indexoid == 0 for a hypothetical index, but that is not likely to be true in any non-toy implementation of an index adviser, since assigning a fake OID is the only way to know at EXPLAIN time which hypothetical index got selected. Fix by adding a flag to IndexOptInfo to mark hypothetical indexes. Back-patch to 9.0 where get_actual_variable_range() was added. Gurjeet Singh
-
- 16 Feb, 2011 13 commits
-
-
Tom Lane authored
These are needed to support reloading dumps of 9.0 installations containing contrib/intarray or contrib/tsearch2. Since not only regular dump/reload but binary upgrade would fail, it seems worth the trouble to carry these stubs for awhile. Note that the contrib opclasses referencing these functions will still work fine, since GIN doesn't actually pay any attention to the declared signature of a support function.
-
Peter Eisentraut authored
This was previously not very useful, but with many people customizing the linestyle, it is nice for a consistent appearance.
-
Peter Eisentraut authored
When testing the stderr produced by various thread-support flags, also run a compilation in addition to a link, because clang warns on certain flags when compiling but not when linking.
-
Peter Eisentraut authored
The first argument of PyEval_EvalCode() was changed from PyCodeObject* to PyObject* because of PEP 384.
-
Bruce Momjian authored
always zeros. Also no need to free memory before we exit.
-
Simon Riggs authored
Standby optionally sends back information about oldestXmin of queries which is then checked and applied to the WALSender's proc->xmin. GetOldestXmin() is modified slightly to agree with GetSnapshotData(), so that all backends on primary include WALSender within their snapshots. Note this does nothing to change the snapshot xmin on either master or standby. Feedback piggybacks on the standby reply message. vacuum_defer_cleanup_age is no longer used on standby, though parameter still exists on primary, since some use cases still exist. Simon Riggs, review comments from Fujii Masao, Heikki Linnakangas, Robert Haas
-
Tom Lane authored
This seems a bit more user-friendly.
-
Alvaro Herrera authored
-
Robert Haas authored
Per report from, and discussion with, Fujii Masao.
-
Tom Lane authored
(I'm not entirely sure that we've finished bikeshedding the syntax details, but the functionality seems OK.) Pavel Stehule, reviewed by Stephen Frost and Tom Lane
-
Robert Haas authored
Fujii Masao, reviewed by Robert Haas, Stephen Frost, and Magnus Hagander.
-
Itagaki Takahiro authored
They are expected to be used by extension modules like file_fdw. There are no user-visible changes. Itagaki Takahiro Reviewed and tested by Kevin Grittner and Noah Misch.
-
Bruce Momjian authored
output.
-
- 15 Feb, 2011 8 commits
-
-
Tom Lane authored
Normally, pg_dump summarily excludes functions in pg_catalog from consideration. However, some extensions may create functions in pg_catalog (adminpack already does that, and extensions for procedural languages will likely do it too). In binary-upgrade mode, we have to dump such functions, or the extension will be incomplete after upgrading. Per experimentation with adminpack.
-
Alvaro Herrera authored
-
Tom Lane authored
Recent releases had a check on rel->rd_refcnt in heap_drop_with_catalog, but failed to cover the possibility of pending trigger events at DROP time. (Before 8.4 we didn't even check the refcnt.) When the trigger events were eventually fired, you'd get "could not open relation with OID nnn" errors, as in recent report from strk. Better to throw a suitable error when the DROP is attempted. Also add a similar check in DROP INDEX. Back-patch to all supported branches.
-
Bruce Momjian authored
-
Tom Lane authored
All the other ones that are primarily a new datatype say "data type for <purpose>", so make this one similar.
-
Tom Lane authored
Comment about MaxAllocSize was not updated when the TOAST-header macros were replaced in 8.3 "varvarlena" changes. Per report from Frederik Ramm.
-
Robert Haas authored
Per reports from Fujii Masao.
-
Robert Haas authored
The new name, max_pred_locks_per_transaction, is shorter. Kevin Grittner, per discussion.
-