| From: | "Nick Fankhauser" <nickf(at)ontko(dot)com> |
|---|---|
| To: | "Pierre Couderc" <pierre(at)couderc(dot)cc>, <pgsql-admin(at)postgresql(dot)org> |
| Subject: | Re: How to read a sequence without incrementing it? |
| Date: | 2003-08-29 20:20:52 |
| Message-ID: | NEBBLAAHGLEEPCGOBHDGIEEBICAA.nickf@ontko.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
Use currval(<sequence name>)
See:
http://www.postgresql.org/docs/7.3/static/functions-sequence.html
-Nick
> -----Original Message-----
> From: pgsql-admin-owner(at)postgresql(dot)org
> [mailto:pgsql-admin-owner(at)postgresql(dot)org]On Behalf Of Pierre Couderc
> Sent: Friday, August 29, 2003 11:27 AM
> To: pgsql-admin(at)postgresql(dot)org
> Subject: [ADMIN] How to read a sequence without incrementing it?
>
>
> I would like to read the current value of a sequence, or a value
> not too far of
> the current value (for example, the value it was a few seconds or
> minutes ago).
> Is it possible (without any nexrval that should increment it)?
>
> Thank you all
>
> Pierre Couderc
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Priya G | 2003-08-29 21:08:52 | Re: How to read a sequence without incrementing it? |
| Previous Message | Sam Barnett-Cormack | 2003-08-29 20:15:00 | Re: How to read a sequence without incrementing it? |