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 1p5ObZ-0002dw-UR for pgsql-bugs@arkaria.postgresql.org; Wed, 14 Dec 2022 10:03:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p5ObY-0004Ge-PH for pgsql-bugs@arkaria.postgresql.org; Wed, 14 Dec 2022 10:03:12 +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 1p5ObY-0004GV-FX for pgsql-bugs@lists.postgresql.org; Wed, 14 Dec 2022 10:03:12 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p5ObV-0007bE-W0 for pgsql-bugs@lists.postgresql.org; Wed, 14 Dec 2022 10:03:12 +0000 Received: by mail-wr1-x433.google.com with SMTP id h12so18691016wrv.10 for ; Wed, 14 Dec 2022 02:03:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XlKO1LNrC14EsmSVNdR5I0mK4zEmYZUk1dnchDkhn+g=; b=JSt6JSaREOEFVvBaSY4WXEfDcqltgFgEwPjGfUxPXUF1dkgUiBlOKCKTlCSoBWsOSY ocHOCTkeQ42eUPOlKIIaD6535rZBbN8J/hCQ7o23ItGYhktLjkZIfaNPAaekuRCO6Ib0 GMQ/5Rwk3713E+zZON4OIyLatRPCLDYlU3uNsO0HREPmJYKz2Ax9zQtKRzwq0McWVbX2 LbKHwOT82ytaB9mq3bfCSh6YqMAyeS/T/Gb15J+cZlfm/tc/wxkh0h7iTO76ShYlOPQM 0wWV8ty4yufEMCVaqcKbQkzVvuDBUXz0ygAGijuZZpten7kbH0ApUQBaFltvQULQFLvg cL6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XlKO1LNrC14EsmSVNdR5I0mK4zEmYZUk1dnchDkhn+g=; b=yzVsVPIzBx/oH4PyLSYBTL+OF2+75KDLgeOBKFzGX4fLL+CVLew27FTnxqqphNzdie MYzOXtgNT/TIME51hZFjQKSKlnEcJicr//aK8AIleDU6yVAKuNYqNGC4ItX//YnvwnOQ LME3b196LtilL6aNtbG37CFTR0gk04xoomPc1odZaAl2OpdDeXVAccXsEMy9bmCCs/A1 DSscebUMqgOzKsguBfYCVoqswOAc09BSTeHNeXioTAYIPBlOW6OdEbrowCIlVkyaI7ag iXuyaUsPlIQxAAeTLgXxFRfCU73VlKjfzW4yaf5oldAiCOo/JlCc5H6m7wrOkMpqAHfd cT1A== X-Gm-Message-State: ANoB5plXUi441M8Y9uFI3qbgnYYUiDiKGHyN9/5jkghkYax0rjbR3CVc Q5pwOHlALxhvcoiAnd/5Gh/5UsU9gOzI0FNoxPkAZJmzis0= X-Google-Smtp-Source: AA0mqf7FeOBJry0pG/Oj+zTsNGPQm0QPXseM8a/udRveEwFyk46uWM2vPFiYE60tOJNbQOvRNcjNG6SeBfHAVTFlaIw= X-Received: by 2002:a5d:4c48:0:b0:242:639f:5952 with SMTP id n8-20020a5d4c48000000b00242639f5952mr12268169wrt.358.1671012188657; Wed, 14 Dec 2022 02:03:08 -0800 (PST) MIME-Version: 1.0 References: <17713-92cce66de7e81c04@postgresql.org> In-Reply-To: From: Etsuro Fujita Date: Wed, 14 Dec 2022 19:02:58 +0900 Message-ID: Subject: Re: BUG #17713: Assert with postgres_fdw in v12 To: Richard Guo Cc: tharakan@gmail.com, pgsql-bugs@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Richard, On Tue, Dec 13, 2022 at 12:20 PM Richard Guo wrote: > On Mon, Dec 12, 2022 at 7:10 PM PG Bug reporting form wrote: >> This is a repro that triggers an assert (only) in REL_12_STABLE. In >> particular the issue seems to have begun after this commit - >> 08d2d58a2a1c8ef8d39e8132d39ee14a1d029500. The foreign table >> is empty so am unsure if Assert()'s expectations are valid. >> >> Since all versions v13+ seem to work okay, it is possible that a future >> bug-fix was not backpatched far enough to v12. > > Yes, I think it is 5e7fa189e, which should be back-patched to v12. That was also pointed out by Robins: https://www.postgresql.org/message-id/CAEP4nAza%2B0fTCLkgkKYux3JDo3tUBTQORehP%2BaCxSNURpSFpHw%40mail.gmail.com Will back-patch to v12 as well. Thanks for looking at this! Best regards, Etsuro Fujita