pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Jeevan Chalke <jeevan.chalke@enterprisedb.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Postgres-Bugs <pgsql-bugs@postgresql.org>
Subject: Re: pg_get_functiondef() does not show LEAKPROOF for leakproof functions
Date: Thu, 28 May 2015 10:18:04 -0400
Message-ID: <10877.1432822684@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqT8RueHHDEHpbtqMxG8cEC4aogWNUNb9+aroLhQPX1bMg@mail.gmail.com>
References: <CAM2+6=U5YLZBre3V3WF9FFuL0gxR1egA3MiPh1Gu0JPsEUD7dg@mail.gmail.com>
	<CAB7nPqT8RueHHDEHpbtqMxG8cEC4aogWNUNb9+aroLhQPX1bMg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Michael Paquier <michael.paquier@gmail.com> writes:
> On Thu, May 28, 2015 at 5:52 PM, Jeevan Chalke
> <jeevan.chalke@enterprisedb.com> 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



view thread (3+ messages)

Message-ID: <10877.1432822684@sss.pgh.pa.us>
Permalink:  ../10877.1432822684@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10877.1432822684@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, jeevan.chalke@enterprisedb.com, pgsql-hackers@postgresql.org
  Subject: Re: pg_get_functiondef() does not show LEAKPROOF for leakproof functions
  In-Reply-To: <10877.1432822684@sss.pgh.pa.us>
  References: <CAM2+6=U5YLZBre3V3WF9FFuL0gxR1egA3MiPh1Gu0JPsEUD7dg@mail.gmail.com> <CAB7nPqT8RueHHDEHpbtqMxG8cEC4aogWNUNb9+aroLhQPX1bMg@mail.gmail.com> <10877.1432822684@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox