Why there is no records?
Igor Korot <ikorot01@gmail.com>
From: Igor Korot <ikorot01@gmail.com>
To: "pgsql-generallists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2026-02-16T23:59:46Z
Lists: pgsql-general
Hi,
draft=# SELECT n.nspname, c.oid FROM pg_constraint c, pg_namespace n
WHERE c.oid = n.oid AND c.conname = 'leagues_pkey';
nspname | oid
---------+-----
(0 rows)
draft=# SELECT * FROM pg_constraint WHERE conname = 'leagues_pkey';
oid | conname | connamespace | contype | condeferrable |
condeferred | convalidated | conrelid | contypid | conindid |
conparentid | confrelid | confupdtype | confdeltype | confmatchtype |
conislocal | coninhcount | connoinherit | conkey | confkey | conpfeqop
| conppeqop | conffeqop | confdelsetcols | conexclop | conbin
-------+--------------+--------------+---------+---------------+-------------+--------------+----------+----------+----------+-------------+-----------+-------------+-------------+---------------+------------+-------------+--------------+--------+---------+-----------+-----------+-----------+----------------+-----------+--------
16395 | leagues_pkey | 2200 | p | f | f
| t | 16390 | 0 | 16394 | 0 |
0 | | | | t |
0 | t | {1} | | | |
| | |
(1 row)
Thank you.