From 48ddc99f44245caa1f088b3ad755a4ce24bf5fd4 Mon Sep 17 00:00:00 2001 From: Yugo Nagata Date: Mon, 21 Oct 2024 13:12:50 +0900 Subject: [PATCH] Make some code cleaning in pg_ivm.c Remove some while characters, and replace RangeVarGetRelidExtende with RangeVarGetRelid, which are introduced by edde972624b7a. --- pg_ivm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pg_ivm.c b/pg_ivm.c index e874509..c1b7ac8 100644 --- a/pg_ivm.c +++ b/pg_ivm.c @@ -326,9 +326,9 @@ CreateChangePreventTrigger(Oid matviewOid) Oid PgIvmImmvRelationId(void) { - return RangeVarGetRelidExtended( + return RangeVarGetRelid( makeRangeVar("pg_catalog", "pg_ivm_immv", -1), - AccessShareLock, RVR_MISSING_OK, NULL, NULL); + AccessShareLock, true); } /* @@ -337,9 +337,9 @@ PgIvmImmvRelationId(void) Oid PgIvmImmvPrimaryKeyIndexId(void) { - return RangeVarGetRelidExtended( + return RangeVarGetRelid( makeRangeVar("pg_catalog", "pg_ivm_immv_pkey", -1), - AccessShareLock, RVR_MISSING_OK, NULL, NULL); + AccessShareLock, true); } /* @@ -395,10 +395,10 @@ PgIvmObjectAccessHook(ObjectAccessType access, Oid classId, * Index or table not yet created (so no IMMVs yet), already dropped * (expect IMMVs also gone soon), or renamed. It's not great that a * rename of either object will silently break IMMVs, but that's - * better than ERROR below. + * better than ERROR below. */ if (pgIvmImmvPkOid == InvalidOid || pgIvmImmvOid == InvalidOid) - return; + return; pgIvmImmv = table_open(pgIvmImmvOid, AccessShareLock); ScanKeyInit(&key,