Re: leaky views, yet again

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: leaky views, yet again
Дата
Msg-id 20101007132327.GR26232@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: leaky views, yet again  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: leaky views, yet again  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Список pgsql-hackers
* Heikki Linnakangas (heikki.linnakangas@enterprisedb.com) wrote:
> On 07.10.2010 16:10, Stephen Frost wrote:
>> Also, even if you can't create functions (due to lack of create
>> privileges on any schema), you could use DO clauses now.
>
> There's no way to shoehorn a DO clause into a SELECT, you can't do:
>
> SELECT data FROM view WHERE (DO $$ RAISE NOTICE argument; $$) = 1

Wow, I just kind of assumed you could; I'm not really sure why.  Perhaps
it'll be possible in the future though, so might be something to think
about if/when it happens.  Can't see a way to abuse the view from inside
a DO or in a function in the same way either.
Stephen

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Sync Rep at Oct 5
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: leaky views, yet again