Re: OID Usage - Mailing list pgsql-general

From Bo Lorentsen
Subject Re: OID Usage
Date
Msg-id 41E94C0D.5080108@netgroup.dk
Whole thread Raw
In response to Re: OID Usage  (PFC <lists@boutiquenumerique.com>)
List 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 by date:

Previous
From: Thomas F.O'Connell
Date:
Subject: PL/PgSQL Boolean Comparison Operator Binding
Next
From: Martijn van Oosterhout
Date:
Subject: Re: OID Usage