Re: \d don't print all the tables

2023-07-24 Thread Alvaro Herrera
On 2023-Jul-24, Ron wrote: > Add namespace_a and namespace_b to your search_path.  Then it will work. > > Off the top of my head: > SET search_path = namespace_a, namespace_b, public; Actually it won't, because the table in the earliest schema "shadows" any other tables of the same name in later

Re: \d don't print all the tables

2023-07-24 Thread Adrian Klaver
On 7/23/23 19:25, Wen Yi wrote: Hi community, here's my shell: I think it should print the table on namespace_a & namespace_b, not just public, it really confused me. Can someone give me some advice? Read about search_path: https://www.postgresql.org/docs/current/ddl-schemas.html#DDL-SCHEM

Re: \d don't print all the tables

2023-07-24 Thread Ron
On 7/23/23 21:25, Wen Yi wrote: Hi community, here's my shell: postgres=# \d Did not find any relations. postgres=# create schema namespace_a; CREATE SCHEMA postgres=# create schema namespace_b; CREATE SCHEMA postgres=# create table simple (name varchar); CREATE TABLE postgres=# create table nam

Re: \d don't print all the tables

2023-07-24 Thread Antonio Čale
Hi, try: \d *.* where: *.* = schema.table Best regards / Cordialement / S pozdravem / S poštovanjem, *Antonio Čale* On Mon, Jul 24, 2023 at 11:43 AM Wen Yi wrote: > Hi community, > here's my shell: > > postgres=# \d > Did not find any relations. > postgres=# create schema namespace_a; > CREAT

\d don't print all the tables

2023-07-24 Thread Wen Yi
Hi community, here's my shell: postgres=# \d Did not find any relations. postgres=# create schema namespace_a; CREATE SCHEMA postgres=# create schema namespace_b; CREATE SCHEMA postgres=# create table simple (name varchar); CREATE TABLE postgres=# create table namespace_a.simple (name varchar);