Re: ALTER SEQUENCE ... RESTART WITH [variable] problem

From: "Tomi NA" <hefest(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: ALTER SEQUENCE ... RESTART WITH [variable] problem
Date: 2006-05-20 09:46:25
Message-ID: d487eb8e0605200246i6f6c300bie9ca7761c84cd973@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 5/20/06, Martijn van Oosterhout <kleptog(at)svana(dot)org> wrote:

> Seems you can't use a variable there. Your choices are to build a
> string and use EXECUTE, or just do:
>
> SELECT setval('sequence',value);

The EXECUTE string solution did the job. Thank you very much, Martijn.

t.n.a.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Zolotukhin 2006-05-20 12:38:37 Re: VACUUM FULL hangs on ordinary table
Previous Message Martijn van Oosterhout 2006-05-20 07:55:42 Re: ALTER SEQUENCE ... RESTART WITH [variable] problem