pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Joÿffffffffffe3o Carvalho <joaocarvalho127@yahoo.com.br>
Cc: PG-SQL lista de mail <pgsql-sql@postgresql.org>
Subject: Re: Statistics from Sequences
Date: Tue, 6 Sep 2005 21:26:48 -0600
Message-ID: <20050907032648.GA10037@winnie.fuhr.org> (raw)
In-Reply-To: <20050907024344.19853.qmail@web50606.mail.yahoo.com>
References: <20050907024344.19853.qmail@web50606.mail.yahoo.com>

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



view thread (6+ messages)  latest in thread

Message-ID: <20050907032648.GA10037@winnie.fuhr.org>
Permalink:  ../20050907032648.GA10037@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050907032648.GA10037@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, joaocarvalho127@yahoo.com.br
  Subject: Re: Statistics from Sequences
  In-Reply-To: <20050907032648.GA10037@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox