pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martín Marqués <martin@bugs.unl.edu.ar>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql sql Mailing List <pgsql-sql@postgresql.org>
Subject: Re: loop on a rule
Date: Tue, 7 Aug 2001 21:09:24 -0300
Message-ID: <01080721092408.11074@bugs> (raw)
In-Reply-To: <29386.997228438@sss.pgh.pa.us>
References: <01080719220707.11074@bugs>
	<29386.997228438@sss.pgh.pa.us>

On Mar 07 Ago 2001 20:53, you wrote:
> =?iso-8859-1?q?Mart=EDn=20Marqu=E9s?= <martin@bugs.unl.edu.ar> writes:
> > As I said before, I am playing around with views and rules, and found out
> > that I have something wrong in one of the rules. My delete rule says
> > something like this:
> >
> > CREATE RULE admin_delete AS ON
> > DELETE TO admin_view
> > DO INSTEAD (
> >    DELETE FROM carrera WHERE id_curso=old.id_curso;
> >    DELETE FROM inscripcion WHERE carrera=old.id_curso;
> >    DELETE FROM resol WHERE carr=old.id_curso;
> >    DELETE FROM modalidad WHERE carrera=old.id_curso;
> >    INSERT INTO log_carrera (accion,tabla) VALUES ('D','carrera');
> > );
>
> I think you need the patch for multi-action rules --- see
> http://www.ca.postgresql.org/cgi/cvsweb.cgi/pgsql/src/backend/rewrite/rewri
>teHandler.c You need version 1.93.2.1, assuming that you're on PG 7.1.2.

Yes, I'm on PostgreSQL 7.1.2. I have a resently updated cvs of pgsql (about 3 
hours old), but I don't want to put the cvs version on my stable server (I 
use it on my WorkStation only).

How can I patch the source of my pgsql 7.1.2 src tree? Any docs are welcomed!

Saludos..... and tons of thanks.... :-)

-- 
Cualquiera administra un NT.
Ese es el problema, que cualquiera administre.
-----------------------------------------------------------------
Martin Marques                  |        mmarques@unl.edu.ar
Programador, Administrador      |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------



view thread (3+ messages)

Message-ID: <01080721092408.11074@bugs>
Permalink:  ../01080721092408.11074@bugs/
Also on:    postgresql.org/message-id/01080721092408.11074@bugs

 · 

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: martin@bugs.unl.edu.ar, tgl@sss.pgh.pa.us
  Subject: Re: loop on a rule
  In-Reply-To: <01080721092408.11074@bugs>

* 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