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
Pascal Polleunus <ppo@beeznest.net> writes:
> Wouldn't it be useful to have the ability to execute aggregate functions
> with the \d command ?
Use the information_schema if you want to write queries about this
information.
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера