Re: Improving psql \ds - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Improving psql \ds
Date
Msg-id 19080.1349648438@sss.pgh.pa.us
Whole thread Raw
In response to Improving psql \ds  (Julien Tachoires <julmon@gmail.com>)
Responses Re: Improving psql \ds  (Julien Tachoires <julmon@gmail.com>)
List pgsql-hackers
Julien Tachoires <julmon@gmail.com> writes:
> About \ds behaviour, I think to add 2 columns :
> - 'LastValue'
> - 'Increment'

That would make the command a great deal slower, since it would have to
access each sequence to get that info.  I don't object to adding such
columns to \ds+, but I don't think it's a good idea to put them in the
basic command.

The other problem you're going to have here is that there is in fact no
such command as "\ds" (nor "\ds+"); rather, it's a special case of
\dtsvi.  As such, putting any relkind-specific info into the result is
problematic.  I think you're going to have to invent a different command
if you want there to be sequence-specific columns.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Julien Tachoires
Date:
Subject: Improving psql \ds
Next
From: Greg Stark
Date:
Subject: Re: Bugs in CREATE/DROP INDEX CONCURRENTLY