Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 95E4F632912 for ; Sat, 4 Jul 2009 08:12:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 58966-07 for ; Sat, 4 Jul 2009 08:12:52 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id 7E90062F482 for ; Sat, 4 Jul 2009 08:12:52 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.3/8.14.3) with ESMTP id n64BCli3075719 for ; Sat, 4 Jul 2009 08:12:47 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.3/8.14.3/Submit) id n64ATGv6050557 for pgsql-sql@postgresql.org; Sat, 4 Jul 2009 07:29:16 -0300 (ADT) (envelope-from news) From: Chris Browne X-Newsgroups: pgsql.sql Subject: Re: Sequences Date: Fri, 03 Jul 2009 17:35:41 -0400 Organization: cbbrowne Computing Inc Lines: 19 Message-ID: <871vox4fgy.fsf@dba2.int.libertyrms.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:d8GwQ+eM5xtHg7zINFy7lfCaRzw= To: pgsql-sql@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.77 tagged_above=0 required=5 tests=DATE_IN_PAST_12_24=1.77 X-Spam-Level: * X-Archive-Number: 200907/15 X-Sequence-Number: 32756 Andre Rothe writes: > Where are stored the sequence information? How I can query the > properties of a sequence like increment, max/min value, cache? > I'm looking for a table like user_sequences in Oracle, where I > can query all of my sequences. cbbrowne=# create sequence foo; CREATE SEQUENCE cbbrowne=# select * from foo; sequence_name | last_value | increment_by | max_value | min_value | cache_value | log_cnt | is_cycled | is_called ---------------+------------+--------------+---------------------+-----------+-------------+---------+-----------+----------- foo | 1 | 1 | 9223372036854775807 | 1 | 1 | 1 | f | f (1 row) Each sequence is effectively a relation. -- output = ("cbbrowne" "@" "cbbrowne.com") http://www3.sympatico.ca/cbbrowne/wp.html Where do you want to Tell Microsoft To Go Today?