Search Postgresql Archives

Re: resetting sequence to cur max value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Awesome.  Thanks tom.

By the way I am still trying to find a yum install for 8.2 for
centos...anyone?

> developer@xxxxxxxxxxxx writes:
>> Is there a way to set it up so it knows to skip past existing ids?
>
> Usually you do something like
>
> 	select setval('seq_name', (select max(idcol) from table) + 1);
>
> after loading data into the table.
>
> 			regards, tom lane
>




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux