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:
@ -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);
|
||||
|
Reference in New Issue
Block a user