refactor: Pass relation OID instead of Relation to createForeignKeyCheckTriggers()
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 25 Mar 2025 15:45:28 +0000 (16:45 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 25 Mar 2025 16:04:12 +0000 (17:04 +0100)
commitef7a5af77d449ee2b426f627c1f7472740350040
tree0c90aac042ff0f172490d3bf3714b0d00c41f393
parent639238b978fefe53b8412f2cc0265f6a2512887a
refactor: Pass relation OID instead of Relation to createForeignKeyCheckTriggers()

Currently, createForeignKeyCheckTriggers() takes a Relation type as
its first argument, but it doesn't use that argument directly.
Instead, it fetches the relation OID by calling RelationGetRelid().
Therefore, it would be more consistent with other functions (e.g.,
createForeignKeyCheckTriggers()) to pass the relation OID directly
instead of the whole Relation.

Author: Amul Sul <amul.sul@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/CAAJ_b962c5AcYW9KUt_R_ER5qs3fUGbe4az-SP-vuwPS-w-AGA@mail.gmail.com
src/backend/commands/tablecmds.c