Re: show all; - Mailing list pgsql-patches

From Tom Lane
Subject Re: show all;
Date
Msg-id 10486.991440486@sss.pgh.pa.us
Whole thread Raw
In response to Re: show all;  (Marko Kreen <marko@l-t.ee>)
Responses Re: show all;
List pgsql-patches
Marko Kreen <marko@l-t.ee> writes:
> As I understand Tom, all vars should go through GUC and some of
> the current .conf vars will be SET-able.  So RESET ALL would
> be quite weird.

RESET ALL should re-establish the same state of the conf vars that you'd
get with a freshly started backend.  This doesn't seem weird or even in
need of discussion ...

> 1) rolls TX back, so you are not in any TX

This I do not agree with; it ties together two concepts that are better
kept separate.  (If SET were under transaction control, my opinion might
be different ... but it isn't.)  There is nothing wrong with sending a
ROLLBACK if you want to be sure you are not in a transaction block.
Further, there could be situations where you want to RESET the conf vars
without forcing a rollback.

            regards, tom lane

pgsql-patches by date:

Previous
From: Marko Kreen
Date:
Subject: Re: show all;
Next
From: Bruce Momjian
Date:
Subject: Re: show all;