Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

nodeBitmapHeapscan.c

  • Robert Haas's avatar
    4da99ea4
    Avoid having two copies of the HOT-chain search logic. · 4da99ea4
    Robert Haas authored
    It's been like this since HOT was originally introduced, but the logic
    is complex enough that this is a recipe for bugs, as we've already
    found out with SSI.  So refactor heap_hot_search_buffer() so that it
    can satisfy the needs of index_getnext(), and make index_getnext() use
    that rather than duplicating the logic.
    
    This change was originally proposed by Heikki Linnakangas as part of a
    larger refactoring oriented towards allowing index-only scans.  I
    extracted and adjusted this part, since it seems to have independent
    merit.  Review by Jeff Davis.
    4da99ea4
    History
    Avoid having two copies of the HOT-chain search logic.
    Robert Haas authored
    It's been like this since HOT was originally introduced, but the logic
    is complex enough that this is a recipe for bugs, as we've already
    found out with SSI.  So refactor heap_hot_search_buffer() so that it
    can satisfy the needs of index_getnext(), and make index_getnext() use
    that rather than duplicating the logic.
    
    This change was originally proposed by Heikki Linnakangas as part of a
    larger refactoring oriented towards allowing index-only scans.  I
    extracted and adjusted this part, since it seems to have independent
    merit.  Review by Jeff Davis.