vscode-postgres
vscode-postgres copied to clipboard
Extension sends request on each keystroke
Hello,
While remotely connecting to a DB i noticed that the request is sent on each keystroke. This means that in DB logs I will see a request for each letter I type in, even if it's syntax error (because I didn't finish writing a query).
Is there a way to change this behavior to execute query only after i press f5?
Thanks in advance :)
So... that's how the syntax error checking works - however it's not really running the query it's running an EXPLAIN (just an EXPLAIN NOT EXPLAIN ANALYZE).
So execute that after F5 - probably not, since the idea is to provide syntax checking before running the query.
However, I can imagine a setting for ALWAYS, DEBOUNCED, or NEVER that controls syntax checking behavior.
When I'll get to it, is another thing altogether.