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 1q9Oyd-00018o-6C for pgsql-general@arkaria.postgresql.org; Wed, 14 Jun 2023 11:47:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q9Oyb-0007y4-Kb for pgsql-general@arkaria.postgresql.org; Wed, 14 Jun 2023 11:47:49 +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 1q9Oyb-0007xv-AA for pgsql-general@lists.postgresql.org; Wed, 14 Jun 2023 11:47:49 +0000 Received: from mail-yb1-xb2c.google.com ([2607:f8b0:4864:20::b2c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q9OyY-002K5Q-T4 for pgsql-general@lists.postgresql.org; Wed, 14 Jun 2023 11:47:48 +0000 Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-bc379e4c1cbso584316276.2 for ; Wed, 14 Jun 2023 04:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686743265; x=1689335265; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=fEg19P4F0MTNjcEby5SKzcBSfusfm6sT/rrVAUs9Z6g=; b=r7VtsXkJiGqETARmiT7MBqDwppNZ2oQV+a151iyGsAOELoVw2mzOGH9p0KlHt6KH66 oGKx/sG0BODe0WYqEvn1e3Jg5eOB733AAbSWAi5QG34Am7/ySy+pKEfsbqKw/YBRU362 ckqgjhKMSyIdZC1XypMtx/gBv3PbQ/w7x9a9jxllrU+qASlRFHXC41zGh4kHa65qPFDY qGe7AYRFeHhZFtkMoCvnmcwnuwPoAksX3PUY0wwYPRZCT7pExM2qGQLeGBX6UeK8esi5 94HorE/C0onV/ijfkrv/TcNO1n1jOCUjeKBzg8aprsarbQG9+cmDSkkr5wMYS2ZCj/8a 1tpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686743265; x=1689335265; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=fEg19P4F0MTNjcEby5SKzcBSfusfm6sT/rrVAUs9Z6g=; b=f9i9TG9eA23jKyeT8wuCpLNIb2d7Z7lrk9U01QRCUD98HQhn3bHTJmLnL9CYS36ANw wFiUNvpnhKGRQRVapC9ZxHkzHYIUtI6V5fLpMQgNmh5IwIIuDU2pAr8OyINUyMBMIr3h XlZVSsISiaPCAoIL6WtbM14SFtdI1K4Tf1Z8bUBCyqBW+OS0nd/HwXqvGk1OLXUMpDpT dQzogF/eUVVxH23qALnuPVMMO+Mo78f9YhayCc0hCoj6c/b78g8ZEaK91gOgoRPZHI/E T3ae9AUpXdoQBt5+P/ux/hJ95yKiG2RXx8UvC+FmifKlRe1uvg3nIHirw3uvg0nGB/H5 EvdQ== X-Gm-Message-State: AC+VfDyzw6v1riEsgEFtKUAbZHpBBrEU988bx/d9CjJyQE+kGduMzxZ3 av3IIlQC+XsVJQ1nT/bB2exACFcwW18= X-Google-Smtp-Source: ACHHUZ4+O9UXdk/9H4l6jkTaqnOQJyKnQOowpyEHky7eGmZxeB/BQboiwhHGh6FI5JDpd9KlGsmaww== X-Received: by 2002:a25:2841:0:b0:bd1:5fa4:daa5 with SMTP id o62-20020a252841000000b00bd15fa4daa5mr2119049ybo.46.1686743265341; Wed, 14 Jun 2023 04:47:45 -0700 (PDT) Received: from ?IPV6:2600:1700:bd2c:b810:c117:fb09:3ceb:f601? ([2600:1700:bd2c:b810:c117:fb09:3ceb:f601]) by smtp.googlemail.com with ESMTPSA id d65-20020a25cd44000000b00bcc9793c3e6sm1369890ybf.65.2023.06.14.04.47.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jun 2023 04:47:44 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------L3iFhj0B93vEsncCncxy9BMZ" Message-ID: <6770a936-d90b-e68c-b338-43d81230940f@gmail.com> Date: Wed, 14 Jun 2023 06:47:44 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: Reproducing incorrect order with order by in a subquery Content-Language: en-US To: pgsql-general@lists.postgresql.org References: <1635592.1686668813@sss.pgh.pa.us> From: Ron In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------L3iFhj0B93vEsncCncxy9BMZ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/14/23 05:03, Ruslan Zakirov wrote: [snip] > Anyway, yesterday I tried my simplified case on Pg latest, Pg 11 and on > mysql latest. Had no luck. Either my test case is too simple or I can not > find the correct distribution of data between two tables. This is when you need a prod copy... -- Born in Arizona, moved to Babylonia. --------------L3iFhj0B93vEsncCncxy9BMZ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/14/23 05:03, Ruslan Zakirov wrote:
[snip]
Anyway, yesterday I tried my simplified case on Pg latest, Pg 11 and on mysql latest. Had no luck. Either my test case is too simple or I can not find the correct distribution of data between two tables.

This is when you need a prod copy...

--
Born in Arizona, moved to Babylonia.
--------------L3iFhj0B93vEsncCncxy9BMZ--