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

dbcommands.c

Blame
    • Tom Lane's avatar
      d1cbd26d
      Repair two places where SIGTERM exit could leave shared memory state · d1cbd26d
      Tom Lane authored
      corrupted.  (Neither is very important if SIGTERM is used to shut down the
      whole database cluster together, but there's a problem if someone tries to
      SIGTERM individual backends.)  To do this, introduce new infrastructure
      macros PG_ENSURE_ERROR_CLEANUP/PG_END_ENSURE_ERROR_CLEANUP that take care
      of transiently pushing an on_shmem_exit cleanup hook.  Also use this method
      for createdb cleanup --- that wasn't a shared-memory-corruption problem,
      but SIGTERM abort of createdb could leave orphaned files lying around.
      
      Backpatch as far as 8.2.  The shmem corruption cases don't exist in 8.1,
      and the createdb usage doesn't seem important enough to risk backpatching
      further.
      d1cbd26d
      History
      Repair two places where SIGTERM exit could leave shared memory state
      Tom Lane authored
      corrupted.  (Neither is very important if SIGTERM is used to shut down the
      whole database cluster together, but there's a problem if someone tries to
      SIGTERM individual backends.)  To do this, introduce new infrastructure
      macros PG_ENSURE_ERROR_CLEANUP/PG_END_ENSURE_ERROR_CLEANUP that take care
      of transiently pushing an on_shmem_exit cleanup hook.  Also use this method
      for createdb cleanup --- that wasn't a shared-memory-corruption problem,
      but SIGTERM abort of createdb could leave orphaned files lying around.
      
      Backpatch as far as 8.2.  The shmem corruption cases don't exist in 8.1,
      and the createdb usage doesn't seem important enough to risk backpatching
      further.