aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2025-04-16 17:59:08 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2025-04-16 17:59:08 -0400
commitab3d8afc7f426cb562d96a673f620fc6fa404ebd (patch)
treeae0a07e337dfa24fb4c0ac8c9ca15868f8bf60cb /src
parent11ff192b5bb707ba9ec13a0b6c7468874403abb3 (diff)
downloadpostgresql-ab3d8afc7f426cb562d96a673f620fc6fa404ebd.tar.gz
postgresql-ab3d8afc7f426cb562d96a673f620fc6fa404ebd.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/tablecmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index 5fad1fa44c1..f971f6019ca 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -12384,7 +12384,7 @@ ATExecAlterConstraintInternal(List **wqueue, ATAlterConstraint *cmdcon,
static bool
ATExecAlterConstrEnforceability(List **wqueue, ATAlterConstraint *cmdcon,
Relation conrel, Relation tgrel,
- const Oid fkrelid, const Oid pkrelid,
+ Oid fkrelid, Oid pkrelid,
HeapTuple contuple, LOCKMODE lockmode,
Oid ReferencedParentDelTrigger,
Oid ReferencedParentUpdTrigger,
@@ -12732,7 +12732,7 @@ AlterConstrTriggerDeferrability(Oid conoid, Relation tgrel, Relation rel,
static void
AlterConstrEnforceabilityRecurse(List **wqueue, ATAlterConstraint *cmdcon,
Relation conrel, Relation tgrel,
- const Oid fkrelid, const Oid pkrelid,
+ Oid fkrelid, Oid pkrelid,
HeapTuple contuple, LOCKMODE lockmode,
Oid ReferencedParentDelTrigger,
Oid ReferencedParentUpdTrigger,