From 64505ed58ba71df3221e2467dc458af2e1912895 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 29 Aug 2002 00:17:06 +0000 Subject: Code review for standalone composite types, query-specified composite types, SRFs. Not happy with memory management yet, but I'll commit these other changes. --- contrib/dbsize/dbsize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/dbsize/dbsize.c') diff --git a/contrib/dbsize/dbsize.c b/contrib/dbsize/dbsize.c index 0e5e63d1ee..8bc216bf79 100644 --- a/contrib/dbsize/dbsize.c +++ b/contrib/dbsize/dbsize.c @@ -112,7 +112,7 @@ relation_size(PG_FUNCTION_ARGS) relrv = makeRangeVarFromNameList(textToQualifiedNameList(relname, "relation_size")); - relation = relation_openrv(relrv, AccessShareLock); + relation = heap_openrv(relrv, AccessShareLock); relnode = relation->rd_rel->relfilenode; @@ -140,7 +140,7 @@ relation_size(PG_FUNCTION_ARGS) segcount++; } - relation_close(relation, AccessShareLock); + heap_close(relation, AccessShareLock); PG_RETURN_INT64(totalsize); } -- cgit v1.2.1