Re: BUG #18038: Aliases removed from view definitions

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Asier Lostalé <asier(dot)lostale(at)openbravo(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18038: Aliases removed from view definitions
Date: 2023-07-28 06:22:51
Message-ID: 3b7f2fc7fe1364c6dddcdcb7458235047609b61c.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Jeff Janes 2023-07-28 13:26:30 Re: Question about double table scans for a table
Previous Message David G. Johnston 2023-07-28 05:45:41 Re: BUG #18038: Aliases removed from view definitions