Re: INFORMATION_SCHEMA.routines column routine_definition does not show the source

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Erki Eessaar <erki(dot)eessaar(at)taltech(dot)ee>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: INFORMATION_SCHEMA.routines column routine_definition does not show the source
Date: 2024-09-18 06:05:04
Message-ID: CAKFQuwZvf9P4Z1Qv5dv0Crx6QyZfSdEu13HFn+taKymwemMgUQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tuesday, September 17, 2024, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> "David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> > Ping again as a Reddit poster just pointed this out.
>
> Huh? The patch you're replying to was committed two years ago.
>
>
The patch I’m replying to doesn’t fix the bug reported on this thread
though…which still exists.

https://github.com/postgres/postgres/blob/24f5205948093a96edf8213294b3d585ac3fe1fb/src/backend/catalog/information_schema.sql#L1593

CASE WHEN pg_has_role(p.proowner, 'USAGE') THEN p.prosrc ELSE
null END
AS character_data) AS routine_definition,

David J.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2024-09-18 09:00:00 BUG #18622: Attempt to grant role in absence of INHERIT option fails with internal error
Previous Message Tom Lane 2024-09-18 05:51:23 Re: INFORMATION_SCHEMA.routines column routine_definition does not show the source