1. 17 Nov, 2020 3 commits
    • Peter Geoghegan's avatar
      nbtree: Rename nbtinsert.c variables for consistency. · a034f8b6
      Peter Geoghegan authored
      Stop naming special area/opaque pointer variables 'lpageop' in contexts
      where it doesn't make sense.  This is a holdover from a time when logic
      that performs tasks that are now spread across _bt_insertonpg(),
      _bt_findinsertloc(), and _bt_split() was more centralized.  'lpageop'
      denotes "left page", which doesn't make sense outside of contexts in
      which there isn't also a right page.
      
      Also acquire page flag variables up front within _bt_insertonpg().  This
      makes it closer to _bt_split() following refactoring commit bc3087b6.
      This allows the page split and retail insert paths to both make use of
      the same variables.
      a034f8b6
    • Amit Kapila's avatar
      Fix 'skip-empty-xacts' option in test_decoding for streaming mode. · 9653f24a
      Amit Kapila authored
      In streaming mode, the transaction can be decoded in multiple streams and
      those streams can be interleaved with streams of other transactions. So,
      we can't remember the transaction's write status in the logical decoding
      context because that might get changed due to some other transactions and
      lead to wrong answers for 'skip-empty-xacts' option. We decided to keep
      each transaction's write status in the ReorderBufferTxn to avoid
      interleaved streams changing the status of some unrelated transactions.
      
      Diagnosed-by: Amit Kapila
      Author: Dilip Kumar
      Reviewed-by: Amit Kapila
      Discussion: https://postgr.es/m/CAA4eK1LR7=XNM_TLmpZMFuV8ZQpoxkem--NZJYf8YXmesbvwLA@mail.gmail.com
      9653f24a
    • Tom Lane's avatar
      Don't Insert() a VFD entry until it's fully built. · 2bd49b49
      Tom Lane authored
      Otherwise, if FDDEBUG is enabled, the debugging output fails because
      it tries to read the fileName, which isn't set up yet (and should in
      fact always be NULL).
      
      AFAICT, this has been wrong since Berkeley.  Before 96bf88d5,
      it would accidentally fail to crash on platforms where snprintf()
      is forgiving about being passed a NULL pointer for %s; but the
      file name intended to be included in the debug output wouldn't
      ever have shown up.
      
      Report and fix by Greg Nancarrow.  Although this is only visibly
      broken in custom-made builds, it still seems worth back-patching
      to all supported branches, as the FDDEBUG code is pretty useless
      as it stands.
      
      Discussion: https://postgr.es/m/CAJcOf-cUDgm9qYtC_B6XrC6MktMPNRby2p61EtSGZKnfotMArw@mail.gmail.com
      2bd49b49
  2. 16 Nov, 2020 13 commits
  3. 15 Nov, 2020 7 commits
  4. 14 Nov, 2020 3 commits
  5. 13 Nov, 2020 2 commits
  6. 12 Nov, 2020 12 commits