pgsql: Sync declarations and definitions of two new tablecmds.c functio - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Sync declarations and definitions of two new tablecmds.c functio
Date
Msg-id E1u5Amn-000OAR-17@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Álvaro Herrera
Date:
Subject: pgsql: Elide not-null constraint checks on child tables during PK creat
Next
From: David Rowley
Date:
Subject: pgsql: Improve comments for estimate_multivariate_ndistinct()