Re: create view with check option

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: Karthikeyan Sundaram <skarthi98(at)hotmail(dot)com>
Subject: Re: create view with check option
Date: 2007-03-19 17:34:25
Message-ID: 45FEC9A1.9090703@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

Karthikeyan Sundaram wrote:
> Hi Everybody,
>
> I have 2 versions of postgres 8.1.0 is my production version and
> 8.2.1 is my development version.
>
> I am trying to create a view in my development version (8.2.3)
>
> create view chnl_vw as select * from channel with check option;
>
> I am getting an error message:
>
> [Error] Script lines: 1-1 --------------------------
> ERROR: WITH CHECK OPTION is not implemented
> Line: 1
>
> what does this mean? I looked at the 8.2.1 manual and found the
> create view has check option. But it says before 8.2 those options are
> unsupported.

Why are you trying to declare a view "with check option" using a 8.2 engine?
Can you show us the part of manual that say you can use that syntax?

I see:

CREATE [ OR REPLACE ] [ TEMP | TEMPORARY ] VIEW name [ ( column_name [, ...] ) ]
AS query

Regards
Gaetano Mendola

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2007-03-19 17:35:10 Re: Problem migrating from 8.0.3 to 8.2.3
Previous Message Tom Lane 2007-03-19 16:38:16 Re: Problem migrating from 8.0.3 to 8.2.3

Browse pgsql-sql by date

  From Date Subject
Next Message Jure Kodzoman 2007-03-19 18:35:59 Re: Encode
Previous Message Maya Nigrosh 2007-03-19 16:40:04 Multiple partition tables and faster queries