On Tue, Nov 15, 2011 at 8:06 AM, John Fabiani <johnf(at)jfcomputer(dot)com> wrote:
> alter sequence somename restart with (select max(pk) from sometable).
>
> I need this for automating an ETL (using pentaho).
http://www.postgresql.org/docs/9.1/interactive/functions-sequence.html#FUNCTIONS-SEQUENCE-TABLE
--
Regards,
Richard Broersma Jr.