Re: Sequences

Поиск
Список
Период
Сортировка
От Chris Browne
Тема Re: Sequences
Дата
Msg-id 871vox4fgy.fsf@dba2.int.libertyrms.com
обсуждение исходный текст
Ответ на Sequences  ("Hunter, Ray" <rhunter@enterasys.com>)
Ответы Re: Sequences  (Jasmin Dizdarevic <jasmin.dizdarevic@gmail.com>)
Re: Sequences  (Andre Rothe <arothe@phosco.info>)
Список pgsql-sql
Andre Rothe <arothe@phosco.info> 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?


В списке pgsql-sql по дате отправления:

Предыдущее
От: Jasmin Dizdarevic
Дата:
Сообщение: Re: Create custom aggregate function and custom sfunc
Следующее
От: Jasmin Dizdarevic
Дата:
Сообщение: Re: Sequences