Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YxydV-0007VN-Jr for pgsql-bugs@arkaria.postgresql.org; Thu, 28 May 2015 14:18:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YxydU-0006qb-RR for pgsql-bugs@arkaria.postgresql.org; Thu, 28 May 2015 14:18:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YxydR-0006kT-9W; Thu, 28 May 2015 14:18:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1YxydN-00039U-SJ; Thu, 28 May 2015 14:18:12 +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 t4SEI47b010878; Thu, 28 May 2015 10:18:04 -0400 From: Tom Lane To: Michael Paquier cc: Jeevan Chalke , PostgreSQL Hackers , Postgres-Bugs Subject: Re: pg_get_functiondef() does not show LEAKPROOF for leakproof functions In-reply-to: References: Comments: In-reply-to Michael Paquier message dated "Thu, 28 May 2015 21:40:35 +0900" Date: Thu, 28 May 2015 10:18:04 -0400 Message-ID: <10877.1432822684@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Paquier writes: > On Thu, May 28, 2015 at 5:52 PM, Jeevan Chalke > wrote: >> If function is created with the LEAKPROOF option, then pg_get_functiondef() >> does not show that in the returned definition. >> Is it expected OR are we missing that option in pg_get_functiondef(). > Agreed. I guess that it has been simply forgotten. pg_proc can be > easily queried, so functions marked as leakproof are easy to find out > in any case. Looks like a clear oversight to me. I had first thought that this might have been intentional because pg_dump needed it to act like that --- but pg_dump doesn't use pg_get_functiondef. I think it was simply forgotten. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs