1. 03 Nov, 2017 6 commits
    • Tom Lane's avatar
      Flag index metapages as standard-format in xlog.c calls. · 4c11d2c5
      Tom Lane authored
      btree, hash, and bloom indexes all set up their metapages in standard
      format (that is, with pd_lower and pd_upper correctly delimiting the
      unused area); but they mostly didn't inform the xlog routines of this.
      When calling log_newpage[_buffer], this is bad because it loses the
      opportunity to compress unused data out of the WAL record.  When
      calling XLogRegisterBuffer, it's not such a performance problem because
      all of these call sites also use REGBUF_WILL_INIT, preventing an FPI
      image from being written.  But it's still a good idea to provide the
      flag when relevant, because that aids WAL consistency checking.
      
      This completes the project of getting all the in-core index AMs to
      handle their metapage WAL operations similarly.
      
      Amit Kapila, reviewed by Michael Paquier
      
      Discussion: https://postgr.es/m/0d273805-0e9e-ec1a-cb84-d4da400b8f85@lab.ntt.co.jp
      4c11d2c5
    • Alvaro Herrera's avatar
      Fix thinkos in BRIN summarization · 1b890562
      Alvaro Herrera authored
      The previous commit contained a thinko that made a single-range
      summarization request process from there to end of table.  Fix by
      setting the correct end range point.  Per buildfarm.
      1b890562
    • Peter Eisentraut's avatar
      doc: Convert ids to upper case at build time · 49df45ac
      Peter Eisentraut authored
      This makes the produced HTML anchors upper case, making it backward
      compatible with the previous (9.6) build system.
      Reported-by: default avatarThomas Kellerer <spam_eater@gmx.net>
      49df45ac
    • Peter Eisentraut's avatar
      Don't reset additional columns on subscriber to NULL on UPDATE · a9fce667
      Peter Eisentraut authored
      When a publisher table has fewer columns than a subscriber, the update
      of a row on the publisher should result in updating of only the columns
      in common.  The previous coding mistakenly reset the values of
      additional columns on the subscriber to NULL because it failed to skip
      updates of columns not found in the attribute map.
      
      Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
      a9fce667
    • Alvaro Herrera's avatar
      Fix BRIN summarization concurrent with extension · ec42a1dc
      Alvaro Herrera authored
      If a process is extending a table concurrently with some BRIN
      summarization process, it is possible for the latter to miss pages added
      by the former because the number of pages is computed ahead of time.
      
      Fix by determining a fresh relation size after inserting the placeholder
      tuple: any process that further extends the table concurrently will
      update the placeholder tuple, while previous pages will be processed by
      the heap scan.
      
      Reported-by: Tomas Vondra
      Reviewed-by: Tom Lane
      Author: Álvaro Herrera
      Discussion: https://postgr.es/m/083d996a-4a8a-0e13-800a-851dd09ad8cc@2ndquadrant.com
      Backpatch-to: 9.5
      ec42a1dc
    • Michael Meskes's avatar
  2. 02 Nov, 2017 13 commits
  3. 01 Nov, 2017 6 commits
  4. 31 Oct, 2017 5 commits
  5. 30 Oct, 2017 4 commits
    • Tom Lane's avatar
      Doc: call out UPDATE syntax change as a v10 compatibility issue. · 86182b18
      Tom Lane authored
      The change made by commit 906bfcad means that if you're writing
      a parenthesized column list in UPDATE ... SET, but that column list
      is only one column, you now need to write ROW(expression) on the
      righthand side, not just a parenthesized expression.  This was an
      intentional change for spec compatibility and potential future
      expansion of the possibilities for the RHS, but I'd neglected to
      document it as a compatibility issue, figuring that hardly anyone
      would bother with parenthesized syntax for a single target column.
      I was wrong, as shown by questions from Justin Pryzby, Adam Brusselback,
      and others.  Move the release note item into the compatibility section
      and point out the behavior change for a single target column.
      
      Discussion: https://postgr.es/m/CAMjNa7cDLzPcs0xnRpkvqmJ6Vb6G3EH8CYGp9ZBjXdpFfTz6dg@mail.gmail.com
      86182b18
    • Alvaro Herrera's avatar
      Fix autovacuum work item error handling · be72b9c3
      Alvaro Herrera authored
      In autovacuum's "work item" processing, a few strings were allocated in
      the current transaction's memory context, which goes away during error
      handling; if an error happened during execution of the work item, the
      pfree() calls to clean up afterwards would try to release already-released
      memory, possibly leading to a crash.  In branch master, this was already
      fixed by commit 335f3d04, so backpatch that to REL_10_STABLE to fix
      the problem there too.
      
      As a secondary problem, verify that the autovacuum worker is connected
      to the right database for each work item; otherwise some items would be
      discarded by workers in other databases.
      
      Reported-by: Justin Pryzby
      Discussion: https://postgr.es/m/20171014035732.GB31726@telsasoft.com
      be72b9c3
    • Magnus Hagander's avatar
      Fix typo · 77954f99
      Magnus Hagander authored
      77954f99
    • Magnus Hagander's avatar
      Fix typo in comment · 854b643c
      Magnus Hagander authored
      Etsuro Fujita
      854b643c
  6. 29 Oct, 2017 3 commits
  7. 28 Oct, 2017 3 commits