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/commands/createas.c | |
| parent | 111944c5ee567f1c45bf0f1ecfdec682af467aa6 (diff) | |
Replace uses of heap_open et al with the corresponding table_* function.
Author: Andres Freund
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/commands/createas.c')
| -rw-r--r-- | src/backend/commands/createas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/createas.c b/src/backend/commands/createas.c index 5947996d673..2bc8f928eab 100644 --- a/src/backend/commands/createas.c +++ b/src/backend/commands/createas.c @@ -504,7 +504,7 @@ intorel_startup(DestReceiver *self, int operation, TupleDesc typeinfo) /* * Finally we can open the target table */ - intoRelationDesc = heap_open(intoRelationAddr.objectId, AccessExclusiveLock); + intoRelationDesc = table_open(intoRelationAddr.objectId, AccessExclusiveLock); /* * Check INSERT permission on the constructed table. @@ -605,7 +605,7 @@ intorel_shutdown(DestReceiver *self) heap_sync(myState->rel); /* close rel, but keep lock until commit */ - heap_close(myState->rel, NoLock); + table_close(myState->rel, NoLock); myState->rel = NULL; } |
