The following bug has been logged on the website:
Bug reference: 15839
Logged by: Александр Черников
Email address: me(at)helld(dot)ru
PostgreSQL version: 10.6
Operating system: Ubuntu 18.04.1
Description:
Example request:
select * from orders where ClientId=$1 and Moment >= $2 and Moment < $3
order by $4 desc, ClientId limit $5 offset ($5-1)*$6;
Field in question is $4
Expected result - poor performance or clear error that dynamic sorting
cannot be used