Skip to content
Snippets Groups Projects
  1. Jan 29, 2013
    • Simon Riggs's avatar
      Fast promote mode skips checkpoint at end of recovery. · fd4ced52
      Simon Riggs authored
      pg_ctl promote -m fast will skip the checkpoint at end of recovery so that we
      can achieve very fast failover when the apply delay is low. Write new WAL record
      XLOG_END_OF_RECOVERY to allow us to switch timeline correctly for downstream log
      readers. If we skip synchronous end of recovery checkpoint we request a normal
      spread checkpoint so that the window of re-recovery is low.
      
      Simon Riggs and Kyotaro Horiguchi, with input from Fujii Masao.
      Review by Heikki Linnakangas
      fd4ced52
  2. Jan 28, 2013
    • Alvaro Herrera's avatar
      REASSIGN OWNED: handle shared objects, too · ee22c55f
      Alvaro Herrera authored
      Give away ownership of shared objects (databases, tablespaces) along
      with local objects, per original code intention.  Try to make the
      documentation clearer, too.
      
      Per discussion about DROP OWNED's brokenness, in bug #7748.
      
      This is not backpatched because it'd require some refactoring of the
      ALTER/SET OWNER code for databases and tablespaces.
      ee22c55f
    • Alvaro Herrera's avatar
      DROP OWNED: don't try to drop tablespaces/databases · ec41b8ed
      Alvaro Herrera authored
      My "fix" for bugs #7578 and #6116 on DROP OWNED at fe3b5eb0 not only
      misstated that it applied to REASSIGN OWNED (which it did not affect),
      but it also failed to fix the problems fully, because I didn't test the
      case of owned shared objects.  Thus I created a new bug, reported by
      Thomas Kellerer as #7748, which would cause DROP OWNED to fail with a
      not-for-user-consumption error message.  The code would attempt to drop
      the database, which not only fails to work because the underlying code
      does not support that, but is a pretty dangerous and undesirable thing
      to be doing as well.
      
      This patch fixes that bug by having DROP OWNED only attempt to process
      shared objects when grants on them are found, ignoring ownership.
      
      Backpatch to 8.3, which is as far as the previous bug was backpatched.
      ec41b8ed
    • Heikki Linnakangas's avatar
      Handle SPIErrors raised directly in PL/Python code. · 316186f2
      Heikki Linnakangas authored
      If a PL/Python function raises an SPIError (or one if its subclasses)
      directly with python's raise statement, treat it the same as an SPIError
      generated internally. In particular, if the user sets the sqlstate
      attribute, preserve that.
      
      Oskari Saarenmaa and Jan Urbański, reviewed by Karl O. Pinc.
      316186f2
  3. Jan 27, 2013
  4. Jan 26, 2013
    • Tom Lane's avatar
      Make LATERAL implicit for functions in FROM. · 2378d79a
      Tom Lane authored
      The SQL standard does not have general functions-in-FROM, but it does
      allow UNNEST() there (see the <collection derived table> production),
      and the semantics of that are defined to include lateral references.
      So spec compliance requires allowing lateral references within UNNEST()
      even without an explicit LATERAL keyword.  Rather than making UNNEST()
      a special case, it seems best to extend this flexibility to any
      function-in-FROM.  We'll still allow LATERAL to be written explicitly
      for clarity's sake, but it's now a noise word in this context.
      
      In theory this change could result in a change in behavior of existing
      queries, by allowing what had been an outer reference in a function-in-FROM
      to be captured by an earlier FROM-item at the same level.  However, all
      pre-9.3 PG releases have a bug that causes them to match variable
      references to earlier FROM-items in preference to outer references (and
      then throw an error).  So no previously-working query could contain the
      type of ambiguity that would risk a change of behavior.
      
      Per a suggestion from Andrew Gierth, though I didn't use his patch.
      2378d79a
    • Bruce Momjian's avatar
      Update comments in new DROP IF EXISTS code; commit message update · 8865fe0a
      Bruce Momjian authored
      DROP IF EXISTS with a missing schema in commit
      7e2322df applies not only to tables, but
      to DROP IF EXISTS with missing schemas for indexes, views, sequences,
      and foreign tables.  Yeah!
      8865fe0a
    • Bruce Momjian's avatar
      Update LookupExplicitNamespace() comments; commit message update · 51cfb87a
      Bruce Momjian authored
      Also, commit 7e2322df affected DROP
      TABLE IF EXISTS, not CREATE TABLE IF EXISTS.
      51cfb87a
    • Bruce Momjian's avatar
      Issue ERROR if FREEZE mode can't be honored by COPY · 4deb57de
      Bruce Momjian authored
      Previously non-honored FREEZE mode was ignored.  This also issues an
      appropriate error message based on the cause of the failure, per
      suggestion from Tom.  Additional regression test case added.
      4deb57de
    • Bruce Momjian's avatar
      Allow CREATE TABLE IF EXIST so succeed if the schema is nonexistent · 7e2322df
      Bruce Momjian authored
      Previously, CREATE TABLE IF EXIST threw an error if the schema was
      nonexistent.  This was done by passing 'missing_ok' to the function that
      looks up the schema oid.
      7e2322df
    • Bruce Momjian's avatar
      doc: revert 80c20fcf and · 7c83619b
      Bruce Momjian authored
      0e93959a
      
      Revert patch that modified doc index mentions of search_path
      
      Per Peter E.
      7c83619b
  5. Jan 25, 2013
  6. Jan 24, 2013
  7. Jan 23, 2013
Loading