Skip to content
Snippets Groups Projects
  1. Dec 27, 2009
  2. Dec 26, 2009
  3. Dec 24, 2009
    • Bruce Momjian's avatar
      Binary upgrade: · c44327af
      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.
      c44327af
  4. Dec 23, 2009
  5. Dec 19, 2009
    • Peter Eisentraut's avatar
      Translation updates · baab7a04
      Peter Eisentraut authored
      baab7a04
    • Itagaki Takahiro's avatar
      Add a whitespace to fix the query to dump large objects. · ce1489fa
      Itagaki Takahiro authored
      PL/pgSQL-by-default patch broke the code for 8.3 <= server_version < 8.5.
      ce1489fa
    • Simon Riggs's avatar
      Allow read only connections during recovery, known as Hot Standby. · efc16ea5
      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.
      efc16ea5
  6. Dec 18, 2009
  7. Dec 15, 2009
  8. Dec 14, 2009
  9. Dec 11, 2009
  10. Dec 10, 2009
    • Peter Eisentraut's avatar
      Add init[db] option to pg_ctl · a37b001b
      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>
      a37b001b
  11. Dec 07, 2009
  12. Dec 01, 2009
    • Bruce Momjian's avatar
      psql -f - · b291c0fb
      Bruce Momjian authored
      Adjust psql -f - to behave like a normal file and honor the -1 flag.
      
      Report from Robert Haas
      b291c0fb
  13. Nov 25, 2009
  14. Nov 22, 2009
    • Tom Lane's avatar
      Improve psql's tabular display of wrapped-around data by inserting markers · 1753337c
      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.
      1753337c
    • Peter Eisentraut's avatar
      Ignore UTF-8-encoded Unicode byte-order mark at the beginning of a file if · 93d3bac5
      Peter Eisentraut authored
      the client encoding is UTF-8.
      
      a limited version of a patch proposed by Itagaki Takahiro
      93d3bac5
  15. Nov 20, 2009
    • Tom Lane's avatar
      Add a WHEN clause to CREATE TRIGGER, allowing a boolean expression to be · 7fc0f062
      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.
      7fc0f062
  16. Nov 19, 2009
  17. Nov 14, 2009
  18. Nov 12, 2009
    • Tom Lane's avatar
      Make initdb behave sanely when the selected locale has codeset "US-ASCII". · 8f8a5df6
      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).
      8f8a5df6
    • Tom Lane's avatar
      Remove plpgsql's separate lexer (finally!), in favor of using the core lexer · 2dee828c
      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.
      2dee828c
  19. Nov 11, 2009
  20. Nov 03, 2009
  21. Oct 28, 2009
  22. Oct 20, 2009
  23. Oct 16, 2009
  24. Oct 15, 2009
    • Tom Lane's avatar
      Support SQL-compliant triggers on columns, ie fire only if certain columns · b2734a0d
      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
      b2734a0d
  25. Oct 13, 2009
  26. Oct 09, 2009
    • Peter Eisentraut's avatar
      Use pg_get_triggerdef in pg_dump · b865d275
      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>
      b865d275
  27. Oct 08, 2009
    • Alvaro Herrera's avatar
      Add the new psql command \drds to the psql docs, help and tab completion. · 474f8255
      Alvaro Herrera authored
      I also thank Bernd Helmle for the documentation help on the previous settings
      patch, which I forgot on the commit message.
      474f8255
    • Alvaro Herrera's avatar
      Make it possibly to specify GUC params per user and per database. · 2eda8dfb
      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.
      2eda8dfb
  28. Oct 05, 2009
    • Tom Lane's avatar
      Create an ALTER DEFAULT PRIVILEGES command, which allows users to adjust · 249724cb
      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
      249724cb
  29. Sep 27, 2009
  30. Sep 23, 2009
    • Tom Lane's avatar
      Implement the DO statement to support execution of PL code without having · 9048b731
      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
      9048b731
  31. Sep 19, 2009
Loading