Aggregate function capability with \d in psql - Mailing list pgsql-general

From Pascal Polleunus
Subject Aggregate function capability with \d in psql
Date
Msg-id 404756E6.60205@beeznest.net
Whole thread Raw
Responses Re: Aggregate function capability with \d in psql
List pgsql-general
Hi,

Is there an *easy* way to display a list of tables with their number of
input values in psql ?

Wouldn't it be useful to have the ability to execute aggregate functions
with the \d command ?

Currently (psql 7.4.1):
   \d [NAME]      describe table, index, sequence, or view
   \d{t|i|s|v|S} [PATTERN] (add "+" for more detail)
                  list tables/indexes/sequences/views/system tables

Adding for example:
   \d{t|S|v} [PATTERN] [-exec COMMAND] (add "+" for more detail)
                  list tables/views/system tables
                  with the result of the aggregate command

And extending the concept to:
   \ds [PATTERN] [-exec {curr|next|min|max}]


Thanks,
Pascal


pgsql-general by date:

Previous
From: "Karl O. Pinc"
Date:
Subject: Re: REFERENCES error message complaint, suggestion
Next
From: Tom Lane
Date:
Subject: Re: REFERENCES error message complaint, suggestion