manage changes to views having depencies - Mailing list pgsql-general

From Eric Worden
Subject manage changes to views having depencies
Date
Msg-id 569f05d30812312057r4a8ae31eq63250ff2a8f42664@mail.gmail.com
Whole thread Raw
Responses Re: manage changes to views having depencies  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Re: manage changes to views having depencies  (Berend Tober <btober@ct.metrocast.net>)
List pgsql-general
Can anyone recommend a reasonably efficient system for changing a view
definition (say by adding a column) when it has a bunch of dependent
functions?

Right now I work with the output from pg_dump to recreate things after
doing "DROP VIEW ... CASCADE".  But the pg_dump schema output is only
approximately sorted by dependencies, and "create table..." is
sprinkled all through it.  That means I have to carefully comb through
and select the pieces I need.

Is there a way to just script the view definitions, then the
functions?  Or maybe I'm looking at it the wrong way?

pgsql-general by date:

Previous
From: Martin Gainty
Date:
Subject: Re: pg_restore question (-T and -t)
Next
From: "Scott Marlowe"
Date:
Subject: Re: manage changes to views having depencies