From 47ed658c59e5945dba4acdc0e99f24df5d588f4f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 30 Sep 2003 00:59:51 +0000 Subject: [PATCH] heap_open => relation_open to avoid unwanted restriction on relkind. Per gripe from Gaetano Mendola. --- src/pl/plpgsql/src/pl_comp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pl/plpgsql/src/pl_comp.c b/src/pl/plpgsql/src/pl_comp.c index 7c9011ab7e..8db48e6f84 100644 --- a/src/pl/plpgsql/src/pl_comp.c +++ b/src/pl/plpgsql/src/pl_comp.c @@ -3,7 +3,7 @@ * procedural language * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.68 2003/09/25 23:02:12 tgl Exp $ + * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.69 2003/09/30 00:59:51 tgl Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -1466,7 +1466,7 @@ plpgsql_build_rowtype(Oid classOid) /* * Open the relation to get info. */ - rel = heap_open(classOid, AccessShareLock); + rel = relation_open(classOid, AccessShareLock); classStruct = RelationGetForm(rel); relname = RelationGetRelationName(rel); @@ -1568,7 +1568,7 @@ plpgsql_build_rowtype(Oid classOid) } } - heap_close(rel, AccessShareLock); + relation_close(rel, AccessShareLock); return row; } -- 2.40.0