pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Keith Worthington <keithw@narrowpathinc.com>
To: pgsql-sql@postgresql.org
Cc: PFC <lists@boutiquenumerique.com>
Subject: UPDATE TRIGGER on view WAS: Re: Relation in tables
Date: Wed, 16 Feb 2005 15:48:56 -0500
Message-ID: <20050216204358.M29214@narrowpathinc.com> (raw)
In-Reply-To: <opsmaz8b14th1vuj@musicbox>
References: <20050216134301.5myrfpr3ck6bmswc@www.presserv.org>
	<opsmaz8b14th1vuj@musicbox>

On Wed, 16 Feb 2005 19:56:25 +0100, PFC wrote
> [snip] Use UPDATE triggers on the 
> views, which in fact  write to the products table [snip]

You can DO that!?!

Are you saying that a client can DELETE or INSERT or UPDATE a view and through
a trigger you can make this happen?  Way cool.  Can you provide a simple example?

And all this time I thought that you couldn't write to a view.

Kind Regards,
Keith



view thread (3+ messages)  latest in thread

Message-ID: <20050216204358.M29214@narrowpathinc.com>
Permalink:  ../20050216204358.M29214@narrowpathinc.com/
Also on:    postgresql.org/message-id/20050216204358.M29214@narrowpathinc.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: keithw@narrowpathinc.com, lists@boutiquenumerique.com
  Subject: Re: UPDATE TRIGGER on view WAS: Re: Relation in tables
  In-Reply-To: <20050216204358.M29214@narrowpathinc.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