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

checkpointer.c

  • Heikki Linnakangas's avatar
    1c6821be
    Fix and enhance the assertion of no palloc's in a critical section. · 1c6821be
    Heikki Linnakangas authored
    The assertion failed if WAL_DEBUG or LWLOCK_STATS was enabled; fix that by
    using separate memory contexts for the allocations made within those code
    blocks.
    
    This patch introduces a mechanism for marking any memory context as allowed
    in a critical section. Previously ErrorContext was exempt as a special case.
    
    Instead of a blanket exception of the checkpointer process, only exempt the
    memory context used for the pending ops hash table.
    1c6821be
    History
    Fix and enhance the assertion of no palloc's in a critical section.
    Heikki Linnakangas authored
    The assertion failed if WAL_DEBUG or LWLOCK_STATS was enabled; fix that by
    using separate memory contexts for the allocations made within those code
    blocks.
    
    This patch introduces a mechanism for marking any memory context as allowed
    in a critical section. Previously ErrorContext was exempt as a special case.
    
    Instead of a blanket exception of the checkpointer process, only exempt the
    memory context used for the pending ops hash table.