pgsql: Sync declarations and definitions of two new tablecmds.c functio

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Sync declarations and definitions of two new tablecmds.c functio
Date: 2025-04-16 21:59:13
Message-ID: E1u5Amn-000OAR-17@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Sync declarations and definitions of two new tablecmds.c functions.

Buildfarm member drongo complained because the definitions of these
functions used "const Oid foo" where the forward declarations just
had "Oid foo". (I'm a bit surprised that drongo seems to be the only
complainant.) I chose to fix this by removing the "consts" because
(a) I'm generally not a fan of using const that way, and (b) it was
a minority usage even within these two functions, let alone compared
to the rest of our code base.

Oversight in commit eec0040c4, so no need for back-patch.

Branch
------
master

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

Modified Files
--------------
src/backend/commands/tablecmds.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2025-04-16 23:03:59 pgsql: Improve comments for estimate_multivariate_ndistinct()
Previous Message Álvaro Herrera 2025-04-16 20:02:33 pgsql: Elide not-null constraint checks on child tables during PK creat