| From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
|---|---|
| To: | Shaozhong SHI <shishaozhong(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Can anyone confirm the flaw of postgres and how to deal with it? |
| Date: | 2022-04-20 16:05:57 |
| Message-ID: | f72c6631-057d-4669-37d8-576a031519f8@aklaver.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(dot)klaver(at)aklaver(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thomas, Richard | 2022-04-20 17:23:57 | RE: PostgreSQL 10.20 crashes / Antivirus |
| Previous Message | David G. Johnston | 2022-04-20 15:51:42 | Re: Can anyone confirm the flaw of postgres and how to deal with it? |