pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pedro Igor <pedroigor@aip.com.br>
To: pgsql-sql@postgresql.org
Subject: Inheritance in PostgreSQL limitation
Date: Wed, 4 Dec 2002 17:19:16 -0200
Message-ID: <000a01c29bca$0a245ed0$0b00010a@aip.com.br> (raw)

I have a database that uses inheritance, like this:
table2 inherits table1 where table1 has some relashionships (foreign key) with others four tables.
I trying to delete a record in table2 and i want all references in the tables that have the key of the table1 deleted.
I was reading some texts and found out that this is a PostgreSQL.
Has some one model some solution for this ?
I thinking of using triggers in the table2 that erases all references... This is a good idea or i just going to complicate ? Someone have a idea ?

Pedro Igor

Message-ID: <000a01c29bca$0a245ed0$0b00010a@aip.com.br>
Permalink:  ../000a01c29bca$0a245ed0$0b00010a@aip.com.br/
Also on:    postgresql.org/message-id/000a01c29bca$0a245ed0$0b00010a@aip.com.br

 · 

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: pedroigor@aip.com.br
  Subject: Re: Inheritance in PostgreSQL limitation
  In-Reply-To: <000a01c29bca$0a245ed0$0b00010a@aip.com.br>

* 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