Re: Updatable views

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Updatable views
Дата
Msg-id 20060821151140.GC24691@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Updatable views  (Bernd Helmle <mailings@oopsware.de>)
Список 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.

В списке pgsql-patches по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Updatable views
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Provide 8-byte transaction IDs to user level