Search Postgresql Archives

Re: Problem with sequences on a reload of a pg_dump file

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

 



Sean Shanny <shannyconsulting@earthlink.net> writes:
> My problem is that all the sequences were reset to start a 1. :-(   Did  
> I do something wrong as this has never happened before?

Did the reload actually complete, or did it fail partway through?

> Also, can I 
> simply figure out what the  next value should be and manually update the 
> last_value column in each affected sequence?

No, but you could use setval().

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
      joining column's datatypes do not match

[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