Re: Updatable views

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Bernd Helmle <mailings(at)oopsware(dot)de>
Cc: Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Updatable views
Date: 2006-08-21 15:11:40
Message-ID: 20060821151140.GC24691@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bernd Helmle wrote:

> >Comments from Bernd and Jaime are especially welcome if I've broken
> >something that used to work on their patch :-)
>
> I see that the current patch doesn't support subqueries in the WHERE-clause
> anymore.
> You can find one example in the attached SQL-script. Is there a reason
> why you dropped this?

Hum, turns out that you had this code in the patch:

/*
if ( query->hasSubLinks == true )
{
elog( WARNING, "Subqueries violates SQL92 view update rules!" );
return false;
}
*/

I figured I'd remove the comments, and then forgot ... If you remove
the piece of code from the viewUpdate.c file, your sample script works.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-08-21 15:13:58 Re: PostgreSQL on 64 bit Linux
Previous Message Alvaro Herrera 2006-08-21 14:59:17 Re: Updatable views

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-08-21 16:18:33 Re: [PATCH] Provide 8-byte transaction IDs to user level
Previous Message Alvaro Herrera 2006-08-21 14:59:17 Re: Updatable views