diff options
| author | Andres Freund | 2019-01-21 18:32:19 +0000 |
|---|---|---|
| committer | Andres Freund | 2019-01-21 18:51:37 +0000 |
| commit | e0c4ec07284db817e1f8d9adfb3fffc952252db0 (patch) | |
| tree | ad56d635b246f6d4d0d7a17b2a4ac797d7227b62 /src/backend/partitioning | |
| parent | 111944c5ee567f1c45bf0f1ecfdec682af467aa6 (diff) | |
Replace uses of heap_open et al with the corresponding table_* function.
Author: Andres Freund
Discussion: https://postgr.es/m/20190111000539.xbv7s6w7ilcvm7dp@alap3.anarazel.de
Diffstat (limited to 'src/backend/partitioning')
| -rw-r--r-- | src/backend/partitioning/partbounds.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c index 60993c3a7a5..f21c9b32a60 100644 --- a/src/backend/partitioning/partbounds.c +++ b/src/backend/partitioning/partbounds.c @@ -1213,7 +1213,7 @@ check_default_partition_contents(Relation parent, Relation default_rel, /* Lock already taken above. */ if (part_relid != RelationGetRelid(default_rel)) { - part_rel = heap_open(part_relid, NoLock); + part_rel = table_open(part_relid, NoLock); /* * If the partition constraints on default partition child imply @@ -1227,7 +1227,7 @@ check_default_partition_contents(Relation parent, Relation default_rel, (errmsg("updated partition constraint for default partition \"%s\" is implied by existing constraints", RelationGetRelationName(part_rel)))); - heap_close(part_rel, NoLock); + table_close(part_rel, NoLock); continue; } } @@ -1248,7 +1248,7 @@ check_default_partition_contents(Relation parent, Relation default_rel, RelationGetRelationName(default_rel)))); if (RelationGetRelid(default_rel) != RelationGetRelid(part_rel)) - heap_close(part_rel, NoLock); + table_close(part_rel, NoLock); continue; } @@ -1296,7 +1296,7 @@ check_default_partition_contents(Relation parent, Relation default_rel, FreeExecutorState(estate); if (RelationGetRelid(default_rel) != RelationGetRelid(part_rel)) - heap_close(part_rel, NoLock); /* keep the lock until commit */ + table_close(part_rel, NoLock); /* keep the lock until commit */ } } |
