pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael J Davis <michael.j.davis@tvguide.com>
To: 'Ingrith Andrea Correa Vargas' <i-correa@uniandes.edu.co>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] inheritance
Date: Tue, 4 May 1999 23:58:53 -0500
Message-ID: <93C04F1F5173D211A27900105AA8FCFC145481@lambic.prevuenet.com> (raw)

You could use a trigger or a rule.  Please see the documentation for
details.  With a trigger you could look to see if the parent record existed
before inserting it.

	-----Original Message-----
	From:	Ingrith Andrea Correa Vargas [SMTP:i-correa@uniandes.edu.co]
	Sent:	Tuesday, May 04, 1999 7:27 AM
	To:	pgsql-sql@postgreSQL.org
	Subject:	[SQL] inheritance



	Hello all!

	I have a doubt: It´s possibble to insert a record in a child table
and to
	have the same record inserted in the parent automatically?!...like
	inheritance is...

	TYhank you in advance,

	Ingrith Correa :)
	



view thread (18+ messages)  latest in thread

Message-ID: <93C04F1F5173D211A27900105AA8FCFC145481@lambic.prevuenet.com>
Permalink:  ../93C04F1F5173D211A27900105AA8FCFC145481@lambic.prevuenet.com/
Also on:    postgresql.org/message-id/93C04F1F5173D211A27900105AA8FCFC145481@lambic.prevuenet.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: michael.j.davis@tvguide.com, i-correa@uniandes.edu.co
  Subject: RE: [SQL] inheritance
  In-Reply-To: <93C04F1F5173D211A27900105AA8FCFC145481@lambic.prevuenet.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