Re: \dt shows table but \d <table> says the table doesn't exist ?

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: David Gauthier <dfgpostgres(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: \dt shows table but \d <table> says the table doesn't exist ?
Date: 2024-05-03 21:06:10
Message-ID: CABUevEwkSS_FhL0Zi1_m3oU5WqELHF+qQfCLDK3e__qTsYdsYw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, May 3, 2024 at 10:58 PM David Gauthier <dfgpostgres(at)gmail(dot)com>
wrote:

> psql (15.3, server 14.5) on linux
>
> Someone else's DB which I've been asked to look at.
>
> \dt gives many tables, here are just 3...
>
> public | some_idIds | table |
> cron_user
> public | WarningIds | table |
> cron_user
> public | cpf_inv_driverIds | table |
> cron_user
>
> but \d public.some_idIds gives..
>
> Did not find any relation named "public.some_idIds".
>

Looks like you might need a \d "some_idIds" (include the quotes) since it
has an uppercase characters?

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-05-03 21:06:38 Re: \dt shows table but \d <table> says the table doesn't exist ?
Previous Message David Gauthier 2024-05-03 20:58:26 \dt shows table but \d <table> says the table doesn't exist ?