mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Code review for standalone composite types, query-specified composite
types, SRFs. Not happy with memory management yet, but I'll commit these other changes.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user