Skip to content

Commit

Permalink
Make some code cleaning in pg_ivm.c
Browse files Browse the repository at this point in the history
Remove some while characters, and replace RangeVarGetRelidExtende
with RangeVarGetRelid, which are introduced by edde972.
  • Loading branch information
yugo-n committed Oct 21, 2024
1 parent edde972 commit 48ddc99
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pg_ivm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand All @@ -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);
}

/*
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 48ddc99

Please sign in to comment.