Re: [PATCHES] Patch - Have psql show current values - Mailing list pgsql-hackers

From Dhanaraj M
Subject Re: [PATCHES] Patch - Have psql show current values
Date
Msg-id 44ED47D6.50804@sun.com
Whole thread Raw
In response to Re: [PATCHES] Patch - Have psql show current values  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
For \ds command,
this patch displays the current sequence value(last_value) for each 
sequence.
This was suggested during the earlier discussion.

Output of the current patch:
--------------------------------------
mydb=# \ds               List of relationsSchema | Name |   Type   |  Owner   | Seq Value
--------+------+----------+----------+-----------public | a    | sequence | Dhanaraj |         5public | b    |
sequence| Dhanaraj |         2public | c    | sequence | Dhanaraj |         1
 
(3 rows)

output without aplying the patch
--------------------------------------------
mydb=# \ds               List of relationsSchema | Name |   Type   |  Owner  
--------+------+----------+----------+-----public | a    | sequence | Dhanarajpublic | b    | sequence | Dhanarajpublic
|c    | sequence | Dhanaraj
 
(3 rows)

Peter Eisentraut wrote:

>Dhanaraj M wrote:
>  
>
>>This patch was discussed a few months ago.
>>I could not complete this patch at that time.
>>I hope that the current version of my patch is acceptable.
>>    
>>
>
>What is this patch supposed to be doing?
>
>  
>



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [PATCHES] Patch - Have psql show current values
Next
From: "Jeremy Kronuz"
Date:
Subject: Re: ISBN/ISSN/ISMN/EAN13 module