1. 21 Apr, 2017 2 commits
  2. 20 Apr, 2017 7 commits
    • Tom Lane's avatar
      Add missing erand48.c to libpq/.gitignore. · 77c316be
      Tom Lane authored
      Oversight in commit 818fd4a6.  While at it, sync order of file list
      in .gitignore with those in the Makefile.
      77c316be
    • Alvaro Herrera's avatar
      Improve multivariate statistics documentation · 919f6d74
      Alvaro Herrera authored
      Extended statistics commit 7b504eb2 did not include appropriate
      documentation next to where we document regular planner statistics (I
      ripped what was submitted before commit and then forgot to put it back),
      and while later commit 2686ee1b added some material, it structurally
      depended on what I had ripped out, so the end result wasn't proper.
      
      Fix those problems by shuffling what was added by 2686ee1b and
      including some additional material, so that now chapter 14 "Performance
      Tips" now describes the types of multivariate statistics we currently
      have, and chapter 68 "How the Planner Uses Statistics" shows some
      examples.  The new text should be more in line with previous material,
      in (hopefully) the appropriate depth.
      
      While at it, fix a small bug in pg_statistic_ext docs: one column was
      listed in the wrong spot.
      919f6d74
    • Tom Lane's avatar
      Sync pg_ctl documentation and usage message with reality. · 8bcb31ad
      Tom Lane authored
      Commit 05cd12ed ("pg_ctl: Change default to wait for all actions")
      was a tad sloppy about updating the documentation to match.  The
      documentation was also sorely in need of a copy-editing pass, having
      been adjusted at different times by different people who took little
      care to maintain consistency of style.
      8bcb31ad
    • Peter Eisentraut's avatar
      Modify message when partitioned table is added to publication · 594b526b
      Peter Eisentraut authored
      Give a more specific error message than "xyz is not a table".
      
      Also document in CREATE PUBLICATION which kinds of relations are not
      supported.
      
      based on patch by Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
      594b526b
    • Fujii Masao's avatar
      Prevent log_replication_commands from causing SQL commands to be logged. · 3a66581d
      Fujii Masao authored
      Commit 7c4f5240 allowed walsender to execute normal SQL commands
      to support table sync feature in logical replication. Previously
      while log_statement caused such SQL commands to be logged,
      log_replication_commands caused them to be logged, too.
      That is, such SQL commands were logged twice unexpectedly
      when those settings were both enabled.
      
      This commit forces log_replication_commands to log only replication
      commands, to prevent normal SQL commands from being logged twice.
      
      Author: Masahiko Sawada
      Reviewed-by: Kyotaro Horiguchi
      Reported-by: Fujii Masao
      Discussion: http://postgr.es/m/CAHGQGwFDWh_Qr-q_GEMpD+qH=vYPMdVqw=ZOSY3kX_Pna9R9SA@mail.gmail.com
      3a66581d
    • Fujii Masao's avatar
      Mark some columns in pg_subscription as NOT NULL. · 88b0a319
      Fujii Masao authored
      In pg_subscription, subconninfo, subslotname, subsynccommit and
      subpublications are expected not to be NULL. Therefore this patch
      adds BKI_FORCE_NOT_NULL markings to them.
      
      This patch is basically unnecessary unless the code has a bug which
      wrongly sets either of those columns to NULL. But it's good to have
      this as a safeguard.
      
      Author: Masahiko Sawada
      Reviewed-by: Kyotaro Horiguchi
      Reported-by: Fujii Masao
      Discussion: http://postgr.es/m/CAHGQGwFDWh_Qr-q_GEMpD+qH=vYPMdVqw=ZOSY3kX_Pna9R9SA@mail.gmail.com
      88b0a319
    • Fujii Masao's avatar
      Don't call the function that may raise an error while holding spinlock. · 8bbc618b
      Fujii Masao authored
      It's not safe to raise an error while holding spinlock. But previously
      logical replication worker for table sync called the function which
      reads the system catalog and may raise an error while it's holding
      spinlock. Which could lead to the trouble where spinlock will never
      be released and the server gets stuck infinitely.
      
      Author: Petr Jelinek
      Reviewed-by: Kyotaro Horiguchi and Fujii Masao
      Reported-by: Fujii Masao
      Discussion: http://postgr.es/m/CAHGQGwFDWh_Qr-q_GEMpD+qH=vYPMdVqw=ZOSY3kX_Pna9R9SA@mail.gmail.com
      8bbc618b
  3. 19 Apr, 2017 1 commit
  4. 18 Apr, 2017 16 commits
  5. 17 Apr, 2017 10 commits
  6. 16 Apr, 2017 2 commits
    • Peter Eisentraut's avatar
      Fix typo in comment · c7d225e2
      Peter Eisentraut authored
      Author: Masahiko Sawada <sawada.mshk@gmail.com>
      c7d225e2
    • Tom Lane's avatar
      Sync addRangeTableEntryForENR() with its peer functions. · a1888b59
      Tom Lane authored
      addRangeTableEntryForENR had a check for pstate != NULL, which Coverity
      pointed out was rather useless since it'd already dereferenced pstate
      before that.  More to the point, we'd established policy in commit
      bc93ac12 that we'd require non-NULL pstate for all addRangeTableEntryFor*
      functions; this test was evidently copied-and-pasted from some older
      version of one of those functions.  Make it look more like the others.
      
      In passing, make an elog message look more like the rest of the code,
      too.
      
      Michael Paquier
      a1888b59
  7. 15 Apr, 2017 2 commits
    • Andrew Dunstan's avatar
      Make sure to run one initdb TAP test with no TZ set · 033b969e
      Andrew Dunstan authored
      That way we make sure that initdb's time zone setting code is exercised.
      This doesn't add an extra test, it just alters an existing test.
      
      Discussion: <https://postgr.es/m/5807.1492229253@sss.pgh.pa.us>
      033b969e
    • Tom Lane's avatar
      Provide a way to control SysV shmem attach address in EXEC_BACKEND builds. · a74740fb
      Tom Lane authored
      In standard non-Windows builds, there's no particular reason to care what
      address the kernel chooses to map the shared memory segment at.  However,
      when building with EXEC_BACKEND, there's a risk that the chosen address
      won't be available in all child processes.  Linux with ASLR enabled (which
      it is by default) seems particularly at risk because it puts shmem segments
      into the same area where it maps shared libraries.  We can work around
      that by specifying a mapping address that's outside the range where
      shared libraries could get mapped.  On x86_64 Linux, 0x7e0000000000
      seems to work well.
      
      This is only meant for testing/debugging purposes, so it doesn't seem
      necessary to go as far as providing a GUC (or any user-visible
      documentation, though we might change that later).  Instead, it's just
      controlled by setting an environment variable PG_SHMEM_ADDR to the
      desired attach address.
      
      Back-patch to all supported branches, since the point here is to
      remove intermittent buildfarm failures on EXEC_BACKEND animals.
      Owners of affected animals will need to add a suitable setting of
      PG_SHMEM_ADDR to their build_env configuration.
      
      Discussion: https://postgr.es/m/7036.1492231361@sss.pgh.pa.us
      a74740fb