Le jeudi 19 novembre 2009 à 01:20:24, Kris Kewley a écrit :
> Could you not create a function to do this instead?
>
> Set var_limit = 20% of row count
> Replace subquery with var_limit
>
Sure, see the previous mails from Pavel. You can also put the percent as a
parameter of the function.
--
Guillaume.http://www.postgresqlfr.orghttp://dalibo.com