Re: pg_views.definition - Mailing list pgsql-hackers

From Jan Wieck
Subject Re: pg_views.definition
Date
Msg-id 3D342C1C.BF57C12B@Yahoo.com
Whole thread Raw
In response to Re: pg_views.definition  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: pg_views.definition  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:
> 
> Christopher Kings-Lynne wrote:
> > Hi,
> >
> > Would it be possible to add a new attribute to pg_views that stores the
> > original view definition, as entered via SQL?
> >
> > This would make the lives of those of us who make admin interfaces a lot
> > easier...
> 
> We actually reverse it on the fly:

We do, but as soon as you break the view by dropping an underlying
object it fails to reconstruct. So having the original view definition
at hand could be useful for some ALTER VIEW RECOMPILE command.


Jan

-- 

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] line datatype
Next
From: Bruce Momjian
Date:
Subject: Re: [SQL] line datatype