Skip to content

Foreign tables do not appear in intellisense cues #197

@atalarczyk

Description

@atalarczyk

Describe the bug

When writing SQL queries, foreign tables do not appear in intellisense cues.

To Reproduce

Steps to reproduce the behavior:

  1. Open a connection to a database with foreign tables.
  2. Start writing SELECT * FROM
  3. Press Ctrl+SPACE
  4. 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

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-verifyHas been releated or pre-released, awaiting verification of fix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions