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 1vs8bW-007az0-0p for pgsql-general@arkaria.postgresql.org; Tue, 17 Feb 2026 00:06:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vs8bV-006k1A-04 for pgsql-general@arkaria.postgresql.org; Tue, 17 Feb 2026 00:06:13 +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 1vs8ZF-006fa9-1U for pgsql-general@lists.postgresql.org; Tue, 17 Feb 2026 00:03:54 +0000 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vs8ZC-000000016Zw-371X for pgsql-general@lists.postgresql.org; Tue, 17 Feb 2026 00:03:53 +0000 Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfout.stl.internal (Postfix) with ESMTP id 16EB91D00077; Mon, 16 Feb 2026 19:03:48 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Mon, 16 Feb 2026 19:03:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1771286627; x=1771373027; bh=2IWt0vNYZUZ4svii7kyfA6jNuaYCv6Dg6Ls7+uOirlg=; b= bwfCdFEj6fVj4d54O4D4Z9xl53LUkJ78p3GHVuKnHz8EG3qNLhrysWp41B1GJvun +K5SRuCPIJ6zcfMCfDtP2yZ7hWResI5unPiDuv/SzP8viHAOdi3QodrLsIulpiyM yd7DTB7KACJ5ZPkmQyjWSAxsv7Kn+UKb5hGrQJQZv/wvv1aYRr8pdvgmHIIWkaWc qsobneeZobaMHWhdawY3qhakcvkqAlH5ra+eb+K0L26nnXwfA3KzTmmQrvZZ3Eoy so9Gs9wyAIuH8qe1ySYzaIurp21u0CYTaBCx4oPKTbKk89Kny9hSDuZpUNB2dfAI fpqUMt+mPsIWfq9lINNDHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1771286627; x=1771373027; bh=2 IWt0vNYZUZ4svii7kyfA6jNuaYCv6Dg6Ls7+uOirlg=; b=Fk9nbY3fLpyp2bA4d Q78/59DfL4xbOXWhGPpJ64NoyPuGUXGCP5hP1vvgvcibYvn81WCz/x5p78qnmG1m 8wEOprKr5WhlwHGTedZl3p0BtdMe0I29hpQY7JYBEKgAKvnFheEPv2EWYi9RjUor 21teu1qrYgz9hjC4cHMpTSOUo5aU85ehxLbshgM0jX1smYborIfjhV15QjmMlwCo Y6GjvvMisgHjMXTOT2H2zYZzUNAIUbERo6nBsRamZh1ElXkOJE0J3SHu1Ye4zNgo oe6WxthzZ0q3nsoDq1MAImkcX5TrXyUOJ4EEd7VUts3wVfC2zgyhpSVQbOEoW9Tl UNPFQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvudekvdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeeivdfhieehheegueeileejieettdejhedugeefleekvdel keehtdfgiefffeekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggp rhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehikhhorhhoth dtudesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehl ihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Feb 2026 19:03:47 -0500 (EST) Message-ID: Date: Mon, 16 Feb 2026 16:03:46 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Why there is no records? To: Igor Korot , "pgsql-generallists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/16/26 15:59, Igor Korot wrote: > Hi, > > 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 are doing: c.oid = n.oid which is comparing the pg_constraint.oid to the pg_namespace.oid which are not the same thing. You need: c.connamespace = n.oid > 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. > > -- Adrian Klaver adrian.klaver@aklaver.com