pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: AJ Welch <awelch0100@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_get_triggerdef does not use the schema qualified procedure name
Date: Thu, 26 Sep 2019 18:47:31 -0400
Message-ID: <12993.1569538051@sss.pgh.pa.us> (raw)
In-Reply-To: <CAO-RzRKjN6oZjDSyBoVbtfsup9hVpqsOaP7fRWN_5qXMx1kPDA@mail.gmail.com>
References: <CAO-RzRKjN6oZjDSyBoVbtfsup9hVpqsOaP7fRWN_5qXMx1kPDA@mail.gmail.com>

AJ Welch <awelch0100@gmail.com> writes:
> I noticed that pg_get_triggerdef doesn't seem to use the schema qualified
> name of procedures/functions. Is it supposed to? Is there a way to get it
> to?

Generally the policy of such functions is to schema-qualify names that
wouldn't be found in the current search_path.  So you could get what
you want by setting a restrictive search_path beforehand, maybe just ''.

			regards, tom lane





view thread (2+ messages)

Message-ID: <12993.1569538051@sss.pgh.pa.us>
Permalink:  ../12993.1569538051@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12993.1569538051@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, awelch0100@gmail.com
  Subject: Re: pg_get_triggerdef does not use the schema qualified procedure name
  In-Reply-To: <12993.1569538051@sss.pgh.pa.us>
  References: <CAO-RzRKjN6oZjDSyBoVbtfsup9hVpqsOaP7fRWN_5qXMx1kPDA@mail.gmail.com> <12993.1569538051@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