Re: How to obtain a sequence's increment value from the system catalog

From: Ragnar <gnari(at)hive(dot)is>
To: Wouter Gazendam <wouter(at)cosmocows(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to obtain a sequence's increment value from the system catalog
Date: 2007-07-09 09:05:09
Message-ID: 1183971909.5778.64.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


have you tried:
select * from my_seq;

or are you looking for the functions currval() or lastval()
http://www.postgresql.org/docs/8.2/interactive/functions-sequence.html

gnari

On mán, 2007-07-09 at 09:43 +0200, Wouter Gazendam wrote:
> Hi,
>
> I'd like to query a sequence's increment value from the system
> catalog. I tried looking at
> http://www.postgresql.org/docs/8.1/static/catalog-pg-class.html but
> I'm stuck here.
>
> Any ideas/help would be appreciated.
>
> Thanks,
>
> Wouter Gazendam

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jasbinder Singh Bali 2007-07-09 09:22:22 Re: Database Insertion commitment
Previous Message Ragnar 2007-07-09 08:57:06 Re: Database Insertion commitment