pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: andy@areyoulocal.co.uk
Cc: pgsql-sql@postgresql.org
Subject: Re: Is it possible to redirect an update/insert/delete to a different table?
Date: Sun, 20 Nov 2005 12:07:00 +0100
Message-ID: <200511201207.01114.peter_e@gmx.net> (raw)
In-Reply-To: <ECOWS06MsMkXWNcu9mt0001b868@smtp-out6.blueyonder.co.uk>
References: <ECOWS06MsMkXWNcu9mt0001b868@smtp-out6.blueyonder.co.uk>

Andy Ballingall wrote:
> I've looked through rules, and as far as I can make out, they are
> only useful for explicit actions. I'm looking for something that
> behaves as though it simply substitutes the table name for a
> different table name before executing the command, no matter what the
> command looks like.

You can write a couple of rules for that.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



view thread (12+ messages)  latest in thread

Message-ID: <200511201207.01114.peter_e@gmx.net>
Permalink:  ../200511201207.01114.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200511201207.01114.peter_e@gmx.net

 · 

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: peter_e@gmx.net, andy@areyoulocal.co.uk
  Subject: Re: Is it possible to redirect an update/insert/delete to a different table?
  In-Reply-To: <200511201207.01114.peter_e@gmx.net>

* 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