"Hiroshi Inoue" <[EMAIL PROTECTED]> writes: > Sorry for my poor explanation. What I meant is that *Rollback* > is to cancel the changes made to SQL-data or schemas > not to put back the variables which are local to the session.
Uh, why? Seems to me you are asserting as a given exactly the point that is under debate. Let me give a counterexample: BEGIN; CREATE TEMP TABLE foo; something-erroneous; END; The creation of the temp table will be rolled back on error, no? Now the temp table is certainly session local --- ideally our implementation would not let any other session see any trace of it at all. (In practice it is visible if you know where to look, but surely that's just an implementation artifact.) If you argue that SETs should not roll back because they are session-local, it seems to me that a logical consequence of that position is that operations on temp tables should not roll back either ... and that can hardly be deemed desirable. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster