cweijan / vscode-database-client

Database Client For Visual Studio Code
https://database-client.com
MIT License
2.49k stars 285 forks source link

[BUG] Query stuck on "Loading Foreign Keys" in PostgreSQL #1324

Open sersh88 opened 3 hours ago

sersh88 commented 3 hours ago

When querying any table, the query gets stuck with the status "Loading database_name#database_name ForeignKeys" and never completes. If I disconnect from the database and reconnect, sometimes queries work normally.

This issue happens only in databases with a large number of tables (over 350), mainly partitioned tables. Disabling the Foreign Key feature does not fix the problem.

Additionally, when trying to list tables for the first time, I often get a "connection timeout". On the second attempt, the tables load, but querying any of them leads to the issue.

cweijan commented 3 hours ago

Thanks for your report! I will optimize the performance in the next version. Can you provide the log?

image
sersh88 commented 2 hours ago

image

Nothing in the log.