Re: Transactions in rules.. - Mailing list pgsql-general

From Alex Pilosov
Subject Re: Transactions in rules..
Date
Msg-id Pine.BSO.4.10.10107091208560.13870-100000@spider.pilosoft.com
Whole thread Raw
In response to Transactions in rules..  ("Fabrizio Mazzoni" <fabrizio@macron.com>)
List pgsql-general
Cannot do this, as currently there is no support for nested transactions.


On Mon, 9 Jul 2001, Fabrizio Mazzoni wrote:

> Can i use transactions in rules??
> I was trying something like:
>
> create rule x_test as
> on insert to view1
> do instead
> (
>     begin;
>     insert into test1 values (new.a,new.b);
>     insert into test2 values (new.c,new.d);
>     commit;
> );
>
> But when i give this command in psql i always get an error..
>
> Regards
>
> fabrizio@macrongolf.com
> http://macrongolf.com
> http://eteampoint.com
> http://macron.com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
>


pgsql-general by date:

Previous
From: Steve Wampler
Date:
Subject: Re: fmgr_info: function 2714160: cache lookup failed
Next
From: Peter Eisentraut
Date:
Subject: Re: Transactions in rules..