Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd6733f

Browse files
committed
Clean out pgbuiltin now that new psql \d commands exist.
1 parentd0928a3 commitbd6733f

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/1717:54:24 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.111 1997/11/1722: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
SELECTa.aggname AS aggname, \
@@ -1695,6 +1696,15 @@ HandleSlashCmds(PsqlSettings *pset,
16951696
WHEREa.aggbasetype = t.oid \
16961697
ORDER BY aggname, typname;",
16971698
false, false,0);
1699+
SendQuery(&success,pset,"\
1700+
SELECTa.aggname AS aggname, \
1701+
'all types' as all_types, \
1702+
obj_description(a.oid) as description \
1703+
FROMpg_aggregate a \
1704+
WHEREa.aggbasetype = 0 \
1705+
ORDER BY aggname;",
1706+
false, false,0);
1707+
}
16981708
elseif (strncmp(cmd,"dd",2)==0)
16991709
/* descriptions */
17001710
objectDescription(pset,optarg+1,NULL);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp