Skip to content

Pass through DuckDB SHOW commands (TABLES, DATABASES, ALL)#268

Merged
jghoman merged 1 commit intomainfrom
fix/show-tables-does-not-work
Feb 27, 2026
Merged

Pass through DuckDB SHOW commands (TABLES, DATABASES, ALL)#268
jghoman merged 1 commit intomainfrom
fix/show-tables-does-not-work

Conversation

@jghoman
Copy link
Contributor

@jghoman jghoman commented Feb 27, 2026

Summary

  • SHOW TABLES, SHOW DATABASES, and SHOW ALL were rejected with "unrecognized configuration parameter" because the SetShow transpiler catch-all treated any single-word SHOW argument as a PostgreSQL config parameter
  • Added a passthrough list for DuckDB-specific SHOW commands so they're forwarded to DuckDB unchanged
  • SHOW ALL TABLES already worked via the FallbackToNative path (pg_query can't parse it)

Test plan

  • Added unit tests for SHOW TABLES, SHOW DATABASES, SHOW ALL passthrough
  • Verified manually via psql
  • golangci-lint clean

SHOW TABLES, SHOW DATABASES, and SHOW ALL were being rejected with
"unrecognized configuration parameter" because the transpiler's
catch-all treated any single-word SHOW argument as a PostgreSQL
config parameter. These are valid DuckDB commands that return
result sets and should be forwarded to DuckDB unchanged.
@jghoman jghoman merged commit 85dc1a7 into main Feb 27, 2026
14 checks passed
@jghoman jghoman deleted the fix/show-tables-does-not-work branch February 27, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant