Re: Controlling complexity in queries - Mailing list pgsql-general

From Bèrto ëd Sèra
Subject Re: Controlling complexity in queries
Date
Msg-id CAKwGa_9khHpvnb1NtFNjfSG0rOaVGDEgy3gvFMad14XkVn+omg@mail.gmail.com
Whole thread Raw
In response to Re: Controlling complexity in queries  (Harald Fuchs <hari.fuchs@gmail.com>)
List 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 by date:

Previous
From: Andreas
Date:
Subject: Re: Philosophical question
Next
From: Chris Travers
Date:
Subject: Re: Philosophical question