Re: OID Usage

Поиск
Список
Период
Сортировка
От Bo Lorentsen
Тема Re: OID Usage
Дата
Msg-id 41E94C0D.5080108@netgroup.dk
обсуждение исходный текст
Ответ на Re: OID Usage  (PFC <lists@boutiquenumerique.com>)
Список pgsql-general
PFC wrote:

>     As a sidenote, I have a table with a primary key which is not a
> sequence,  and this query displays the non-existing sequence name. It
> would be easy  to check if the sequence exists (yet another join !),
> only display  sequences that exist ;)...

Hmm, I just tried the same, and got a differant result :

create table test_table ( id INTEGER PRIMARY KEY, name varchar( 100 ));

SELECT seqname, seqschema from pk_sequence WHERE tablename = 'test_table';
 seqname | seqschema
---------+-----------
(0 rows)

So it works as expected here !

/BL

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

Предыдущее
От: Thomas F.O'Connell
Дата:
Сообщение: PL/PgSQL Boolean Comparison Operator Binding
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: OID Usage