Re: Why there is no records? - Mailing list pgsql-general

From Christoph Moench-Tegeder
Subject Re: Why there is no records?
Date
Msg-id aZOwX5CU7DgHvzx9@elch.exwg.net
Whole thread Raw
In response to Why there is no records?  (Igor Korot <ikorot01@gmail.com>)
List pgsql-general
## Igor Korot (ikorot01@gmail.com):

> draft=# SELECT n.nspname, c.oid FROM pg_constraint c, pg_namespace n
> WHERE c.oid = n.oid AND c.conname = 'leagues_pkey';

Because you're joining on the wrong column, see 3rd row of
https://www.postgresql.org/docs/current/catalog-pg-constraint.html

Regards,
Christoph

-- 
Spare Space



pgsql-general by date:

Previous
From: Igor Korot
Date:
Subject: Why there is no records?
Next
From: Adrian Klaver
Date:
Subject: Re: Why there is no records?