TablePlus / TablePlus

TablePlus macOS issue tracker
https://tableplus.com
3.34k stars 56 forks source link

Tables do not appear in Items sidebar #3291

Closed aaronsharff closed 1 month ago

aaronsharff commented 1 month ago
  1. PostgreSQL 15.3
  2. TablePlus Version 6.0.0 (550)
  3. Issue:

    • No tables appear in sidebar image

    • (SELECT table_name, table_schema, table_type FROM information_schema.tables) UNION (SELECT c.relname AS table_name, n.nspname AS table_schema, 'MATERIALIZED VIEW' FROM pg_catalog.pg_class c JOIN pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind = 'm'); returns results as expected

    • Refreshing TablePlus does not fix the issue

    • Only one schema available in schema dropdown

huyphams commented 1 month ago

Hi @aaronsharff are you sure that the public schema has items?

aaronsharff commented 1 month ago

Hi @aaronsharff are you sure that the public schema has items?

Yes, table_schema = 'public' has items

huyphams commented 1 month ago

We use this query to get the item list, can you run it and show me the result?

SELECT table_name, table_schema, table_type FROM information_schema.tables WHERE table_schema='schema_name'

SELECT table_name, table_schema, table_type FROM information_schema.tables WHERE table_schema='public'

aaronsharff commented 1 month ago
image
huyphams commented 1 month ago

So it is redshift and not PostgreSQL driver?

aaronsharff commented 1 month ago

Yes, thank you, that's my mistake. For posterity, I had chosen a "Redshift" connection but it was actually a Postgres database. All good here now.

huyphams commented 1 month ago

Thanks, redshift has a different structure so you should use the correct driver. Closing this issue for now.