Re: OID Usage

From: Bo Lorentsen <bl(at)netgroup(dot)dk>
To: "pgsql-general postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: OID Usage
Date: 2005-01-15 16:59:57
Message-ID: 41E94C0D.5080108@netgroup.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-01-15 17:06:50 Re: OID Usage
Previous Message Thomas F.O'Connell 2005-01-15 16:55:51 PL/PgSQL Boolean Comparison Operator Binding