On 11/08/2012 04:42 AM, Mike Broers
wrote:
I would like to bump all sequences in a schema by a specified increment. Is there a stored proc or some method that is recommended? Currently I have sql that generates scripts to do this, but it seems to be an inelegant approach and before I rework it from the ground up I want to see if anyone has already done this kind of work or thinks its a wasteful pursuit for some other reason I'm overlooking. I'd use a PL/PgSQL `DO` block, myself. DOChange "+ 0" to whatever your increment is. -- Craig Ringer |