Re: view management

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: view management
Date: 2007-11-16 21:01:00
Message-ID: 20071116130100.58dd0fac@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 16 Nov 2007 13:57:24 -0700
"Ed L." <pgsql(at)bluepolka(dot)net> wrote:

> I have a question about view management...
>
> I often have need for views that reference views that reference
> views, and so on. When I need to make a small update to one of
> the views, I am faced with having to drop and recreate all
> dependent views even if the driving change just adds another
> column to the view, for example. I might have to drop and
> recreate many tens of views just to make a change to a single
> view. What a PITA. How do others manage this?

I use stored procedures instead.

Joshua D. Drake

>
> TIA.
> Ed
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 9: In versions below 8.0,
> the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>

- --

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 24x7/Emergency: +1.800.492.2240
PostgreSQL solutions since 1997 http://www.commandprompt.com/
UNIQUE NOT NULL
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHPgUMATb/zqfZUUQRAneuAJ9I4FByzPC3fSCwWdwjhEfQtdFpKwCfYDkv
IvL6KnBrOeqpUj6qKBkd8iE=
=Se2S
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Hart 2007-11-16 21:02:34 convert access sql to postgresql
Previous Message Ed L. 2007-11-16 20:57:24 view management