Change internal plan ID type from uint64 to int64
authorMichael Paquier <michael@paquier.xyz>
Sat, 31 May 2025 00:40:45 +0000 (09:40 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 31 May 2025 00:40:45 +0000 (09:40 +0900)
commite050af28686e796bdf22cb53fe3fdf1c6655f315
tree7082598a0c82415104c4ffed4c7da830bb395ec9
parent706054b11b959c865c0c7935c34d92370d7168d4
Change internal plan ID type from uint64 to int64

uint64 was chosen to be consistent with the type used by the query ID,
but the conclusion of a recent discussion for the query ID is that int64
is a better fit as the signed form is shown to the user, for PGSS or
EXPLAIN outputs.

This commit changes the plan ID to use int64, following c3eda50b0648
that has done the same for the query ID.

The plan ID is new to v18, introduced in 2a0cd38da5cc.

Author: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Sami Imseih <samimseih@gmail.com>
Discussion: https://postgr.es/m/aCvzJNwetyEI3Sgo@paquier.xyz
src/backend/tcop/postgres.c
src/backend/utils/activity/backend_status.c
src/include/nodes/plannodes.h
src/include/utils/backend_status.h