Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn7x5-0000PM-CI for pgsql-general@arkaria.postgresql.org; Tue, 07 Aug 2018 19:47:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fn7x1-0007Ph-Ny for pgsql-general@arkaria.postgresql.org; Tue, 07 Aug 2018 19:47:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn7x1-0007PT-CP for pgsql-general@lists.postgresql.org; Tue, 07 Aug 2018 19:47:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn7wu-0005at-Nf for pgsql-general@postgresql.org; Tue, 07 Aug 2018 19:47:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w77JlJq4016208; Tue, 7 Aug 2018 15:47:19 -0400 From: Tom Lane To: "David G. Johnston" cc: Marcelo Lacerda , pgsql-general Subject: Re: check_function_bodies not doing much In-reply-to: References: <14795.1533670290@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Tue, 07 Aug 2018 12:38:02 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16206.1533671239.1@sss.pgh.pa.us> Date: Tue, 07 Aug 2018 15:47:19 -0400 Message-ID: <16207.1533671239@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: > On Tue, Aug 7, 2018 at 12:31 PM, Tom Lane wrote: >> Yes. It's supposed to be a syntax check, not a check that the function >> would work when executed. (Depending on the particular PL you're using, >> which you didn't mention, it might be a pretty weak syntax check too.) > The quoted text includes "however when I use it in a plpgsql function" so > we're good there. Ah, you're right, my apologies for reading too hastily. regards, tom lane