ISA function?

From: "Will Fitzgerald" <fitzgerald(at)inetmi(dot)com>
To: "'Pgsql-General(at)Postgresql(dot) Org'" <pgsql-general(at)postgresql(dot)org>
Subject: ISA function?
Date: 2001-01-26 20:58:28
Message-ID: KPELIDPNOGGPCLGOMDLFGEOPCGAA.fitzgerald@inetmi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there any PostgreSQL function, that, given an OID and a table (class)
name, would true true (or the OID) if the OID is a member of that class?

I want to write something like:

create function ISA(oid, name) returns oid as '
select oid from $2* where oid = $1
' language 'sql';

(But, of course, this doesn't work).

--
Will Fitzgerald
I/NET, Inc.

Browse pgsql-general by date

  From Date Subject
Next Message Mikheev, Vadim 2001-01-26 22:01:45 RE: Poor man's replication using WAL
Previous Message Dan Wilson 2001-01-26 20:46:08 Weird View behavior