Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s30Dl-008IJO-KV for pgsql-general@arkaria.postgresql.org; Fri, 03 May 2024 21:13:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s30Dj-00C9Xu-3H for pgsql-general@arkaria.postgresql.org; Fri, 03 May 2024 21:13:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s30Di-00C9Xm-Oi for pgsql-general@lists.postgresql.org; Fri, 03 May 2024 21:13:31 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s30Dg-001Oz7-CO for pgsql-general@lists.postgresql.org; Fri, 03 May 2024 21:13:30 +0000 Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-61be599ab77so52235a12.1 for ; Fri, 03 May 2024 14:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander.net; s=mail; t=1714770806; x=1715375606; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EzfBnA3T0aY+j9Jq5/gtbV8i10VDdetbaknTrsNRCtc=; b=LYNZtyf7SLJe0PQNc5EIdzSnJSYmNqOSppwY7RDFjnqi/gaD9+pgiROliOSPVwQCqL H91pPSjA4Lo27XeqtVRTe1fBa908fXF6K56dCMkcKLWs45BPFiTpMfMhllt2rq0qFf1R +DNgoWVEqLNsHgqujW1Ih71yyIiagy2z4rzBW0It++80s0ndv7xpekqxfFGuypBDN7Dp 5N0yKc5i8+PPc7BTShaLDCaChp9ntylyidytDTXcjZ2o9nrWMqWVuVhSCraawmME5N9T XsNSgrKkURWVQqLcNdqFEPFKGHJDtI7DAFOxYhIAz5KuzzS0dgGlS0TGKG57ASrqg8ra MD9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714770806; x=1715375606; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EzfBnA3T0aY+j9Jq5/gtbV8i10VDdetbaknTrsNRCtc=; b=InD5Z1IDt4ovGfVmXuKyu5lWHicQxotBlL7rwYs/m7FMlmpd+oKpivz89QkVug9Fpl spn+3hy41mw1U/Q4umZkxoe4YGsP7IZv2xrCqdzsp9GK01tkXomMGDKS5ZmWcJg5Pz+k Mzz39Ca1x5Ku6Hx5gh1h3Ck80pFKQ9cnT4ePRy1lRz9YBOj0qtqmrTGb8FiQLdLqIiia HphTvlBPkMj+l/PvWIHEbkUwSgY1ij93G9ap/IF7ciBI7RghBDmgmO86MVOdKlyaMRqL FIHJ020oMRBNZgwwh3e1Cpe6ZdYR5PxNCx9Kjhb/A8xcxpLaJ2RBnj1unVkz09de9XUK mseQ== X-Forwarded-Encrypted: i=1; AJvYcCVvlO0RDLWExEDKZ5evBtG2DLJ14QFfC4cvC2EHSEWasKORqhD4qy6nCbj7CM91Sf/9Gc6RRV/2mhgIblzpEg5Aenow0c6Uo67fBmmnAfSVn+Hu X-Gm-Message-State: AOJu0YxyJGxfVl0+GegUrxHcJtuAX6C5jXXIGD9QLEabvU4NDYY6CpMA qvmgbDAqHTiFhaErHhsHiVPjrdBevcTFCVhufvGclonLRG1oysq9B5GCGhNiIEtM02ZpvR0cSIH 4RyzLiMIIchX0UyCQFdaHG1VwYkx0IStlTj+V X-Google-Smtp-Source: AGHT+IEKD1EPCrnaGrfB2lGnygKsAe3bjoUnQu0V+TLpPImuN7VLoTdqbkn1vy6XYxtsHYZ3X1u6C1Bfgv0AvgrF32g= X-Received: by 2002:a17:90b:90f:b0:2a6:c503:95f2 with SMTP id bo15-20020a17090b090f00b002a6c50395f2mr3820007pjb.16.1714770806158; Fri, 03 May 2024 14:13:26 -0700 (PDT) MIME-Version: 1.0 References: <7c3a1c91-566a-46f7-82b5-b47eac58c500@aklaver.com> In-Reply-To: <7c3a1c91-566a-46f7-82b5-b47eac58c500@aklaver.com> From: Magnus Hagander Date: Fri, 3 May 2024 23:13:14 +0200 Message-ID: Subject: Re: \dt shows table but \d says the table doesn't exist ? To: Adrian Klaver Cc: David Gauthier , pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000c5d561061793307d" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c5d561061793307d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 3, 2024 at 11:08=E2=80=AFPM Adrian Klaver wrote: > On 5/3/24 14:06, Magnus Hagander wrote: > > > > > > On Fri, May 3, 2024 at 10:58=E2=80=AFPM David Gauthier > > 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? > > This: > > "Did not find any relation named "public.some_idIds"." > > to me indicates it did look for the properly cased name. > That is arguably a really bad error message, because it puts those quotes there whether needed or not. if you put the quotes in there, you get: Did not find any relation named "public."some_idIds"". -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/ --000000000000c5d561061793307d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Fri, May 3, 2024 at 11:08=E2=80=AF= PM Adrian Klaver <adrian.kl= aver@aklaver.com> wrote:
On 5/3/24 14:06, Magnus Hagander wrote:
>
>
> On Fri, May 3, 2024 at 10:58=E2=80=AFPM David Gauthier <dfgpostgres@gmail.com <= br> > <mailto:= dfgpostgres@gmail.com>> wrote:
>
>=C2=A0 =C2=A0 =C2=A0psql (15.3, server 14.5) on linux
>
>=C2=A0 =C2=A0 =C2=A0Someone else's DB which I've been asked to = look at.
>
>=C2=A0 =C2=A0 =C2=A0\dt gives many tables, here are just 3...
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0public | some_idIds =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | table
>=C2=A0 =C2=A0 =C2=A0| cron_user
>=C2=A0 =C2=A0 =C2=A0 =C2=A0public | WarningIds =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | table
>=C2=A0 =C2=A0 =C2=A0| cron_user
>=C2=A0 =C2=A0 =C2=A0 =C2=A0public | cpf_inv_driverIds =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0| table
>=C2=A0 =C2=A0 =C2=A0| cron_user
>
>=C2=A0 =C2=A0 =C2=A0but \d public.some_idIds gives..
>
>=C2=A0 =C2=A0 =C2=A0Did not find any relation named "public.some_i= dIds".
>
>
>
> Looks like you might need a \d "some_idIds" (include the quo= tes) since
> it has an uppercase characters?

This:

"Did not find any relation named "public.some_idIds"."<= br>
to me indicates it did look for the properly cased name.

That is arguably a really bad error message, because it p= uts those quotes there whether needed or not. if you put the quotes in ther= e, you get:

Did not find any relation named "publi= c."some_idIds"".

--
=C2=A0Magnus= Hagander
=C2=A0Me: https://www.hagander.net/
=C2=A0Work: https://www.redpill-linpro.com/
=
--000000000000c5d561061793307d--