1. 18 Mar, 2017 2 commits
  2. 17 Mar, 2017 10 commits
  3. 16 Mar, 2017 10 commits
  4. 15 Mar, 2017 14 commits
  5. 14 Mar, 2017 4 commits
    • Robert Haas's avatar
      Some preliminary refactoring towards partitionwise join. · c44c47a7
      Robert Haas authored
      Partitionwise join proposes add a concept of child join relations,
      which will have the same relationship with join relations as "other
      member" relations do with base relations.  These relations will need
      some but not all of the handling that we currently have for join
      relations, and some but not all of the handling that we currently have
      for appendrels, since they are a mix of the two.  Refactor a little
      bit so that the necessary bits of logic are exposed as separate
      functions.
      
      Ashutosh Bapat, reviewed and tested by Rajkumar Raghuwanshi and
      by me.
      
      Discussion: http://postgr.es/m/CAFjFpRfqotRR6cM3sooBHMHEVdkFfAZ6PyYg4GRZsoMuW08HjQ@mail.gmail.com
      c44c47a7
    • Andres Freund's avatar
      Improve isolation tests infrastructure. · 60f826c5
      Andres Freund authored
      Previously if a directory had both isolationtester and plain
      regression tests, they couldn't be run in parallel, because they'd
      access the same files/directories.  That, so far, only affected
      contrib/test_decoding.
      
      Rather than fix that locally in contrib/test_decoding, improve
      pg_regress_isolation_[install]check to use separate resources from
      plain regression tests.
      
      That requires a minor change in pg_regress, namely that the
      --outputdir is created if not already existing, that seems like good
      idea anyway.
      
      Use the improved helpers even where previously not used.
      
      Author: Tom Lane and Andres Freund
      Discussion: https://postgr.es/m/20170311194831.vm5ikpczq52c2drg@alap3.anarazel.de
      60f826c5
    • Peter Eisentraut's avatar
      Add option to control snapshot export to CREATE_REPLICATION_SLOT · eb4da3e3
      Peter Eisentraut authored
      We used to export snapshots unconditionally in CREATE_REPLICATION_SLOT
      in the replication protocol, but several upcoming patches want more
      control over what happens.
      
      Suppress snapshot export in pg_recvlogical, which neither needs nor can
      use the exported snapshot.  Since snapshot exporting can fail this
      improves reliability.
      
      This also paves the way for allowing the creation of replication slots
      on standbys, which cannot export snapshots because they cannot allocate
      new XIDs.
      
      Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
      eb4da3e3
    • Andres Freund's avatar
      amcheck: Harden tests against concurrent autovacuums. · 71504026
      Andres Freund authored
      The previous coding of the test was vulnerable against autovacuum
      triggering work on one of the tables in check_btree.sql.
      
      For the purpose of the test it's entirely sufficient to check for
      locks taken by the current process, so add an appropriate restriction.
      While touching the test, expand it to also check for locks on the
      underlying relations, rather than just the indexes.
      
      Reported-By: Tom Lane
      Discussion: https://postgr.es/m/30354.1489434301@sss.pgh.pa.us
      71504026