Re: Vote on SET in aborted transaction - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Vote on SET in aborted transaction
Date
Msg-id 24441.1019696880@sss.pgh.pa.us
Whole thread Raw
In response to Re: Vote on SET in aborted transaction  (Hiroshi Inoue <Inoue@tpf.co.jp>)
List pgsql-hackers
Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> Honetsly I don't understand what kind of example you
> expect. How about the following ?

> [The curren schema is schema1]

>     begin;
>     create schema foo;
>     set search_path = foo;
>     create table t1 (....);
>     .
>    [error occurs]
>     rollback;
>     insert into t1 select * from schema1.t1;

> Should the search_path be put back in this case ?

Sure it should be.  Otherwise it's pointing at a nonexistent schema.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: Vote on SET in aborted transaction
Next
From: Hiroshi Inoue
Date:
Subject: Re: Vote totals for SET in aborted transaction