]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Repurpose PROC_COPYABLE_FLAGS as PROC_XMIN_FLAGS
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 19 May 2022 14:20:32 +0000 (16:20 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 19 May 2022 14:20:32 +0000 (16:20 +0200)
commit8d9d1286acf9f209243cbcddc53cc4c875a90e20
treec901f2f9ec9ced9f9bdfa1ca3a77afb703e46ebe
parent3f712ea6dc40a0c9d5cf96907655343039601473
Repurpose PROC_COPYABLE_FLAGS as PROC_XMIN_FLAGS

This is a slight, convenient semantics change from what commit
0f0cfb494004 ("Fix parallel operations that prevent oldest xmin from
advancing") introduced that lets us simplify the coding in the one place
where it is used.

Backpatch to 13.  This is related to commit 6fea65508a1a ("Tighten
ComputeXidHorizons' handling of walsenders") rewriting the code site
where this is used, which has not yet been backpatched, but it may well
be in the future.

Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/202204191637.eldwa2exvguw@alvherre.pgsql
src/backend/storage/ipc/procarray.c
src/include/storage/proc.h