Describe the bug
When writing SQL queries, foreign tables do not appear in intellisense cues.
To Reproduce
Steps to reproduce the behavior:
- Open a connection to a database with foreign tables.
- Start writing SELECT * FROM
- Press Ctrl+SPACE
- Names of foreign tables are missing from the list.
Expected behavior
Names of foreign tables should appear in the list so that they can be added to the query.
Screenshots
VS Code version
Version: 1.106.3 (user setup)
Commit: bf9252a2fb45be6893dd8870c0bf37e2e1766d61
Date: 2025-11-25T22:28:18.024Z (2 wks ago)
Electron: 37.7.0
ElectronBuildId: 12781156
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
Extension Logs
[8:53:31 PM] Connecting to server "" on document "untitled:Untitled-1".
[8:53:31 PM] Connected to server "REDACTED>" on document "untitled:Untitled-1". Server information: {"isCloud":false,"server":"PostgreSQL","serverVersion":"16.0.11"}
I would check whether, when getting object names from pg_catalog.pg_class, the tables are not limited to relkind = 'r' while relkind = 'f' should be used, too.
Describe the bug
When writing SQL queries, foreign tables do not appear in intellisense cues.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Names of foreign tables should appear in the list so that they can be added to the query.
Screenshots
VS Code version
Version: 1.106.3 (user setup)
Commit: bf9252a2fb45be6893dd8870c0bf37e2e1766d61
Date: 2025-11-25T22:28:18.024Z (2 wks ago)
Electron: 37.7.0
ElectronBuildId: 12781156
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
Extension Logs
[8:53:31 PM] Connecting to server "" on document "untitled:Untitled-1".
[8:53:31 PM] Connected to server "REDACTED>" on document "untitled:Untitled-1". Server information: {"isCloud":false,"server":"PostgreSQL","serverVersion":"16.0.11"}
I would check whether, when getting object names from pg_catalog.pg_class, the tables are not limited to relkind = 'r' while relkind = 'f' should be used, too.