pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Asier Lostalé <asier.lostale@openbravo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18038: Aliases removed from view definitions
Date: Fri, 28 Jul 2023 08:22:51 +0200
Message-ID: <3b7f2fc7fe1364c6dddcdcb7458235047609b61c.camel@cybertec.at> (raw)
In-Reply-To: <CABtr+CL=_vQ4o_mFH=pS10Zag2XNa9w6Z8neWnMu9_gyGXgRWQ@mail.gmail.com>
References: <18038-c1613c6a9be9995d@postgresql.org>
	<2057266.1690466429@sss.pgh.pa.us>
	<CABtr+CL=_vQ4o_mFH=pS10Zag2XNa9w6Z8neWnMu9_gyGXgRWQ@mail.gmail.com>

On Fri, 2023-07-28 at 07:33 +0200, Asier Lostalé wrote:
> Is there any way to get the original sql text used to create the view?

PostgreSQL does not retain that information.

Perhaps you could use comments:

  COMMENT ON VIEW whatever IS 'source code';

Yours,
Laurenz Albe





view thread (5+ messages)

Message-ID: <3b7f2fc7fe1364c6dddcdcb7458235047609b61c.camel@cybertec.at>
Permalink:  ../3b7f2fc7fe1364c6dddcdcb7458235047609b61c.camel@cybertec.at/
Also on:    postgresql.org/message-id/3b7f2fc7fe1364c6dddcdcb7458235047609b61c.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, asier.lostale@openbravo.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #18038: Aliases removed from view definitions
  In-Reply-To: <3b7f2fc7fe1364c6dddcdcb7458235047609b61c.camel@cybertec.at>
  References: <18038-c1613c6a9be9995d@postgresql.org> <2057266.1690466429@sss.pgh.pa.us> <CABtr+CL=_vQ4o_mFH=pS10Zag2XNa9w6Z8neWnMu9_gyGXgRWQ@mail.gmail.com> <3b7f2fc7fe1364c6dddcdcb7458235047609b61c.camel@cybertec.at>

* 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