Re: Vote on SET in aborted transaction
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hiroshi Inoue <Inoue@tpf.co.jp>
Cc: Thomas Lockhart <lockhart@fourpalms.org>, Bruce Momjian <pgman@candle.pha.pa.us>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2002-04-25T01:08:00Z
Lists: 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