I have a patch which tries to improve the '\d some_sequence_name' command output in psql utility. Before sending the patch to pgsql-patches I just want to know your opinion whether the new output of the command is OK or it needs to be modified before sending it to pgsql-patches.
For comparison purpose, here is the output of the '\d some_sequence_name' command:
-- Say we have created a sequence named 'test_seq' already as CREATE SEQUENCE test_seq.
In general, \d command is working perfectly for database objects.
For sequences, I think the current \d some_sequence command's output is displaying information which does not help the end user very much. Also isn't the newly display information (same as information provided by 'select * from test_seq;' statement) is/can-be-considered the metadata information about the sequences queried about (since for the returning sequences data we have nextval('...'), currval('...') functions)?
Please correct me if I am wrong or have missed something.