vscode-postgres icon indicating copy to clipboard operation
vscode-postgres copied to clipboard

Extension sends request on each keystroke

Open asvitlica-vega opened this issue 4 years ago • 1 comments

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 :)

asvitlica-vega avatar Oct 05 '21 09:10 asvitlica-vega

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.

Borvik avatar Oct 05 '21 10:10 Borvik