- Dec 27, 2009
-
-
Bruce Momjian authored
use in binary upgrades. Bump catalog version for detection by pg_migrator of new backend API.
-
- Dec 26, 2009
-
-
Bruce Momjian authored
Allow enums to be created with zero labels, for use during binary upgrade.
-
- Dec 24, 2009
-
-
Bruce Momjian authored
Modify pg_dump --binary-upgrade and add backend support routines to support the preservation of pg_type oids when doing a binary upgrade. This allows user-defined composite types and arrays to be binary upgraded.
-
- Dec 23, 2009
-
-
Bruce Momjian authored
-
Peter Eisentraut authored
-
- Dec 19, 2009
-
-
Peter Eisentraut authored
-
Itagaki Takahiro authored
PL/pgSQL-by-default patch broke the code for 8.3 <= server_version < 8.5.
-
Simon Riggs authored
Enabled by recovery_connections = on (default) and forcing archive recovery using a recovery.conf. Recovery processing now emulates the original transactions as they are replayed, providing full locking and MVCC behaviour for read only queries. Recovery must enter consistent state before connections are allowed, so there is a delay, typically short, before connections succeed. Replay of recovering transactions can conflict and in some cases deadlock with queries during recovery; these result in query cancellation after max_standby_delay seconds have expired. Infrastructure changes have minor effects on normal running, though introduce four new types of WAL record. New test mode "make standbycheck" allows regression tests of static command behaviour on a standby server while in recovery. Typical and extreme dynamic behaviours have been checked via code inspection and manual testing. Few port specific behaviours have been utilised, though primary testing has been on Linux only so far. This commit is the basic patch. Additional changes will follow in this release to enhance some aspects of behaviour, notably improved handling of conflicts, deadlock detection and query cancellation. Changes to VACUUM FULL are also required. Simon Riggs, with significant and lengthy review by Heikki Linnakangas, including streamlined redesign of snapshot creation and two-phase commit. Important contributions from Florian Pflug, Mark Kirkwood, Merlin Moncure, Greg Stark, Gianni Ciolli, Gabriele Bartolini, Hannu Krosing, Robert Haas, Tatsuo Ishii, Hiroyuki Yamada plus support and feedback from many other community members.
-
- Dec 18, 2009
-
-
Bruce Momjian authored
-
Tom Lane authored
short-circuit the rather expensive identify_system_timezone() procedure, which we have no real need for during initdb since nothing done here depends on the timezone setting. Since we launch quite a few standalone backends during the initdb sequence, this adds up to a significant savings, and seems worth doing to save developer time even though it will hardly matter to end users. Per my report today on pgsql-hackers.
-
- Dec 15, 2009
-
-
Itagaki Takahiro authored
Passing NULL string to snprintf is avoided.
-
- Dec 14, 2009
-
-
Itagaki Takahiro authored
Use pg_largeobject_metadata.oid instead of pg_largeobject.loid to enumerate existing large objects in pg_dump, pg_restore, and contrib modules.
-
- Dec 11, 2009
-
-
Itagaki Takahiro authored
A new system catalog pg_largeobject_metadata manages ownership and access privileges of large objects. KaiGai Kohei, reviewed by Jaime Casanova.
-
- Dec 10, 2009
-
-
Peter Eisentraut authored
pg_ctl gets a new mode that runs initdb. Adjust the documentation a bit to not assume that initdb is the only way to run database cluster initialization. But don't replace initdb as the canonical way. Author: Zdenek Kotala <Zdenek.Kotala@Sun.COM>
-
- Dec 07, 2009
-
-
Tom Lane authored
support any indexable commutative operator, not just equality. Two rows violate the exclusion constraint if "row1.col OP row2.col" is TRUE for each of the columns in the constraint. Jeff Davis, reviewed by Robert Haas
-
- Dec 01, 2009
-
-
Bruce Momjian authored
Adjust psql -f - to behave like a normal file and honor the -1 flag. Report from Robert Haas
-
- Nov 25, 2009
-
-
Tom Lane authored
the time, rather than hoping we can tell whether the terminal supports UTF8 characters. Per discussion.
-
- Nov 22, 2009
-
-
Tom Lane authored
in the formerly-always-blank columns just to left and right of the data. Different marking is used for a line break caused by a newline in the data than for a straight wraparound. A newline break is signaled by a "+" in the right margin column in ASCII mode, or a carriage return arrow in UNICODE mode. Wraparound is signaled by a dot in the right margin as well as the following left margin in ASCII mode, or an ellipsis symbol in the same places in UNICODE mode. "\pset linestyle old-ascii" is added to make the previous behavior available if anyone really wants it. In passing, this commit also cleans up a few regression test files that had unintended spacing differences from the current actual output. Roger Leigh, reviewed by Gabrielle Roth and other members of PDXPUG.
-
Peter Eisentraut authored
the client encoding is UTF-8. a limited version of a patch proposed by Itagaki Takahiro
-
- Nov 20, 2009
-
-
Tom Lane authored
checked to determine whether the trigger should be fired. For BEFORE triggers this is mostly a matter of spec compliance; but for AFTER triggers it can provide a noticeable performance improvement, since queuing of a deferred trigger event and re-fetching of the row(s) at end of statement can be short-circuited if the trigger does not need to be fired. Takahiro Itagaki, reviewed by KaiGai Kohei.
-
- Nov 19, 2009
-
-
Peter Eisentraut authored
fixed in 8.4 and 8.5 Author: Guillaume Lelarge <guillaume@lelarge.info>
-
- Nov 14, 2009
-
-
Magnus Hagander authored
Win32. Also refactor the code around it to be more clear. Jesse Morris
-
- Nov 12, 2009
-
-
Tom Lane authored
Per discussion, this should result in defaulting to SQL_ASCII encoding. The original coding could not support that because it conflated selection of SQL_ASCII encoding with not being able to determine the encoding. Adjust pg_get_encoding_from_locale()'s API to distinguish these cases, and fix callers appropriately. Only initdb actually changes behavior, since the other callers were perfectly content to consider these cases equivalent. Per bug #5178 from Boh Yap. Not going to bother back-patching, since no one has complained before and there's an easy workaround (namely, specify the encoding you want).
-
Tom Lane authored
directly. This was a lot of trouble, but should be worth it in terms of not having to keep the plpgsql lexer in step with core anymore. In addition the handling of keywords is significantly better-structured, allowing us to de-reserve a number of words that plpgsql formerly treated as reserved.
-
- Nov 11, 2009
-
-
Peter Eisentraut authored
for an arguably more pleasant display.
-
Tom Lane authored
mainloop.c. This ensures that postgres_fe.h is read before including any system headers, which is necessary to avoid problems on some platforms where we make nondefault selections of feature macros for stdio.h or other headers. We have had this policy for flex modules in the backend for many years, but for some reason it was not applied to psql. Per trouble report from Alexandra Roy and diagnosis by Albe Laurenz.
-
- Nov 03, 2009
-
-
Peter Eisentraut authored
The rationale is that view definitions tend to be long and obscure the main information about the view.
-
- Oct 28, 2009
-
-
Tom Lane authored
This has always worked, up until somebody's thinko here: http://archives.postgresql.org/pgsql-committers/2009-04/msg00233.php Per bug #5143 from Piotr Wolinski.
-
- Oct 20, 2009
-
-
Peter Eisentraut authored
-
- Oct 16, 2009
-
-
Heikki Linnakangas authored
vacuumdb produces. Per report by Thom Brown.
-
- Oct 15, 2009
-
-
Tom Lane authored
are named in the UPDATE's SET list. Note: the schema of pg_trigger has not actually changed; we've just started to use a column that was there all along. catversion bumped anyway so that this commit is included in the history of potentially interesting changes to system catalog contents. Itagaki Takahiro
-
- Oct 13, 2009
-
-
Tom Lane authored
ASCII-art style of table output to be upgraded to use Unicode box drawing characters if desired. By default, psql will use the Unicode characters whenever client_encoding is UTF8. The patch forces linestyle=ascii in pg_regress usage, ensuring we don't break the regression tests in Unicode locales. Roger Leigh
-
Tom Lane authored
the keywords as a consequence of the GRANT ALL patch, so we might as well use them and make the ALTER commands read more naturally.
-
- Oct 09, 2009
-
-
Peter Eisentraut authored
Add a variant of pg_get_triggerdef with a second argument "pretty" that causes the output to be formatted in the way pg_dump used to do. Use this variant in pg_dump with server versions >= 8.5. This insulates pg_dump from most future trigger feature additions, such as the upcoming column triggers patch. Author: Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>
-
- Oct 08, 2009
-
-
Alvaro Herrera authored
I also thank Bernd Helmle for the documentation help on the previous settings patch, which I forgot on the commit message.
-
Alvaro Herrera authored
Create a new catalog pg_db_role_setting where they are now stored, and better encapsulate the code that deals with settings into its realm. The old datconfig and rolconfig columns are removed. psql has gained a \drds command to display the settings. Backwards compatibility warning: while the backwards-compatible system views still have the config columns, they no longer completely represent the configuration for a user or database. Catalog version bumped.
-
- Oct 05, 2009
-
-
Tom Lane authored
the privileges that will be applied to subsequently-created objects. Such adjustments are always per owning role, and can be restricted to objects created in particular schemas too. A notable benefit is that users can override the traditional default privilege settings, eg, the PUBLIC EXECUTE privilege traditionally granted by default for functions. Petr Jelinek
-
- Sep 27, 2009
-
-
Tom Lane authored
Marko Kreen, Tom Lane
-
- Sep 23, 2009
-
-
Tom Lane authored
to create a function for it. Procedural languages now have an additional entry point, namely a function to execute an inline code block. This seemed a better design than trying to hide the transient-ness of the code from the PL. As of this patch, only plpgsql has an inline handler, but probably people will soon write handlers for the other standard PLs. In passing, remove the long-dead LANCOMPILER option of CREATE LANGUAGE. Petr Jelinek
-
- Sep 19, 2009
-
-
Tom Lane authored
trying to parse COPY options exactly in psql's \copy support. Instead, just send the options as-is and let the backend sort it out. Emmanuel Cecchet
-