pgsql: Change internal plan ID type from uint64 to int64

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Change internal plan ID type from uint64 to int64
Date: 2025-05-31 00:41:15
Message-ID: E1uLAHi-000ncM-1E@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)paquier(dot)xyz>
Reviewed-by: Sami Imseih <samimseih(at)gmail(dot)com>
Discussion: https://postgr.es/m/aCvzJNwetyEI3Sgo@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e050af28686e796bdf22cb53fe3fdf1c6655f315

Modified Files
--------------
src/backend/tcop/postgres.c | 4 ++--
src/backend/utils/activity/backend_status.c | 10 +++++-----
src/include/nodes/plannodes.h | 2 +-
src/include/utils/backend_status.h | 6 +++---
4 files changed, 11 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Dean Rasheed 2025-05-31 11:24:39 pgsql: Fix MERGE into a plain inheritance parent table.
Previous Message Nathan Bossart 2025-05-30 20:18:20 pgsql: Ensure we have a snapshot when updating various system catalogs.