Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFP98-0000ZL-Je for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Jan 2023 00:39:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pFP95-0001DB-AS for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Jan 2023 00:39:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFP95-0001Bs-29 for pgsql-bugs@lists.postgresql.org; Wed, 11 Jan 2023 00:39:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFP92-00061g-5x for pgsql-bugs@lists.postgresql.org; Wed, 11 Jan 2023 00:39:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 30B0d6MY392926; Tue, 10 Jan 2023 19:39:07 -0500 From: Tom Lane To: Ruslan Talpa cc: pgsql-bugs@lists.postgresql.org Subject: Re: set_config with is_local parameter true escapes transaction boundaries In-reply-to: <997A11B3-BC14-44FB-A505-BE7C49BE5330@subzero.cloud> References: <997A11B3-BC14-44FB-A505-BE7C49BE5330@subzero.cloud> Comments: In-reply-to Ruslan Talpa message dated "Tue, 10 Jan 2023 10:20:08 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <392924.1673397546.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 10 Jan 2023 19:39:06 -0500 Message-ID: <392925.1673397546@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ruslan Talpa writes: > When executing set_config with the parameter =E2=80=98is_local=E2=80=99 = set to true within a transaction, it is expected that the config value is = not available after the transaction however once the config is set in any = transaction, current_setting will return an empty string instead of null The GUC infrastructure doesn't recognize null as a value, so you are making a distinction that the system doesn't. regards, tom lane