Re: [HACKERS] ALTER SEQUENCE enchancement

2003-12-02 Thread greg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > The above is an operation that would not help me a lot, but a way of > performing currval() without knowing the sequence name would be good. You could do this with a function. Here is a quick one in SQL: CREATE OR REPLACE FUNCTION seqname(NAM

Re: [HACKERS] ALTER SEQUENCE enchancement

2003-11-24 Thread Neil Conway
Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: > Is there demand for this syntax: > > ALTER SEQUENCE ON table(col) CYCLE 100; What if the values in a column are generated via a sequence that was created independently -- i.e. it's not a SERIAL column? I'm not very enthusiastic about features

Re: [HACKERS] ALTER SEQUENCE enchancement

2003-11-24 Thread Rod Taylor
On Mon, 2003-11-24 at 01:07, Christopher Kings-Lynne wrote: > Hi, > > Is there demand for this syntax: > > ALTER SEQUENCE ON table(col) CYCLE 100; > > It would allow us to become sequence-name independent... I think the right approach to this problem would be to implement IDENTITIES and GENERAT

Re: [HACKERS] ALTER SEQUENCE enchancement

2003-11-23 Thread Christopher Kings-Lynne
Is there demand for this syntax: ALTER SEQUENCE ON table(col) CYCLE 100; It would allow us to become sequence-name independent... The above is an operation that would not help me a lot, but a way of performing currval() without knowing the sequence name would be good. It will help in cases suc

Re: [HACKERS] ALTER SEQUENCE enchancement

2003-11-23 Thread Dennis Bjorklund
On Mon, 24 Nov 2003, Christopher Kings-Lynne wrote: > Is there demand for this syntax: > > ALTER SEQUENCE ON table(col) CYCLE 100; > > It would allow us to become sequence-name independent... The above is an operation that would not help me a lot, but a way of performing currval() without know

[HACKERS] ALTER SEQUENCE enchancement

2003-11-23 Thread Christopher Kings-Lynne
Hi, Is there demand for this syntax: ALTER SEQUENCE ON table(col) CYCLE 100; It would allow us to become sequence-name independent... Chris ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "