Re: Add some regression tests for SEQUENCE - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: Add some regression tests for SEQUENCE
Date
Msg-id alpine.DEB.2.02.1307181316250.3991@localhost6.localdomain6
Whole thread Raw
In response to Re: Add some regression tests for SEQUENCE  (Robins Tharakan <tharakan@gmail.com>)
List pgsql-hackers
Hello Robins,

> Thanks Fabien. This was a wrong attachment to the email.

This patch works for me (applied, tested).

However, some remarks:

seq4: should it check something? How do you know that OWNED BY did 
anything?

regress_role_seq2: shoult check that the sequence owner is the table 
owner?

seq12/seq14: is it twice the same tests??

seq13/seq15: idem??

I still do not know what "asdf" means... it is about the qwerty keyboard?
What about something explicit, like regress_seq_undefined?

seq22: remove the "syntax error" check at the end, pg people do not want 
syntax error checks.


Also, here is a proposal for testing that CACHE is working:
  -- check CACHE operation by resetting the sequence cache size  CREATE SEQUENCE seq31 CACHE 10;  -- 1 to 10 are
preallocated SELECT NEXTVAL('seq31');  -- reset cache, 2..10 are lost, should start again from 11  ALTER SEQUENCE seq31
CACHE1;  SELECT NEXTVAL('seq31');  DROP SEQUENCE seq31;
 

-- 
Fabien.



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Improvement of checkpoint IO scheduler for stable transaction responses
Next
From: Robert Haas
Date:
Subject: getting rid of SnapshotNow