postgresql/src/include/storage
Thomas Munro b5d0f8ec01 Allow parent's WaitEventSets to be freed after fork().
An epoll fd belonging to the parent should be closed in the child.  A
kqueue fd is automatically closed by fork(), but we should still adjust
our counter.  For poll and Windows systems, nothing special is required.
On all systems we free the memory.

No caller yet, but we'll need this if we start using WaitEventSet in the
postmaster as planned.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKG%2BZ-HpOj1JsO9eWUP%2Bar7npSVinsC_npxSy%2BjdOMsx%3DGg%40mail.gmail.com
2022-12-23 20:34:03 +13:00
..
.gitignore When trace_lwlocks is used, identify individual lwlocks by name. 2015-09-11 14:01:39 -04:00
backendid.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
barrier.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
block.h Convert macros to static inline functions (block.h) 2022-07-07 08:36:51 +02:00
buf.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
buf_internals.h Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
buffile.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
bufmgr.h Clean up some inconsistencies with GUC declarations 2022-10-31 12:44:48 +09:00
bufpage.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
checksum.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
checksum_impl.h Convert macros to static inline functions (bufpage.h) 2022-07-11 07:21:52 +02:00
condition_variable.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
copydir.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
dsm.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
dsm_impl.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
fd.h Update types in File API 2022-12-08 08:58:15 +01:00
fileset.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
freespace.h Change internal RelFileNode references to RelFileNumber or RelFileLocator. 2022-07-06 11:39:09 -04:00
fsm_internals.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
indexfsm.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
ipc.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
item.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
itemid.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
itemptr.h Convert macros to static inline functions (itemptr.h) 2022-07-13 14:47:36 +02:00
large_object.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
latch.h Allow parent's WaitEventSets to be freed after fork(). 2022-12-23 20:34:03 +13:00
lmgr.h Add new block-by-block strategy for CREATE DATABASE. 2022-03-29 11:48:36 -04:00
lock.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
lockdefs.h Add missing space in comments. 2022-07-21 16:25:07 +05:30
lwlock.h Static assertions cleanup 2022-12-15 10:10:32 +01:00
md.h Change internal RelFileNode references to RelFileNumber or RelFileLocator. 2022-07-06 11:39:09 -04:00
meson.build Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
off.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_sema.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_shmem.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
pmsignal.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
predicate.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
predicate_internals.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
proc.h lwlock: Fix quadratic behavior with very long wait lists 2022-11-20 11:56:32 -08:00
procarray.h Improve heuristics for compressing the KnownAssignedXids array. 2022-11-29 15:43:17 -05:00
proclist.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
proclist_types.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
procsignal.h Fix DROP {DATABASE,TABLESPACE} on Windows. 2022-02-12 10:21:23 +13:00
reinit.h Clean up some residual confusion between OIDs and RelFileNumbers. 2022-07-28 10:20:29 -04:00
relfilelocator.h Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
s_lock.h Allow use of __sync_lock_test_and_set for spinlocks on any machine. 2022-11-02 17:37:29 -04:00
sharedfileset.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
shm_mq.h shm_mq_sendv: Fix flushing bug when receiver not yet attached. 2022-05-31 08:46:54 -04:00
shm_toc.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
shmem.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
sinval.h Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
sinvaladt.h Expose some information about backend subxact status. 2022-12-19 14:43:09 -05:00
smgr.h Change internal RelFileNode references to RelFileNumber or RelFileLocator. 2022-07-06 11:39:09 -04:00
spin.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
standby.h Standardize rmgrdesc recovery conflict XID output. 2022-11-17 14:55:08 -08:00
standbydefs.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
sync.h Change internal RelFileNode references to RelFileNumber or RelFileLocator. 2022-07-06 11:39:09 -04:00