Re: 7.1 bug fix question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steve Wampler <swampler(at)noao(dot)edu>
Cc: postgres-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: 7.1 bug fix question
Date: 2001-04-18 18:35:43
Message-ID: 12387.987618943@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Steve Wampler <swampler(at)noao(dot)edu> writes:
> One of the listed bug fixes is:
> Disallow INSERT/UPDATE/DELETE on views
> Can some one give me a little insight on what this
> implies?

It means that if you try to do INSERT/UPDATE/DELETE on a view that
doesn't have a rule to translate that action to something else, the
system will complain (rather than applying the action to the hidden
table underlying the view, as it used to do with confusing results).

> In particular, I currently (pg 7.0.3) have views with
> trigger functions on insert and update that trap the
> action and recast it to a table (after doing some checks).

> Will this still work with 7.1?

Yes. As long as you have appropriate rules, this change won't affect
you at all.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message will trillich 2001-04-18 18:42:26 Re: corrupted database?
Previous Message Matthew Hixson 2001-04-18 18:04:47 Re: Re: versioning question