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 1oei1i-0000ZI-7a for pgsql-general@arkaria.postgresql.org; Sat, 01 Oct 2022 19:19:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oei1h-0007t4-1J for pgsql-general@arkaria.postgresql.org; Sat, 01 Oct 2022 19:19:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oei1g-0007nt-Lg for pgsql-general@lists.postgresql.org; Sat, 01 Oct 2022 19:19:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oei1e-0005Tz-Me for pgsql-general@lists.postgresql.org; Sat, 01 Oct 2022 19:19:52 +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 291JJelO962012; Sat, 1 Oct 2022 15:19:40 -0400 From: Tom Lane To: Bryn Llewellyn cc: "Peter J. Holzer" , pgsql-general list Subject: Re: Names of run-time configuration parameters (was: Limiting the operations that client-side code can perform upon its database backend's artifacts) In-reply-to: <97B46A72-70A3-43E6-8F8A-7B50A16C0A97@yugabyte.com> References: <20220928011353.zo7enlnig5vvpowe@jrouhaud> <5B23D9B8-56E8-458F-AD3D-B5F88AAB2844@yugabyte.com> <20220928025427.coznr3we5plyq5pp@jrouhaud> <3881881.1664337639@sss.pgh.pa.us> <20220930184515.mw2avsox5daz6yok@hjp.at> <35254B0B-6501-4CF6-A13F-76D03756C2B2@yugabyte.com> <20221001120553.b7z7pujnmsllgn5b@hjp.at> <20221001122421.ja2vri66mvyrg5hm@jrouhaud> <20221001124229.4a3q4peqzynz6cd6@hjp.at> <936582.1664640735@sss.pgh.pa.us> <97B46A72-70A3-43E6-8F8A-7B50A16C0A97@yugabyte.com> Comments: In-reply-to Bryn Llewellyn message dated "Sat, 01 Oct 2022 11:57:58 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <962010.1664651980.1@sss.pgh.pa.us> Date: Sat, 01 Oct 2022 15:19:40 -0400 Message-ID: <962011.1664651980@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bryn Llewellyn writes: > get stacked diagnostics msg = message_text; > if msg != 'relation "pg_temp.flag" does not exist' then This is pretty fragile --- eg, it will fall over with translated messages. I think you could presume that if the error condition name is undefined_table then you know what to do. regards, tom lane