Re: Inheritance or no inheritance, there is a question

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: vwu98034(at)lycos(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Inheritance or no inheritance, there is a question
Date: 2003-08-20 00:12:10
Message-ID: 200308191712.10959.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Vernon,

> Thanks for your suggestion. I haven't thought this structure, to compose a
> table with another one. That probably is the best solution I can have. With
> this approach, I need to have two tables for B. As a result, all queries,
> insertion, update, deletion, of B need to operate on these two tables. Is
> it possible using a view to them as one table?

Yes. In fact, by configuring PostgreSQL's RULE system, you can make the view
updatable, insertable and deleteable as well. See the online docs under
"CREATE RULE" and "Server-side Programming"

--
Josh Berkus
Aglio Database Solutions
San Francisco

Browse pgsql-sql by date

  From Date Subject
Next Message Moonstruck 2003-08-20 06:42:30 Re: Reverse pattern match.
Previous Message Bruno Wolff III 2003-08-19 15:50:07 Re: Query problem