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 1wWoF6-002rvn-0t for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Jun 2026 04:39:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wWoF4-004u9E-0z for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Jun 2026 04:39:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wWoF4-004u95-09 for pgsql-bugs@lists.postgresql.org; Tue, 09 Jun 2026 04:39:10 +0000 Received: from mail-dl1-x1229.google.com ([2607:f8b0:4864:20::1229]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wWoF2-00000001nDw-0er9 for pgsql-bugs@lists.postgresql.org; Tue, 09 Jun 2026 04:39:08 +0000 Received: by mail-dl1-x1229.google.com with SMTP id a92af1059eb24-135e7f4a295so2932156c88.0 for ; Mon, 08 Jun 2026 21:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780979947; cv=none; d=google.com; s=arc-20240605; b=J4dTDsWvjISm83k1FCQLKwYb1S4p/zy1uZtwwUFNKIZ80/WZjHODkC9nBwIuMh9ue5 wxjmHn+98gzqpPFBrbLeVMKcGE7uvGNMSlUV+OUSGFceMUxjvgKheGRSgB8tTYKs4RMg eLeJPCfSEuC2cht7YDnK+BCJnFJQTeFB8tHf+PHPaUDgHphmI9VmCgqpDtpn9y9ijLMS PFO7bqxo6rJtWtXOyaSKBljMLALBoYEJcXtfWTf4hatBCZSwV164DhCVRKmTfpaKKY+8 iC5fI8DbTYJokE5cRESSmBAPQjqPxYrEWE+9H0DY/t3NnYaGETTo6gWRfT/S62nXXvci BhwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HYt/6wmDkqJBywecoOnIXM+kyfZihn0etGKBSTh0JSQ=; fh=gvgBCOnjfgpxWzzOjL9kKgPIN68hdNr010fPKPSYBEc=; b=Rux9eHs3SRzi3kq7mN1Gk4ag9Mi60xa2Zz9gG9CAH6kq7zZ57kPNf+jGQ0vbuhRW3L OkPSzLUjeOpNQmKfMGVhCCmlxS4qAnMDo/Zd6de0N53sztwkrHaBJj9Jf5JzsXpIIHe0 dEKdRuO0xblEp2w4Fsu4YehM+xPXVQoChVmdZWfj3sy55WFB/c6R8Btq+IE9PtdM0O71 LsYCquA5N5fi89PQDkWiiXJTQ75Bsm/oDnerEoUIC98xGS8i9casYA9irQsgOru/5wV7 g/G5jq8eQalyzzQqAuNGoLpZeNe8uxHLHQcnld6ZNCMEPcSC0K/iNEhzBJwOJlmnsPwy LAlw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780979947; x=1781584747; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HYt/6wmDkqJBywecoOnIXM+kyfZihn0etGKBSTh0JSQ=; b=Oolrp83SPViSVetbjXGPVDkVfM/KWBWnzaF0U7WByOp6Jex1KrhXxocfwOLeToWhoZ +k5jS6NHYFIL4ec4ytRJhTUGb9PoKXpBnCbhUOXHC64x14OgPWvfTwtNTTgzzNAmNxhN k07rZOhKv7rFr2lReh+pcY5cud6OLVjOkV7xpy8lGNPb1yI9lvpEN7tJmjtA/fAgNICl N/36lh7aw7WjQbOIQgQhtVH+qwi7Efr9ZnN0Lxbr8RyRgQuoz7PuvJNWOW3uwBz+K5Tl uObkIcqlWnlZOuQ87j60c7QukV9ari7w3niYjBwRsXVTiRxwSQzBPGZgUjYgsoR6mf4N N+7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780979947; x=1781584747; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HYt/6wmDkqJBywecoOnIXM+kyfZihn0etGKBSTh0JSQ=; b=pzzLD0V3ryLx+pzRdWmiCmyaO4LtQNjCtI/VEV3krOsMw+Kj6ZOmVy0V0ffYunXOMs COSiGAVKB5104EFYbJ1GgVjfvuASBxJ78j74xTNPuilAOPTHZ8OpTSlMosfZcNLFy+YN 2p91KzediyKrNOykW+bA5sMaaqvY2FSBXyJijmiTxZag7jUEiemxRfvinM6JOiuXn/xw yn60qfp2dt1C88g2M9g0NbNgGEbctGf4FWljea3tGn9qT1nq3x1QnN6qya704ZRar5Be n3adiGM4tgi349mmFwxW2T/tRS4vq8apPuM2hyJWDwth6eDOLFxesON+6CaISitCXaCu QX+w== X-Forwarded-Encrypted: i=1; AFNElJ8VNCmbcz5Md//FmJsoUZZyV4vp9K9uJrljcw/CpfPtfxUrukVu4TR6dsKuzq6RGaEKcBNOv9t/aG1w@lists.postgresql.org X-Gm-Message-State: AOJu0YwZRxEAqFjbWLM2gz9N/mx4LyEbIk0umAJEBaSoROapaOnZ1+aD pZhaN4p8Yht16teNFqsgsvv4yLWpTLVd89rYhsuSANNmcK+ZjB1uF+s7OMXsTxW78W/S6tzmHcl I4qC5oHyjgwsr2RKfzHXv7V+bb27S3C0= X-Gm-Gg: Acq92OF8hT2gdInMl+EeDPau2j44wX/g/k0jEumiOtiiVQhT2F3+/lAxxRxcQaDVf9y 4YX8ouDOk6C43T+FglSeeP74p3nFHifZ9CBBkKP2M4QxdlLq8h2LdxIYKzsjMqVNk7WKsCfSd18 sqdyvqKLQTyECuMbHU9iWtohlDmzXit7VP2KB23zTXd9oOuDRBT52JU1IW6C64sIStQNIZ2rzoY IXp1B2LJQbzdLHTbRnpom6cy2Cfefa74RHKwTecNeKMKT/5EQoOzFFjgfjcekazJYHgmSK3FjMs O8HPPWogTwh2AZpyIWM4 X-Received: by 2002:a05:7022:983:b0:137:fa50:a225 with SMTP id a92af1059eb24-13807d5fba7mr7236753c88.12.1780979946905; Mon, 08 Jun 2026 21:39:06 -0700 (PDT) MIME-Version: 1.0 References: <19508-e5f188183279219b@postgresql.org> In-Reply-To: From: Ashutosh Sharma Date: Tue, 9 Jun 2026 10:08:58 +0530 X-Gm-Features: AVVi8Cf-GnU0UCjEXyuSLW-U0M9_adJQXUaKXOLwll_9CxTulDuD2cI2dPKhJOs Message-ID: Subject: Re: BUG #19508: pg_buffercache_pages() crashes the backend with an incompatible caller-supplied record definition To: Fujii Masao Cc: n.kalinin@postgrespro.ru, pgsql-bugs@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jun 5, 2026 at 9:08=E2=80=AFPM Fujii Masao = wrote: > > On Sat, Jun 6, 2026 at 12:29=E2=80=AFAM Ashutosh Sharma wrote: > > pg_buffercache_pages uses RETURNS SETOF RECORD whereas other > > extensions like pgstattuple define explicit IN/OUT parameters at the > > SQL level. Is there a specific reason this pattern was kept, or is it > > simply a legacy design that hasn't been modernized? Had we followed > > the IN/OUT parameter style, this sort of issue could have been > > avoided, no? > > Probably yes. But if we do that, we would likely need to bump pg_bufferca= che > version. I'm not sure that's worthwhile just for this change. > Okay, that makes perfect sense, thanks for the confirmation. -- With Regards, Ashutosh Sharma.