mirror of
https://github.com/postgres/postgres.git
synced 2025-11-25 12:03:53 +03:00
The executor has thrown errors for negative OFFSET values since 8.4 (see commitbfce56eea4), but in a moment of brain fade I taught the planner that OFFSET with a constant negative value was a no-op (commit1a1832eb08). Reinstate the former behavior by only discarding OFFSET with a value of exactly 0. In passing, adjust a planner comment that referenced the ancient behavior. Back-patch to 9.3 where the mistake was introduced.
119 KiB
119 KiB