Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1px7Vw-0006BK-It for pgsql-general@arkaria.postgresql.org; Thu, 11 May 2023 14:43:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1px7Vv-0003jp-Gh for pgsql-general@arkaria.postgresql.org; Thu, 11 May 2023 14:43:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1px7Vu-0003jg-CL for pgsql-general@lists.postgresql.org; Thu, 11 May 2023 14:43:27 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1px7Vq-001zSJ-Dp for pgsql-general@lists.postgresql.org; Thu, 11 May 2023 14:43:25 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 99DD33200488; Thu, 11 May 2023 10:43:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 11 May 2023 10:43:19 -0400 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:sender:subject:subject:to:to; s=fm2; t= 1683816199; x=1683902599; bh=Dgq7aavxw2fQx73IO19iyB+2j0FNnHxs12c N7q3gjhI=; b=WvaJIvSrMSBcHjb13IumnWCovpNxeXUI1TS85+0knQjMIQkwdlo IZ90heGF9PVmrqxSqsn4gpe/kUllGipHXjFUx43VvHJmGa3jkRvQV5LrLOa0Tw4N G33t3B9mACRly3nCNTYqIiRbIWQOL/pIp2lnAamnBwsb2wq+oqbbGc0thg1lkZ3o S4ZWKkJ5dDgUNgJ0GhKQ10AQuYLlOBB3CAsu5ukUMZHwbPuwP4Sbt/NtF4O64/Oi Lo5W8YsIqpOECesgM52VtQdvdPisYOTt2MlGnCkZWCnfnBLKrR+lXhjQmE6iO3p7 FHVtqQFlbt9dlX+NGqBAr923Gd/OSVvEqnw== 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:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1683816199; x= 1683902599; bh=Dgq7aavxw2fQx73IO19iyB+2j0FNnHxs12cN7q3gjhI=; b=I e0W86I7S502CA24sQUYCQlDaMMkPrpDN5GIDw+VHr0PYVY5HwzozPPX5ykwk0LWg PMQD16wWqSdhrtpw/XOctON8cx2FltlNWrus4qxwRySxqX1cNq3+mfzsN6dK09hn BzfVW9KhM5I1Q+QLwRznyvaBoenyGwMWb0regaOddEZL24y+H3jlq6LSANAm/peU RalkHwdMw7l48KK28LFIbnyyIkFWs2CMG2UQNRnKaYM57A/BtfN0QckQk9eV8JYj nGmKnNmqRew/dNfrGk7rD5EtbM0gCBAs/N1RadkKo7VIP6e+79KSNtJ2h+dKyEER QzTCkQvdeY0k8wtazkbVw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeegkedgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeduffevgeejvdeuiefhffettdevvefhfffgveeivedt heetleejgedtueeuffevleenucffohhmrghinhepmhhokhgruggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 11 May 2023 10:43:18 -0400 (EDT) Message-ID: <0f2ae006-12a0-41d4-d41e-4b2cf6f4e744@aklaver.com> Date: Thu, 11 May 2023 07:43:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: order by To: Marc Millas , "pgsql-general@lists.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: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/11/23 07:29, Marc Millas wrote: > Hi, > > I keep on investigating on the "death postgres" subject > but open a new thread as I don't know if it's related to my pb. > > I have 2 different clusters, on 2 different machines, one is prod, the > second test. > Same data volumes. How can they be sharing the same data 'volume'? Do you mean you are doing dump/restore between them? Postgres version for each cluster is? > > On prod if I do > select col_a, count(col_a) from table_a group by col_a order by col_a desc, > I get the numbers of NULL on top. > To get the number of NULL on top on the test db, I have to > select col_a, count(col_a) from table_a group by col_a order by col_a asc. > > so, it looks like there is something different within the b-tree > operator class of varchar (?!?) > between those 2 clusters. > > What can I check to to explain this difference as, to my understanding, > it's not a postgresql.conf parameter. > > thanks > > Marc MILLAS > Senior Architect > +33607850334 > www.mokadb.com > -- Adrian Klaver adrian.klaver@aklaver.com