Re: Can anyone confirm the flaw of postgres and how to deal with it? - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Can anyone confirm the flaw of postgres and how to deal with it?
Date
Msg-id f72c6631-057d-4669-37d8-576a031519f8@aklaver.com
Whole thread Raw
In response to Can anyone confirm the flaw of postgres and how to deal with it?  (Shaozhong SHI <shishaozhong@gmail.com>)
List pgsql-general
On 4/20/22 08:47, Shaozhong SHI wrote:
> I loaded several tables onto Postgres.
> 
> When you view, you can see all columns.
> 
> However, there are 'ghost columns' that I remember I used before, but 
> not now.
> 
>   select column_name::text from information_schema.columns where 
> table_name=a_table

Best guess is that since you are not filtering on table_schema you are 
seeing columns for tables with table_name=a_table across all schemas.

> 
> keeps listing columns that I can not see in the current table.
> 
> Why does this happen?
> 
> What is the solution?
> 
> Regards,
> 
> David


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Can anyone confirm the flaw of postgres and how to deal with it?
Next
From: "Thomas, Richard"
Date:
Subject: RE: PostgreSQL 10.20 crashes / Antivirus