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.96) (envelope-from ) id 1vs8ZB-007Z8z-1F for pgsql-general@arkaria.postgresql.org; Tue, 17 Feb 2026 00:03:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vs8Z9-006eQk-3C for pgsql-general@arkaria.postgresql.org; Tue, 17 Feb 2026 00:03:48 +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.96) (envelope-from ) id 1vs8Z9-006eQY-2C for pgsql-general@lists.postgresql.org; Tue, 17 Feb 2026 00:03:47 +0000 Received: from smtp.burggraben.net ([88.198.69.140]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vs8Z7-000000016Zk-1Ebb for pgsql-general@lists.postgresql.org; Tue, 17 Feb 2026 00:03:47 +0000 Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:21b:21ff:fef0:248b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elch.exwg.net", Issuer "R12" (not verified)) by smtp.burggraben.net (Postfix) with ESMTPS id DCD2BC00311; Tue, 17 Feb 2026 01:03:43 +0100 (CET) Received: by elch.exwg.net (Postfix, from userid 1000) id B1472FE58C; Tue, 17 Feb 2026 01:03:43 +0100 (CET) Date: Tue, 17 Feb 2026 01:03:43 +0100 From: Christoph Moench-Tegeder To: Igor Korot Cc: "pgsql-generallists.postgresql.org" Subject: Re: Why there is no records? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.3.0 (2026-01-25) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ## 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