Re: Statistics from Sequences - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: Statistics from Sequences
Date
Msg-id 20050908200801.GA84186@winnie.fuhr.org
Whole thread Raw
In response to Re: Statistics from Sequences  (Michael Fuhr <mike@fuhr.org>)
Responses Re: Statistics from Sequences
List pgsql-sql
[Please copy the mailing list on replies so others can participate
in and learn from the discussion.]

On Thu, Sep 08, 2005 at 02:32:12PM -0300, Joÿffffffffffe3o Carvalho wrote:
> Can you give me a help about:
> 
> >    The min value
> >    The max value
> >    The increment value
> >    The last used number

The example I posted shows how to obtain those values:

CREATE SEQUENCE fooseq;
SELECT * FROM fooseq;

If you want only particular columns then specify them:

SELECT min_value, max_value, increment_by, last_value FROM fooseq;

-- 
Michael Fuhr


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Indexing an array?
Next
From: "thomas.silvi"
Date:
Subject: Re: column names, types, properties for a table