summaryrefslogtreecommitdiff
path: root/contrib/dbsize/dbsize.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-08-29 00:17:06 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-08-29 00:17:06 +0000
commit64505ed58ba71df3221e2467dc458af2e1912895 (patch)
tree3c110a6d9e3badd87d741976871028760b8f55b5 /contrib/dbsize/dbsize.c
parent7483749d8207c0cbcce5ce69161400ace31a6856 (diff)
downloadpostgresql-64505ed58ba71df3221e2467dc458af2e1912895.tar.gz
Code review for standalone composite types, query-specified composite
types, SRFs. Not happy with memory management yet, but I'll commit these other changes.
Diffstat (limited to 'contrib/dbsize/dbsize.c')
-rw-r--r--contrib/dbsize/dbsize.c4
1 files changed, 2 insertions, 2 deletions
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);
}