1. 18 Mar, 2017 5 commits
    • Stephen Frost's avatar
      pg_dump: Remove "option requires an argument -- j" test · 5abda5a3
      Stephen Frost authored
      This is really testing getopt more than pg_dump, and what getopt returns
      exactly appears to differ based on platform, so remove this test.
      
      Per buildfarm.
      5abda5a3
    • Stephen Frost's avatar
      Improve pg_dump regression tests and code coverage · 31a8b77a
      Stephen Frost authored
      These improvements bring the lines-of-code coverage of pg_dump.c up to
      87.7% (at least using LCOV 1.12, 1.11 seems to differ slightly).  Nearly
      every function is covered, three of the four which aren't are only
      called when talking to older PG instances.
      
      There is more which can, and should, be done here to improve the
      coverage but it's past time to see what the buildfarm thinks of this.
      
      What has been added:
      
      - Coverage for many more command-line options
      - Use command_fails_like instead of command_exit_is
      - Operator classes, operator families
      - Text search configuration, templates, parsers, dictionaries
      - FDWs, servers, foreign tables
      - Materialized views
      - Improved Publications / Subscriptions test (though this needs work,
        see PG10 open items and tests marked with XXX in 002_pg_dump.pl)
      - Unlogged tables
      - Partitioned tables
      - Additional ACL testing for various object types
      
      There is room for improvement, specifically:
      
      - Various type-based option (alignment, storage, etc)
      - Composite type collation
      - Extra Procedural language functions (inline, validator)
      - Different function options (SRF, Transform, config, security definer,
        cost, leakproof)
      - OpClass options (default, storage, order by, recheck)
      - OpFamily options (order by, recheck)
      - Aggregate functions (combinefunc, serialfunc, deserialfunc, etc)
      - Text Search parser 'headline'
      - Text Search template 'init'
      - FDW options (handler, validator, options)
      - Server options (type, version, options)
      - User mapping options
      - Default ACLs for sequences, types
      - Security labels
      - View circular dependencies (last function that needs coverage)
      - Toast table autovacuum options
      - Replica identity options
      - Independent indexes (plus marking them as clustered on)
      - Deferrable / initially deferred constraints
      - Independent domain constraints
      
      There's bits of extension pg_dump'ing also not covered, but those will
      need to go into test_pg_dump (such as having a filter for config
      tables).
      
      Last, but not least, this approximately halves the number of tests run
      with 'ok()' by removing the ok()-based checking of if all runs are
      covered by each test.  Instead, 002_pg_dump.pl will just exit out in
      such a case (with a message in the log file).  In general, when adding
      tests, cover all runs unless there is a very good reason not to (such as
      adding a 'catch-all' case).  With these changes, the resulting output
      and number of "tests" run is actually reduced.
      31a8b77a
    • Peter Eisentraut's avatar
      doc: Correct row count in table · 164bdbe9
      Peter Eisentraut authored
      The incorrect count causes FOP to error out.
      164bdbe9
    • Robert Haas's avatar
      Create and use wait events for read, write, and fsync operations. · 249cf070
      Robert Haas authored
      Previous commits, notably 53be0b1a and
      6f3bd98e, made it possible to see from
      pg_stat_activity when a backend was stuck waiting for another backend,
      but it's also fairly common for a backend to be stuck waiting for an
      I/O.  Add wait events for those operations, too.
      
      Rushabh Lathia, with further hacking by me.  Reviewed and tested by
      Michael Paquier, Amit Kapila, Rajkumar Raghuwanshi, and Rahila Syed.
      
      Discussion: http://postgr.es/m/CAGPqQf0LsYHXREPAZqYGVkDqHSyjf=KsD=k0GTVPAuzyThh-VQ@mail.gmail.com
      249cf070
    • Michael Meskes's avatar
  2. 17 Mar, 2017 10 commits
  3. 16 Mar, 2017 10 commits
  4. 15 Mar, 2017 14 commits
  5. 14 Mar, 2017 1 commit
    • 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