Re: Statistics from Sequences

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Joÿffffffffffe3o Carvalho <joaocarvalho127(at)yahoo(dot)com(dot)br>
Cc: PG-SQL lista de mail <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Statistics from Sequences
Date: 2005-09-07 03:26:48
Message-ID: 20050907032648.GA10037@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, Sep 06, 2005 at 11:43:44PM -0300, Joÿffffffffffe3o Carvalho wrote:
> Is it possible to get from a sequence:
>
> The sequence owner
> The min value
> The max value
> The increment value
> The last used number

See the output from the following example:

CREATE SEQUENCE fooseq;

SELECT u.usename
FROM pg_class AS c JOIN pg_user AS u ON u.usesysid = c.relowner
WHERE c.relname = 'fooseq';

SELECT * FROM fooseq;

--
Michael Fuhr

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2005-09-07 03:38:33 Re: Statistics from Sequences
Previous Message Joÿffffffffffe3o Carvalho 2005-09-07 02:43:44 Statistics from Sequences