Commit bd6733f9 authored by Bruce Momjian's avatar Bruce Momjian

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

parent d0928a3a
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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, ...@@ -1686,6 +1686,7 @@ HandleSlashCmds(PsqlSettings *pset,
break; break;
case 'd': /* \d describe database information */ case 'd': /* \d describe database information */
if (strncmp(cmd, "da", 2) == 0) if (strncmp(cmd, "da", 2) == 0)
{
/* aggregates */ /* aggregates */
SendQuery(&success, pset,"\ SendQuery(&success, pset,"\
SELECT a.aggname AS aggname, \ SELECT a.aggname AS aggname, \
...@@ -1695,6 +1696,15 @@ HandleSlashCmds(PsqlSettings *pset, ...@@ -1695,6 +1696,15 @@ HandleSlashCmds(PsqlSettings *pset,
WHERE a.aggbasetype = t.oid \ WHERE a.aggbasetype = t.oid \
ORDER BY aggname, typname;", ORDER BY aggname, typname;",
false, false, 0); 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) else if (strncmp(cmd, "dd", 2) == 0)
/* descriptions */ /* descriptions */
objectDescription(pset, optarg+1, NULL); objectDescription(pset, optarg+1, NULL);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment