Re: [GENERAL] Auto-Increment in Postgres

2011-02-11 Thread David Johnston
and why you are doing that so alternative solutions can be presented. David J From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Adarsh Sharma Sent: Friday, February 11, 2011 6:14 AM To: pgsql-general@postgresql.org Subject: [GENERAL] Auto-Increment

Re: [GENERAL] Auto-Increment in Postgres

2011-02-11 Thread Fredric Fredricson
On 02/11/2011 12:13 PM, Adarsh Sharma wrote: Dear all, I have an Integer column in Postgres database table. Let's say the column has below values : 1 2 3 4 5 6 7 8 9 10 Now if i deleted some rows where id= 3 ,5 and 8 or it have these type of data then The data look like as : 1 2 4 6

Re: [GENERAL] Auto-Increment in Postgres

2011-02-11 Thread Thom Brown
On 11 February 2011 11:13, Adarsh Sharma wrote: > Dear all, > > > I have an Integer column in Postgres database table. Let's say the column > has below values : > > > 1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 > > > Now if i deleted some rows where id= 3 ,5 and 8  or it have these type of > data then

[GENERAL] Auto-Increment in Postgres

2011-02-11 Thread Adarsh Sharma
Dear all, I have an Integer column in Postgres database table. Let's say the column has below values : 1 2 3 4 5 6 7 8 9 10 Now if i deleted some rows where id= 3 ,5 and 8 or it have these type of data then The data look like as : 1 2 4 6 7 9 10 I want to have it id's as 1 2 3 4 5 6