1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

Clean out pgbuiltin now that new psql \d commands exist.

This commit is contained in:
Bruce Momjian
1997-11-17 22:15:03 +00:00
parent d0928a3af3
commit bd6733f9ce
2 changed files with 20 additions and 626 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.110 1997/11/17 17:54:24 momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.111 1997/11/17 22:14:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1686,6 +1686,7 @@ HandleSlashCmds(PsqlSettings *pset,
break;
case 'd': /* \d describe database information */
if (strncmp(cmd, "da", 2) == 0)
{
/* aggregates */
SendQuery(&success, pset,"\
SELECT a.aggname AS aggname, \
@ -1695,6 +1696,15 @@ HandleSlashCmds(PsqlSettings *pset,
WHERE a.aggbasetype = t.oid \
ORDER BY aggname, typname;",
false, false, 0);
SendQuery(&success, pset,"\
SELECT a.aggname AS aggname, \
'all types' as all_types, \
obj_description(a.oid) as description \
FROM pg_aggregate a \
WHERE a.aggbasetype = 0 \
ORDER BY aggname;",
false, false, 0);
}
else if (strncmp(cmd, "dd", 2) == 0)
/* descriptions */
objectDescription(pset, optarg+1, NULL);