1. 20 Sep, 2019 3 commits
  2. 19 Sep, 2019 10 commits
  3. 18 Sep, 2019 5 commits
  4. 17 Sep, 2019 3 commits
  5. 16 Sep, 2019 2 commits
  6. 15 Sep, 2019 3 commits
  7. 14 Sep, 2019 3 commits
  8. 13 Sep, 2019 7 commits
  9. 12 Sep, 2019 4 commits
    • Peter Geoghegan's avatar
      Fix nbtree page split rmgr desc routine. · 3b6b54f1
      Peter Geoghegan authored
      Include newitemoff in rmgr desc output for nbtree page split records.
      In passing, correct an obsolete comment that claimed that newitemoff is
      only logged for _L variant nbtree page split WAL records.
      
      Both issues were oversights in commit 2c03216d, which revamped the
      WAL format.
      
      Author: Peter Geoghegan
      Backpatch: 9.5-, where the WAL format was revamped.
      3b6b54f1
    • Tom Lane's avatar
      Fix usage of whole-row variables in WCO and RLS policy expressions. · 7f1f72c4
      Tom Lane authored
      Since WITH CHECK OPTION was introduced, ExecInitModifyTable has
      initialized WCO expressions with the wrong plan node as parent -- that is,
      it passed its input subplan not the ModifyTable node itself.  Up to now
      we thought this was harmless, but bug #16006 from Vinay Banakar shows it's
      not: if the input node is a SubqueryScan then ExecInitWholeRowVar can get
      confused into doing the wrong thing.  (The fact that ExecInitWholeRowVar
      contains such logic is certainly a horrid kluge that doesn't deserve to
      live, but figuring out another way to do that is a task for some other day.)
      
      Andres had already noticed the wrong-parent mistake and fixed it in commit
      148e632c, but not being aware of any user-visible consequences, he quite
      reasonably didn't back-patch.  This patch is simply a back-patch of
      148e632c, plus addition of a test case based on bug #16006.  I also added
      the test case to v12/HEAD, even though the bug is already fixed there.
      
      Back-patch to all supported branches.  9.4 lacks RLS policies so the
      new test case doesn't work there, but I'm pretty sure a test could be
      devised based on using a whole-row Var in a plain WITH CHECK OPTION
      condition.  (I lack the cycles to do so myself, though.)
      
      Andres Freund and Tom Lane
      
      Discussion: https://postgr.es/m/16006-99290d2e4642cbd5@postgresql.org
      Discussion: https://postgr.es/m/20181205225213.hiwa3kgoxeybqcqv@alap3.anarazel.de
      7f1f72c4
    • Peter Geoghegan's avatar
      Reorder two nbtree.h function prototypes. · 614cdeaa
      Peter Geoghegan authored
      Make the function prototype order consistent with the definition order
      in nbtinsert.c.
      614cdeaa
    • Peter Geoghegan's avatar
      1b9becd4