Make psql's \df display functions that return sets as having return type
'setof something'; formerly you could not tell at all that the function returns set.
This commit is contained in:
parent
60992456ed
commit
0d93e385b0
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* Copyright 2000-2002 by PostgreSQL Global Development Group
|
* Copyright 2000-2002 by PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.70 2002/10/15 02:24:16 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.71 2002/10/19 20:50:44 tgl Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
#include "describe.h"
|
#include "describe.h"
|
||||||
|
@ -119,7 +119,8 @@ describeFunctions(const char *pattern, bool verbose)
|
||||||
initPQExpBuffer(&buf);
|
initPQExpBuffer(&buf);
|
||||||
|
|
||||||
printfPQExpBuffer(&buf,
|
printfPQExpBuffer(&buf,
|
||||||
"SELECT pg_catalog.format_type(p.prorettype, NULL) as \"%s\",\n"
|
"SELECT CASE WHEN p.proretset THEN 'setof ' ELSE '' END ||\n"
|
||||||
|
" pg_catalog.format_type(p.prorettype, NULL) as \"%s\",\n"
|
||||||
" n.nspname as \"%s\",\n"
|
" n.nspname as \"%s\",\n"
|
||||||
" p.proname as \"%s\",\n"
|
" p.proname as \"%s\",\n"
|
||||||
" pg_catalog.oidvectortypes(p.proargtypes) as \"%s\"",
|
" pg_catalog.oidvectortypes(p.proargtypes) as \"%s\"",
|
||||||
|
|
Loading…
Reference in New Issue