Bumping this, because I am genuinely interested if there is a better way to
do this.
I'd really like to know if there is a better way than executing dummy
queries...it feels dirty.
I've seen plenty of extensions not handle query cancellation / exceptions
gracefully. Also seems like something to talk about in the docs a little
bit, because most extensions/functions that don't handle this well aren't
even aware that those issues are there from what i've seen (searching
github issues, etc).