From: Vitaliy <deicide(at)gameaholic(dot)com>
To: pgsql-general(at)hub(dot)org
Subject:
Date: 2000-04-28 06:17:49
Message-ID: Pine.LNX.4.21.0004280036230.16104-100000@shell.gameaholic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I have a [beginner] question. I found the following in mailing
list archives as a proposal and I was wondering if/when the following
will be available, or if there is a way to do this in current pg version:

> > 1) An imaginary field in every tuple that tells you the class it came
> > from.
> > This is useful when you select from table* and want to know which
> > relation the object actually came from. It wouldn't be stored on disk,
> > and like oid it wouldn't be displayed when you do SELECT *. The field
> > would be called classname. So you could have...
> > SELECT p.classname, p.name FROM person p;
> > person | Fred
> > student | Bill
> > employee | Jim
> > person | Chris

I'm planning on switching from relational to object-relational model, and
a "select * from parent*" is really cool - except I need to know where
each element came from. Of course I could always add an extra field and
store element's type in it but that'd be a waste of space, considering
that information is theoretically available to the backend.

Thanks,
-Vitaliy

--
Email: vitaliyf(at)gameaholic(dot)com
ICQ: 1691002
http://www.gameaholic.com - Gameaholic dot Com

Browse pgsql-general by date

  From Date Subject
Next Message Titus Brown 2000-04-28 06:48:03 "Slow" replication/updates/??
Previous Message SUDDN 2000-04-28 03:01:09 Read Only from ODBC