- Mar 17, 2008
-
-
Tom Lane authored
maintenance_work_mem and effective_cache_size on index creation speed.
-
- Mar 12, 2008
-
-
Tom Lane authored
pg_listener modifications commanded by LISTEN and UNLISTEN until the end of the current transaction. This allows us to hold the ExclusiveLock on pg_listener until after commit, with no greater risk of deadlock than there was before. Aside from fixing the race condition, this gets rid of a truly ugly kludge that was there before, namely having to ignore HeapTupleBeingUpdated failures during NOTIFY. There is a small potential incompatibility, which is that if a transaction issues LISTEN or UNLISTEN and then looks into pg_listener before committing, it won't see any resulting row insertion or deletion, where before it would have. It seems unlikely that anyone would be depending on that, though. This patch also disallows LISTEN and UNLISTEN inside a prepared transaction. That case had some pretty undesirable properties already, such as possibly allowing pg_listener entries to be made for PIDs no longer present, so disallowing it seems like a better idea than trying to maintain the behavior.
-
- Mar 10, 2008
-
-
Tom Lane authored
-1 to 1, not 0 to 1. The actual behavior for values within this range does not change. Kris Jurka
-
- Mar 03, 2008
-
-
Bruce Momjian authored
-
- Feb 18, 2008
-
-
Peter Eisentraut authored
-
- Feb 15, 2008
-
-
Tom Lane authored
(or RETURNING), but only when the output name is not any SQL keyword. This seems as close as we can get to the standard's syntax without a great deal of thrashing. Original patch by Hiroshi Saito, amended by me.
-
- Feb 03, 2008
-
-
Tom Lane authored
Also make links clickable.
-
- Jan 16, 2008
-
-
Andrew Dunstan authored
-
- Jan 03, 2008
-
-
Tom Lane authored
and CLUSTER) execute as the table owner rather than the calling user, using the same privilege-switching mechanism already used for SECURITY DEFINER functions. The purpose of this change is to ensure that user-defined functions used in index definitions cannot acquire the privileges of a superuser account that is performing routine maintenance. While a function used in an index is supposed to be IMMUTABLE and thus not able to do anything very interesting, there are several easy ways around that restriction; and even if we could plug them all, there would remain a risk of reading sensitive information and broadcasting it through a covert channel such as CPU usage. To prevent bypassing this security measure, execution of SET SESSION AUTHORIZATION and SET ROLE is now forbidden within a SECURITY DEFINER context. Thanks to Itagaki Takahiro for reporting this vulnerability. Security: CVE-2007-6600
-
- Dec 11, 2007
-
-
Tom Lane authored
-
Tom Lane authored
useful and confuses people who think it is the same as -U. (Eventually we might want to re-introduce it as being an alias for -U, but that should not happen until the switch has actually not been there for a few releases.) Likewise in pg_dump and pg_restore. Per gripe from Robert Treat and subsequent discussion.
-
- Dec 04, 2007
-
-
Tom Lane authored
-
- Nov 28, 2007
-
-
Peter Eisentraut authored
-
Bruce Momjian authored
Joshua D. Drake
-
- Nov 26, 2007
-
-
Peter Eisentraut authored
-
- Nov 18, 2007
-
-
Tom Lane authored
plans.
-
- Nov 10, 2007
-
-
Bruce Momjian authored
start/shutdown.
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- Nov 07, 2007
-
-
Peter Eisentraut authored
-
Peter Eisentraut authored
-
- Oct 30, 2007
-
-
Tom Lane authored
simplify the syntax examples by unifying user and group cases, and fix no-longer-correct example of psql \z output. Per Erwin Brandstetter.
-
- Oct 29, 2007
-
-
Bruce Momjian authored
Guillaume Lelarge
-
- Oct 25, 2007
-
-
Tom Lane authored
the sequence. Also, make setval() with is_called = false not affect the currval state, either. Per report from Kris Jurka that an implicit ALTER SEQUENCE OWNED BY unexpectedly caused currval() to become valid. Since this isn't 100% backwards compatible, it will go into HEAD only; I'll put a more limited patch into 8.2.
-
Tom Lane authored
in corner cases such as re-fetching a just-deleted row. We may be able to relax this someday, but let's find out how many people really care before we invest a lot of work in it. Per report from Heikki and subsequent discussion. While in the neighborhood, make the combination of INSENSITIVE and FOR UPDATE throw an error, since they are semantically incompatible. (Up to now we've accepted but just ignored the INSENSITIVE option of DECLARE CURSOR.)
-
Tom Lane authored
-
- Oct 17, 2007
-
-
Tom Lane authored
Notably, standardize on using "token" for the strings output by a parser, while "lexeme" is reserved for the normalized strings produced by a dictionary.
-
- Oct 10, 2007
-
-
Neil Conway authored
-
- Oct 07, 2007
-
-
Alvaro Herrera authored
also" entries for autovacuum in analyze and vacuum reference pages, and enhance usage of cross-references in the maintenance page.
-
- Oct 03, 2007
-
-
Tom Lane authored
documentation. Heikki and Tom
-
- Sep 29, 2007
-
-
Tom Lane authored
databases with encodings that are incompatible with the server's LC_CTYPE locale, when we can determine that (which we can on most modern platforms, I believe). C/POSIX locale is compatible with all encodings, of course, so there is still some usefulness to CREATE DATABASE's ENCODING option, but this will insulate us against all sorts of recurring complaints caused by mismatched settings. I moved initdb's existing LC_CTYPE-to-encoding mapping knowledge into a new src/port/ file so it could be shared by CREATE DATABASE.
-
- Sep 27, 2007
-
-
Tom Lane authored
- create a separate archive_mode GUC, on which archive_command is dependent - %r option in recovery.conf sends last restartpoint to recovery command - %r used in pg_standby, updated README - minor other code cleanup in pg_standby - doc on Warm Standby now mentions pg_standby and %r - log_restartpoints recovery option emits LOG message at each restartpoint - end of recovery now displays last transaction end time, as requested by Warren Little; also shown at each restartpoint - restart archiver if needed to carry away WAL files at shutdown Simon Riggs
-
- Sep 24, 2007
-
-
Andrew Dunstan authored
produces text it is an encoding hole and if not it's incompatible with the spec, whatever the spec means (which we're not sure about anyway).
-
- Sep 20, 2007
-
-
Tom Lane authored
columns, and the new version can be stored on the same heap page, we no longer generate extra index entries for the new version. Instead, index searches follow the HOT-chain links to ensure they find the correct tuple version. In addition, this patch introduces the ability to "prune" dead tuples on a per-page basis, without having to do a complete VACUUM pass to recover space. VACUUM is still needed to clean up dead index entries, however. Pavan Deolasee, with help from a bunch of other people.
-
- Sep 14, 2007
-
-
Bruce Momjian authored
Albe Laurenz
-
- Sep 11, 2007
-
-
Tom Lane authored
transaction, unless rolled back or overridden by a SET clause for the same variable attached to a surrounding function call. Per discussion, these seem the best semantics. Note that this is an INCOMPATIBLE CHANGE: in 8.0 through 8.2, SET LOCAL's effects disappeared at subtransaction commit (leading to behavior that made little sense at the SQL level). I took advantage of the opportunity to rewrite and simplify the GUC variable save/restore logic a little bit. The old idea of a "tentative" value is gone; it was a hangover from before we had a stack. Also, we no longer need a stack entry for every nesting level, but only for those in which a variable's value actually changed.
-
- Sep 07, 2007
-
-
Tom Lane authored
databases, per gripe from hubert depesz lubaczewski. Patch from Simon Riggs.
-
- Sep 03, 2007
-
-
Tom Lane authored
(Actually, it works as a plain statement too, but I didn't document that because it seems a bit useless.) Unify VariableResetStmt with VariableSetStmt, and clean up some ancient cruft in the representation of same.
-
Tom Lane authored
There are still some loose ends: I didn't do anything about the SET FROM CURRENT idea yet, and it's not real clear whether we are happy with the interaction of SET LOCAL with function-local settings. The documentation is a bit spartan, too.
-
- Aug 22, 2007
-
-
Tom Lane authored
-