ISA function? - Mailing list pgsql-general

From Will Fitzgerald
Subject ISA function?
Date
Msg-id KPELIDPNOGGPCLGOMDLFGEOPCGAA.fitzgerald@inetmi.com
Whole thread Raw
List 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.


pgsql-general by date:

Previous
From: "Dan Wilson"
Date:
Subject: Weird View behavior
Next
From: "Mikheev, Vadim"
Date:
Subject: RE: Poor man's replication using WAL