Sequences problem - Mailing list pgsql-sql

From Judith
Subject Sequences problem
Date
Msg-id 46C61410.4070407@correolux.com.mx
Whole thread Raw
Responses Re: Sequences problem
Re: Sequences problem
List pgsql-sql
Hello everybody, I have a question related with sequences.............

When I init a sesion with my db, if a do the next sentence:
   SELECT   currval('pagos_id_pago_seq');


return this:  ERROR: the relation doesn't exist   (or somethimg like that, because the message is in spanish)

but if I do first,
   SELECT nextval('pagos_id_pago_seq');

and then   SELECT currval('pagos_id_pago_seq');   it success, returns the 
current sequence value,  it is possible to indicate that the sequence is 
already started and in the value 4567 but I need first to now the 
current value before the next, how can I do?
   Thanks in advanced



pgsql-sql by date:

Previous
From: Franz Mühlbauer
Date:
Subject: Limited number of polygon function arguments
Next
From: Andrew Sullivan
Date:
Subject: Re: Sequences problem