Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Jan 10, 2025
1 parent 6bbbbc3 commit d13489b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pgduckdb_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ NeedsDuckdbExecution(Query *query) {
*
* If there's no FROM clause, we're only selecting constants. From a
* performance perspective there's not really a point in using DuckDB. If we
* remove this check many common queries that are used to inspect postgres will
* throw a warning or return incorrect results. For example:
* forward all of such queries to DuckDB anyway, then many queries that are
* used to inspect postgres will throw a warning or return incorrect results.
* For example:
*
* SELECT current_setting('work_mem');
*
Expand Down

0 comments on commit d13489b

Please sign in to comment.