You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
USE NOAA_water_database
SELECT "degrees", SAMPLE("degrees", 2) FROM "average_temperature" LIMIT 42747 OFFSET 323971
Result
The query hangs. Heap remains very low, no CPU activity.
See attached SIGQUIT on the server.
I have managed to simplify a query that triggers this issue to:
SELECT "degrees", SAMPLE("degrees", 2) FROM "average_temperature" LIMIT 1 OFFSET 1
Note that all the following queries return results, or at least return an empty result immediately:
SELECT "degrees", SAMPLE("degrees", 2) FROM "average_temperature"
SELECT "degrees", SAMPLE("degrees", 2) FROM "average_temperature" LIMIT 1
However, SELECT "degrees", SAMPLE("degrees", 2) FROM "average_temperature" OFFSET 1 also hangs the server. I note in this case the docs say that OFFSET should not be used without LIMIT, but as you can see above, using it with LIMIT still hangs the server.
This issue was found by fuzzing the database with a query generator tool. It may be possible to simplify the query to help identify the root cause.
Dataset
Query
Result
The query hangs. Heap remains very low, no CPU activity.
See attached
SIGQUIT
on the server.I have managed to simplify a query that triggers this issue to:
Note that all the following queries return results, or at least return an empty result immediately:
However,
SELECT "degrees", SAMPLE("degrees", 2) FROM "average_temperature" OFFSET 1
also hangs the server. I note in this case the docs say thatOFFSET
should not be used withoutLIMIT
, but as you can see above, using it withLIMIT
still hangs the server.1488220454176671673-freeze.txt
The text was updated successfully, but these errors were encountered: