postgresql/src/include/fe_utils
Nathan Bossart 750816971b Add ParallelSlotSetIdle().
This commit refactors the code for marking a ParallelSlot as idle
to a new static inline function.  This can be used to mark a slot
that was obtained via ParallelSlotGetIdle() but that we don't
intend to actually use for a query as idle again.

This is preparatory work for a follow-up commit that will add a
--dry-run option to vacuumdb.

Reviewed-by: Corey Huinker <corey.huinker@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com
Discussion: https://postgr.es/m/CADkLM%3DckHkX7Of5SrK7g0LokPUwJ%3Dkk8JU1GXGF5pZ1eBVr0%3DQ%40mail.gmail.com
2025-12-09 13:34:22 -06:00
..
archive.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
astreamer.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
cancel.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
conditional.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
connect_utils.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
mbprint.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
option_utils.h Remove inappropriate inclusions of c.h and postgres_fe.h. 2025-04-27 16:58:57 -04:00
parallel_slot.h Add ParallelSlotSetIdle(). 2025-12-09 13:34:22 -06:00
print.h Add \pset options for boolean value display 2025-11-03 17:40:39 +01:00
psqlscan.h Get rid of O(N^2) script-parsing overhead in pgbench. 2025-02-27 10:53:38 -05:00
psqlscan_int.h Allow redeclaration of typedef yyscan_t 2025-09-12 08:16:00 +02:00
query_utils.h Remove inappropriate inclusions of c.h and postgres_fe.h. 2025-04-27 16:58:57 -04:00
recovery_gen.h pg_rewind: Add dbname to primary_conninfo when using --write-recovery-conf. 2025-03-12 16:56:04 -07:00
simple_list.h pg_restore cleanups 2025-04-16 12:04:34 -04:00
string_utils.h Specify the encoding of input to fmtId() 2025-02-10 10:03:37 -05:00
version.h Introduce frontend API able to retrieve the contents of PG_VERSION 2025-10-14 16:20:42 +09:00