Re: Updatable view should truncate table fields - Mailing list pgsql-sql

From Jasen Betts
Subject Re: Updatable view should truncate table fields
Date
Msg-id j9lgkb$id5$1@reversiblemaps.ath.cx
Whole thread Raw
In response to Updatable view should truncate table fields  (Russell Keane <Russell.Keane@inps.co.uk>)
List pgsql-sql
On 2011-11-08, Russell Keane <Russell.Keane@inps.co.uk> wrote:
>
> We can extend the table to accept more than 5 characters but the view must =
> return 5 characters.
> If we try to extend the table to accept, say, 10 characters the view will d=
> isplay 10.
> If I also cast the view field to 5 characters then any insert with more tha=
> n 5 characters still fails.
>
> Any ideas???

re-load the view and functions, they are sill defined with the char(5)
column (you'll probably yneed to drop them all (but not the table) first).

plpgsql functions are partially compiled at the time they are defined 
subsequent modifictions to the datatypes in their definition will
cause errors until they are re-defined 

--



pgsql-sql by date:

Previous
From: Jasen Betts
Date:
Subject: Re: Partitionning + Trigger and Execute not working as expected
Next
From: Brice André
Date:
Subject: pg_dump : problem with grant on table columns