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
There is no bug here.
You wrote a valid query so no error should be issued. I don't see where performance should come into this at all.
That parameters can only replace values, not identifiers, is a learning issue that one just needs to usually encounter and take into memory. There is no substitute for experimentation and validating ones queries. Quite few problematic queries will execute just fine but give unexpected results.
From:
PG Bug reporting form Date: Subject:
BUG #15840: Vacuum does not work after database stopped for wraparound protection. Database seems unrepearable.
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
✖
By continuing to browse this website, you agree to the use of cookies. Go to Privacy Policy.