Re: Database design: Backwards-compatible field addition - Mailing list pgsql-general

From Karsten Hilbert
Subject Re: Database design: Backwards-compatible field addition
Date
Msg-id 20080618121807.GC4010@merkur.hilbert.loc
Whole thread Raw
In response to Database design: Backwards-compatible field addition  (David <wizzardx@gmail.com>)
Responses Re: Database design: Backwards-compatible field addition
List pgsql-general
On Wed, Jun 18, 2008 at 02:04:14PM +0200, David wrote:

> 1) table1 becomes a view of an updated table, with a 'WHERE field4 IS
> NULL' clause.
>
> Problem with this is that some RDBMS (Postgresql specifically) don't
> let you run update statements on views.

Given 1) the view will be "fairly uncomplicated" and hence
"fairly straightforward" ON INSERT/UPDATE/DELETE rule can
likely be added to it allowing for an apparently writable
view.

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

pgsql-general by date:

Previous
From: David
Date:
Subject: Database design: Data synchronization
Next
From: Karsten Hilbert
Date:
Subject: Re: Database design: Storing app defaults