cockroachdb / cockroachdb/cockroach
cli: large query causes `cockroach sql` client to hang
Open
branch-master
C-bug
T-sql-foundations
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
Running `cockroach sql -f file.sql` when `file.sql` contains a multi-megabyte query causes the client to hang, seemingly indefinitely.
One work around for now is to use `psql`.
The SQL in https://gist.github.com/mgartner/c06b0ad259e50344c93430ff48282355 can be used to reproduce this, when using `cockroach sql` instead of `psql`.
Jira issue: CRDB-43219
Epic CRDB-23743
Contributor guide
Assessment
This issue has not been assessed yet.