Search Postgresql Archives

Re: \d don't print all the tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <wen-yi@xxxxxx> 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 namespace_a.simple (name varchar);
CREATE TABLE
postgres=# create table namespace_b.simple (name varchar);
CREATE TABLE
postgres=# \d
         List of relations
 Schema |  Name  | Type  |  Owner   
--------+--------+-------+----------
 public | simple | table | postgres
(1 row)

postgres=#

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?

Yours,
Wen Yi.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux