Make some code cleaning in pg_ivm.c
Remove some while characters, and replace RangeVarGetRelidExtende
with RangeVarGetRelid, which are introduced by edde972624.
This commit is contained in:
parent
edde972624
commit
48ddc99f44
1 changed files with 6 additions and 6 deletions
12
pg_ivm.c
12
pg_ivm.c
|
|
@ -326,9 +326,9 @@ CreateChangePreventTrigger(Oid matviewOid)
|
||||||
Oid
|
Oid
|
||||||
PgIvmImmvRelationId(void)
|
PgIvmImmvRelationId(void)
|
||||||
{
|
{
|
||||||
return RangeVarGetRelidExtended(
|
return RangeVarGetRelid(
|
||||||
makeRangeVar("pg_catalog", "pg_ivm_immv", -1),
|
makeRangeVar("pg_catalog", "pg_ivm_immv", -1),
|
||||||
AccessShareLock, RVR_MISSING_OK, NULL, NULL);
|
AccessShareLock, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -337,9 +337,9 @@ PgIvmImmvRelationId(void)
|
||||||
Oid
|
Oid
|
||||||
PgIvmImmvPrimaryKeyIndexId(void)
|
PgIvmImmvPrimaryKeyIndexId(void)
|
||||||
{
|
{
|
||||||
return RangeVarGetRelidExtended(
|
return RangeVarGetRelid(
|
||||||
makeRangeVar("pg_catalog", "pg_ivm_immv_pkey", -1),
|
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
|
* 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
|
* (expect IMMVs also gone soon), or renamed. It's not great that a
|
||||||
* rename of either object will silently break IMMVs, but that's
|
* rename of either object will silently break IMMVs, but that's
|
||||||
* better than ERROR below.
|
* better than ERROR below.
|
||||||
*/
|
*/
|
||||||
if (pgIvmImmvPkOid == InvalidOid || pgIvmImmvOid == InvalidOid)
|
if (pgIvmImmvPkOid == InvalidOid || pgIvmImmvOid == InvalidOid)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pgIvmImmv = table_open(pgIvmImmvOid, AccessShareLock);
|
pgIvmImmv = table_open(pgIvmImmvOid, AccessShareLock);
|
||||||
ScanKeyInit(&key,
|
ScanKeyInit(&key,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue