pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: vwu98034@lycos.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Inheritance or no inheritance, there is a question
Date: Tue, 19 Aug 2003 17:12:10 -0700
Message-ID: <200308191712.10959.josh@agliodbs.com> (raw)
In-Reply-To: <HBPPOBLAFEAHCFAA@mailcity.com>
References: <HBPPOBLAFEAHCFAA@mailcity.com>

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



view thread (4+ messages)  latest in thread

Message-ID: <200308191712.10959.josh@agliodbs.com>
Permalink:  ../200308191712.10959.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200308191712.10959.josh@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, vwu98034@lycos.com
  Subject: Re: Inheritance or no inheritance, there is a question
  In-Reply-To: <200308191712.10959.josh@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox