Sean Chittenden <sean(at)chittenden(dot)org> writes:
> I'm looking to have things return an error if someone calls currval()
> on the sequence. -sc
There isn't any mechanism for that, although I imagine it wouldn't be
hard to add such a function to commands/sequence.c. But the requirement
seems a bit bizarre. Maybe there's a better way to do whatever you're
after?
regards, tom lane