Re: CREATE SEQUENCE fails in plpgsql function - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: CREATE SEQUENCE fails in plpgsql function
Date
Msg-id 20030630214811.D46138-100000@megazone23.bigpanda.com
Whole thread Raw
In response to CREATE SEQUENCE fails in plpgsql function  (Erik Erkelens <erik_erkelens@yahoo.com>)
List pgsql-sql
On Mon, 30 Jun 2003, Erik Erkelens wrote:

>         new_max_records ALIAS FOR $1;
>     BEGIN
>         DROP SEQUENCE my_sequence;
>         --CREATE SEQUENCE my_sequence MAXVALUE 4
> CYCLE;
>         CREATE SEQUENCE my_sequence MAXVALUE
> new_max_records CYCLE;

Most of the creates/drops/etc... don't directly work with
variables/arguments.  You can probably do this with execute
however.




pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: LEAST and GREATEST functions?
Next
From: Matthew Hixson
Date:
Subject: Re: need some help with a delete statement