Skip to content

Commit 47ed658

Browse files
committed
heap_open => relation_open to avoid unwanted restriction on relkind.
Per gripe from Gaetano Mendola.
1 parent e33f205 commit 47ed658

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pl/plpgsql/src/pl_comp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* procedural language
44
*
55
* IDENTIFICATION
6-
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.68 2003/09/25 23:02:12 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.69 2003/09/30 00:59:51 tgl Exp $
77
*
88
* This software is copyrighted by Jan Wieck - Hamburg.
99
*
@@ -1466,7 +1466,7 @@ plpgsql_build_rowtype(Oid classOid)
14661466
/*
14671467
* Open the relation to get info.
14681468
*/
1469-
rel = heap_open(classOid, AccessShareLock);
1469+
rel = relation_open(classOid, AccessShareLock);
14701470
classStruct = RelationGetForm(rel);
14711471
relname = RelationGetRelationName(rel);
14721472

@@ -1568,7 +1568,7 @@ plpgsql_build_rowtype(Oid classOid)
15681568
}
15691569
}
15701570

1571-
heap_close(rel, AccessShareLock);
1571+
relation_close(rel, AccessShareLock);
15721572

15731573
return row;
15741574
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy