1. 20 Jun, 2017 4 commits
    • Bruce Momjian's avatar
      pg_upgrade: start/stop new server after pg_resetwal · b710248d
      Bruce Momjian authored
      When commit 0f33a719 removed the
      instructions to start/stop the new cluster before running rsync, it was
      now possible for pg_resetwal/pg_resetxlog to leave the final WAL record
      at wal_level=minimum, preventing upgraded standby servers from
      reconnecting.
      
      This patch fixes that by having pg_upgrade unconditionally start/stop
      the new cluster after pg_resetwal/pg_resetxlog has run.
      
      Backpatch through 9.2 since, though the instructions were added in PG
      9.5, they worked all the way back to 9.2.
      
      Discussion: https://postgr.es/m/20170620171844.GC24975@momjian.us
      
      Backpatch-through: 9.2
      b710248d
    • Tom Lane's avatar
      Don't downcase entries within shared_preload_libraries et al. · a69dfe5f
      Tom Lane authored
      load_libraries(), which processes the various xxx_preload_libraries GUCs,
      was parsing them using SplitIdentifierString() which isn't really
      appropriate for values that could be path names: it downcases unquoted
      text, and it doesn't allow embedded whitespace unless quoted.
      Use SplitDirectoriesString() instead.  That also allows us to simplify
      load_libraries() a bit, since canonicalize_path() is now done for it.
      
      While this definitely seems like a bug fix, it has the potential to
      break configuration settings that accidentally worked before because
      of the downcasing behavior.  Also, there's an easy workaround for the
      bug, namely to double-quote troublesome text.  Hence, no back-patch.
      
      QL Zhuo, tweaked a bit by me
      
      Discussion: https://postgr.es/m/CAB-oJtxHVDc3H+Km3CjB9mY1VDzuyaVH_ZYSz7iXcRqCtb93Ew@mail.gmail.com
      a69dfe5f
    • Peter Eisentraut's avatar
      Tweak publication fetching in psql · a2141c42
      Peter Eisentraut authored
      Viewing a table with \d in psql also shows the publications at table is
      in.  If a publication is concurrently dropped, this shows an error,
      because the view pg_publication_tables internally uses
      pg_get_publication_tables(), which uses a catalog snapshot.  This can be
      particularly annoying if a for-all-tables publication is concurrently
      dropped.
      
      To avoid that, write the query in psql differently.  Expose the function
      pg_relation_is_publishable() to SQL and write the query using that.
      That still has a risk of being affected by concurrent catalog changes,
      but in this case it would be a table drop that causes problems, and then
      the psql \d command wouldn't be interesting anymore anyway.
      Reported-by: default avatarTom Lane <tgl@sss.pgh.pa.us>
      a2141c42
    • Peter Eisentraut's avatar
      Change pg_get_publication_tables to prosecdef false · 20d7d68b
      Peter Eisentraut authored
      This was apparently a mistake in the original commit.
      Reported-by: default avatarTom Lane <tgl@sss.pgh.pa.us>
      20d7d68b
  2. 19 Jun, 2017 6 commits
  3. 18 Jun, 2017 2 commits
  4. 17 Jun, 2017 8 commits
  5. 16 Jun, 2017 5 commits
  6. 15 Jun, 2017 10 commits
  7. 14 Jun, 2017 5 commits