- 15 Aug, 2010 2 commits
-
-
Tom Lane authored
Robert Haas, per gripe from Erik Rijkers
-
Robert Haas authored
Kevin Grittner, with markup adjustments.
-
- 14 Aug, 2010 5 commits
-
-
Tom Lane authored
used by array_agg(), string_agg(), and similar aggregate functions that use "internal" as their transition datatype. The previous coding thought this took *no* extra space, since "internal" is pass-by-value; but actually these aggregates typically consume a great deal of space. Per bug #5608 from Itagaki Takahiro, and fix suggestion from Hitoshi Harada. Back-patch to 8.4, where array_agg was introduced.
-
Tom Lane authored
Update comment about them in pg_get_functiondef.
-
Tom Lane authored
look at a function but don't wish to fire up an editor. Pavel Stehule, reviewed by Jan Urbanski
-
Tom Lane authored
access it on Windows. Per buildfarm.
-
Robert Haas authored
Update the documentation, and back out a few ill-considered changes whose folly I failed to realize for failure to read the documentation.
-
- 13 Aug, 2010 9 commits
-
-
Robert Haas authored
in temp relpaths. Per buildfarm.
-
Tom Lane authored
Also prevent possible repeat opening of pager in helpSQL().
-
Robert Haas authored
This allows us to reliably remove all leftover temporary relation files on cluster startup without reference to system catalogs or WAL; therefore, we no longer include temporary relations in XLOG_XACT_COMMIT and XLOG_XACT_ABORT WAL records. Since these changes require including a backend ID in each SharedInvalSmgrMsg, the size of the SharedInvalidationMessage.id field has been reduced from two bytes to one, and the maximum number of connections has been reduced from INT_MAX / 4 to 2^23-1. It would be possible to remove these restrictions by increasing the size of SharedInvalidationMessage by 4 bytes, but right now that doesn't seem like a good trade-off. Review by Jaime Casanova and Tom Lane.
-
Tom Lane authored
I just noticed that libpq's pqsignal.h was violating our general inclusion style guidelines by explicitly including postgres_fe.h. Remove that, and put it in pqsignal.c where it belongs.
-
Tom Lane authored
functions to the core XML code. Per discussion, the former depends on XMLOPTION while the others do not. These supersede a version previously offered by contrib/xml2. Mike Fowler, reviewed by Pavel Stehule
-
Tom Lane authored
path that specifies useTemp, but there is no active temp schema in the current session. (This can happen if the path was saved during a transaction that created a temp schema and was later rolled back.) For existing callers it's sufficient to ignore the useTemp flag in this case, though we might later want to offer an option to create a fresh temp schema. So far as I can tell this is just an Assert failure: in a non-assert build, the code would push a zero onto the new search path, which is useless but not very harmful. Per bug report from Heikki. Back-patch to 8.3; prior versions don't have this code.
-
Robert Haas authored
Since the only purpose of WAL-loggin SharedInvalidationMessages is to support Hot Standby operation, they needn't be included when wal_level < hot_standby. Back-patch to 9.0. Review by Heikki Linnakanagas and Fujii Masao.
-
Tom Lane authored
and input file name, per bug #5617 from Leo Shklovskii. Rearrange the corresponding code in pg_dump and pg_dumpall so that all three programs handle this in a consistent, straightforward fashion. Back-patch to 9.0, but no further. Although this is certainly a bug, it's possible that people have scripts that will be broken by the added error check, so it seems better not to change the behavior in stable branches.
-
Robert Haas authored
Thom Brown
-
- 12 Aug, 2010 5 commits
-
-
Robert Haas authored
Fujii Masao
-
Tom Lane authored
out immediately on any out-of-memory condition. It's rather pointless to imagine that pgbench will be able to continue usefully after a malloc failure, and in any case there were a number of unchecked mallocs.
-
Tom Lane authored
times) to pgbench. Florian Pflug, reviewed by Greg Smith
-
Bruce Momjian authored
-
Tom Lane authored
and the editor's cursor will be initially placed on that line. In \e the lines are counted with respect to the query buffer, while in \ef they are counted with line 1 = first line of function body. These choices are useful for positioning the cursor on the line of a previously-reported error. To avoid assumptions about what switch the user's editor takes for this purpose, invent a new psql variable EDITOR_LINENUMBER_SWITCH with (at present) no default value. One incompatibility from previous behavior is that "\e 1234" will now take "1234" as a line number not a file name. There are at least two ways to select a numerically-named file if you really want to. Pavel Stehule, reviewed by Jan Urbanski, with further editing by Robert Haas and Tom Lane
-
- 11 Aug, 2010 4 commits
-
-
Bruce Momjian authored
-
Heikki Linnakangas authored
continue to accept an empty array with dimension information. array_send() can output such arrays. Per report from Vladimir Shakhov.
-
Robert Haas authored
Again, back-patch all the way to 7.4.
-
Robert Haas authored
ecpgerrno.h hasn't materially changed since PostgreSQL 7.4, so this has been wrong for a very long time. Back-patch all the way. Satoshi Nagayasu
-
- 10 Aug, 2010 5 commits
-
-
Tom Lane authored
pairs that can be handled by xslt_process(). There is much else to do here, but this patch seems useful in its own right for as long as this code survives. Pavel Stehule, reviewed by Mike Fowler
-
Tom Lane authored
better handling of NULL elements within the arrays. The third parameter is a string that should be used to represent a NULL element, or should be translated into a NULL element, respectively. If the third parameter is NULL it behaves the same as the two-parameter form. There are two incompatible changes in the behavior of the two-parameter form of string_to_array. First, it will return an empty (zero-element) array rather than NULL when the input string is of zero length. Second, if the field separator is NULL, the function splits the string into individual characters, rather than returning NULL as before. These two changes make this form fully compatible with the behavior of the new three-parameter form. Pavel Stehule, reviewed by Brendan Jurd
-
Peter Eisentraut authored
-
Peter Eisentraut authored
surrounding text refers to the example inline.
-
Robert Haas authored
Per observation from Tom Lane that the previous patch to these files was not consistent with what is done elsewhere in the docs.
-
- 09 Aug, 2010 3 commits
-
-
Tom Lane authored
expressions. We need to deal with this when handling subscripts in an array assignment, and also when catching an exception. In an Assert-enabled build these omissions led to Assert failures, but I think in a normal build the only consequence would be short-term memory leakage; which may explain why this wasn't reported from the field long ago. Back-patch to all supported versions. 7.4 doesn't have exceptions, but otherwise these bugs go all the way back. Heikki Linnakangas and Tom Lane
-
Robert Haas authored
Daniele Varrazzo
-
Tom Lane authored
can be caught in the same places that could catch an ordinary RAISE ERROR in the same location. The previous coding insisted on throwing the error from the block containing the active exception handler; which is arguably more surprising, and definitely unlike Oracle's behavior. Not back-patching, since this is a pretty obscure corner case. The risk of breaking somebody's code in a minor version update seems to outweigh any possible benefit. Piyush Newe, reviewed by David Fetter
-
- 08 Aug, 2010 2 commits
-
-
Tom Lane authored
it offers support for namespace mapping. Mike Fowler, reviewed by David Fetter
-
Tom Lane authored
statistics counts. These numbers are being accumulated but haven't yet been transmitted to the collector (and won't be, until the transaction ends). For some purposes, though, it's handy to be able to look at them. Joel Jacobson, reviewed by Itagaki Takahiro
-
- 07 Aug, 2010 2 commits
-
-
Bruce Momjian authored
Peter Fokkinga
-
Tom Lane authored
other columns to be referenced without listing them in GROUP BY, so long as the primary key column(s) are listed in GROUP BY. Eventually we should also allow functional dependency on a UNIQUE constraint when the columns are marked NOT NULL, but that has to wait until NOT NULL constraints are represented in pg_constraint, because we need to have pg_constraint OIDs for all the conditions needed to ensure functional dependency. Peter Eisentraut, reviewed by Alex Hunsaker and Tom Lane
-
- 06 Aug, 2010 3 commits
-
-
Peter Eisentraut authored
-
Tom Lane authored
-
Tom Lane authored
-