Re: Controlling complexity in queries

Поиск
Список
Период
Сортировка
От Bèrto ëd Sèra
Тема Re: Controlling complexity in queries
Дата
Msg-id CAKwGa_9khHpvnb1NtFNjfSG0rOaVGDEgy3gvFMad14XkVn+omg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Controlling complexity in queries  (Harald Fuchs <hari.fuchs@gmail.com>)
Список pgsql-general
Hi,
 
Here the result of "SELECT * FROM test1v" depends on who issued the query.

As a more general case, I sometimes load parameters into a utility table, and use them to dynamically restrict the view's output. Downside: it's a multistatement operation... however, when wrapping complex queries into functions gives the planner a bad time, this will solve the issue.

Bèrto

--
==============================
If Pac-Man had affected us as kids, we'd all be running around in a darkened room munching pills and listening to repetitive music.

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

Предыдущее
От: Andreas
Дата:
Сообщение: Re: Philosophical question
Следующее
От: Chris Travers
Дата:
Сообщение: Re: Philosophical question