Skip to content

Commit bd6733f

Browse files
committed
Clean out pgbuiltin now that new psql \d commands exist.
1 parent d0928a3 commit bd6733f

File tree

2 files changed

+20
-626
lines changed

2 files changed

+20
-626
lines changed

src/bin/psql/psql.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.110 1997/11/17 17:54:24 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.111 1997/11/17 22:14:55 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1686,6 +1686,7 @@ HandleSlashCmds(PsqlSettings *pset,
16861686
break;
16871687
case 'd': /* \d describe database information */
16881688
if (strncmp(cmd, "da", 2) == 0)
1689+
{
16891690
/* aggregates */
16901691
SendQuery(&success, pset,"\
16911692
SELECT a.aggname AS aggname, \
@@ -1695,6 +1696,15 @@ HandleSlashCmds(PsqlSettings *pset,
16951696
WHERE a.aggbasetype = t.oid \
16961697
ORDER BY aggname, typname;",
16971698
false, false, 0);
1699+
SendQuery(&success, pset,"\
1700+
SELECT a.aggname AS aggname, \
1701+
'all types' as all_types, \
1702+
obj_description(a.oid) as description \
1703+
FROM pg_aggregate a \
1704+
WHERE a.aggbasetype = 0 \
1705+
ORDER BY aggname;",
1706+
false, false, 0);
1707+
}
16981708
else if (strncmp(cmd, "dd", 2) == 0)
16991709
/* descriptions */
17001710
objectDescription(pset, optarg+1, NULL);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy