Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iS42g-0002ho-H5 for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2019 18:59:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iS42e-0005Vw-UE for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2019 18:59:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iS42e-0005TY-IQ for pgsql-general@lists.postgresql.org; Tue, 05 Nov 2019 18:59:00 +0000 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226] helo=blaine.gmane.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iS42a-0003KA-RI for pgsql-general@postgresql.org; Tue, 05 Nov 2019 18:59:00 +0000 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iS42T-000NwO-KX for pgsql-general@postgresql.org; Tue, 05 Nov 2019 19:58:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: George Neuner Subject: Re: select view definition from pg_views feature request Date: Tue, 05 Nov 2019 13:58:37 -0500 Message-ID: <9fh3seh2i2h0p9hd13mj01j90fgmqvrpsa@4ax.com> References: <31367.1572815723@sss.pgh.pa.us> <8r71se1hojl24v6ogd8jdicldc3g40a3t6@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: ForteAgent/8.00.32.1272 X-Antivirus: Avast (VPS 191105-0, 11/05/2019), Outbound message X-Antivirus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 5 Nov 2019 14:29:00 +1300, David Rowley wrote: >See https://www.postgresql.org/docs/current/sql-set.html > >"SET only affects the value used by the current session." > >Also: > >"The effects of SET LOCAL last only till the end of the current transaction" > >Neither affects other sessions. Ok, so you need to "ALTER DATABASE ..." for the change to affect everyone. Thanks for the clarification. George