mirror of
https://github.com/postgres/postgres.git
synced 2025-11-16 15:02:33 +03:00
> create view pg_locks as select l.relation, l.database, l.backendpid,
> l.mode, l.isgranted from pg_lock_info() as l(relation oid, database oid, > backendpid int4, mode text, isgranted bool); > ERROR: badly formatted planstring "COLUMNDEF "... > Reported by Neil Conway -- I never implemented readfuncs.c support for ColumnDef or TypeName, which is needed so that views can be created on functions returning type RECORD. Here's a patch. Joe Conway
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.166 2002/08/04 19:48:09 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.167 2002/08/10 20:44:48 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every (plan) node in POSTGRES has an associated "out" routine which
|
||||
@@ -193,7 +193,7 @@ _outTypeName(StringInfo str, TypeName *node)
|
||||
appendStringInfo(str, " TYPENAME :names ");
|
||||
_outNode(str, node->names);
|
||||
appendStringInfo(str, " :typeid %u :timezone %s :setof %s"
|
||||
" :pct_type %s typmod %d :arrayBounds ",
|
||||
" :pct_type %s :typmod %d :arrayBounds ",
|
||||
node->typeid,
|
||||
booltostr(node->timezone),
|
||||
booltostr(node->setof),
|
||||
|
||||
Reference in New Issue
Block a user