Why does PostgreSQL's \dt show only public schema tables?

后端 未结 1 843
暖寄归人
暖寄归人 2021-01-31 01:27

I have created a new schema in my PostgreSQl database with psql:

CREATE SCHEMA my_schema;

But when I issue the \\dt command, I see

相关标签:
1条回答
  • 2021-01-31 02:20

    For your schema (note the period after the schema name):

    \dt my_schema.
    

    Or:

    SET search_path TO my_schema, public;
    \dt
    

    For all schemas:

    \dt *.
    
    0 讨论(0)
提交回复
热议问题