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 1wVWcz-0021Qj-1x for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Jun 2026 15:38:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVWcy-00DAPk-12 for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Jun 2026 15:38:32 +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 1wVWcy-00DAPb-0D for pgsql-bugs@lists.postgresql.org; Fri, 05 Jun 2026 15:38:32 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wVWcv-00000001RXV-48Cm for pgsql-bugs@lists.postgresql.org; Fri, 05 Jun 2026 15:38:31 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-43cce8288c7so1123572fac.3 for ; Fri, 05 Jun 2026 08:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780673908; cv=none; d=google.com; s=arc-20240605; b=PL4z4ByndrnucNOamah/Ee7Kj4n/K1JeOvJ0Gyd1JiauhOI49euGTDprZTDK7pEMFe Ny2zp3KvHNzRpjcTVzfYYZnjRezJNY0slrJCyJY47I9BtV0SqTjP0nnBjujidNSw95oR U4CyN7Hl5GGex+3ekT8zvI9KXmlQjXlw2SyzO1LCSOIdKDhfx5/8Y8MYMRDHlLOT82zz 3cQB35sjZcjdJqLTcD1/N43macQZD+bHvtZBldqRus5G7q4T0z1ufwJ75adbAvoQYwWR DY9MyGKQD1cM76BolelHDIdUWFtKlsZx6O+LUinl/+ZXSuydH/0VNFuLMqHkpfcv/6n+ oMYw== 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=O/x0gEa/Zu4UnVfKhxZG7mtEnDTzW6py+bX1MlurrMo=; fh=9Vsn2ycFCptJKAh5w3BbNaSx6Bq/8nrEnyu8/+8L6x0=; b=ViPIVeU57TgLtyK5OUPGYvG0yYUTKO6q/i2CRSKNE3OyMBvUCj4hawNFlvv/sR5pFS QUjsE+xyQJ8pS33whzQK8W7Pq4p3+TXcTfD+gp/BFDsaKFeQYAIlzoZeRkhDxj8Yuau+ lIpf4FX+J42XknC9oJxBhVMaYCMCj6egJJnYSxdBRRvmhvQ0+/4FTPPZez2aIAtpnBSl +Q1RaH+AA8QCg8HdeR+rk9+0Csr6cj4RdjseoIgRyktTdR3vvEKmcseYkmyjYlcmoREc 3xQ+sQxZ9Op3v+iRcwyADAvWKvDoxabAqhvsEs8RZaHDHW5C+0lIiAWRwyfbDxd/SFHk dCmw==; 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=1780673908; x=1781278708; 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=O/x0gEa/Zu4UnVfKhxZG7mtEnDTzW6py+bX1MlurrMo=; b=Qd2JujHtP1oKuEhTYe2YyMpr+MokazBiWF5mmL3TVu7Ctvoj7yHrb58BsgMD0qMTOg G6TAxLKwkGRjpUeG+hTZYmznLKs57q52Wi6l25qaJHuGkJuxq6nnS0DTDltqueC5VvWJ tInzB8qGSqeXz/Rd4bQbUZ7Gg+dg9Gr/ZRty1LD3eCqqcwbnVo8KUTE8O8vv+AIqhZXE NNL0ILfAgVjjYTp+OhjE9Y3hq1NDUxY324aQCfEXHxMHxLLAN0QKDthHnJBOBxeRtFzy Ycpj8Pv52NXXz1PK2UPeY13RbUu0P8Kfi12+Hr3YA0sBvrMQh73VqbzFzk10owJ3Im2F luww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780673908; x=1781278708; 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=O/x0gEa/Zu4UnVfKhxZG7mtEnDTzW6py+bX1MlurrMo=; b=qQCuSs87pKv45dQEQx2eg7Smf73xe5WZcWFd581j5T8IONcgysvmpbu/9Tp4LBvR+6 WAuTZwPqomSeUKhmv0VKysIWBWR4IQKSXq2Y0mY5+sEXpma8TkWNl7q4rZiAHamLujM7 o/06C8sJGWpG8hDgky67ecqpYpH+RhUXxECvY7rSQoOPR4YL6fll8mGV1wTITyIMd0g5 FQFAAeKKXXNHxZ3EvCDROAN6RwUV0JwiC2Dbfr++XlvGllWnDCgczorRQUHhPu6N0Ioe oDc0qQba+/Q6kOvipTEzu9LOvqX5o2IKefp0wToMQTHn6qxT1yOqtxoNftK3SZHR2Wkk xUfg== X-Forwarded-Encrypted: i=1; AFNElJ/4dZAldltEHIQ1JLRLlG3NZzNZ6K1V2M+wAO2hWc4+Mb+gWsSDguUvXWvIP4z1CW1AiwNpnHYqhcnT@lists.postgresql.org X-Gm-Message-State: AOJu0YyJ/sotomcvu8ufFc/DS4OHXi9d1zBVRWHNDRkbn9qxrZMH1N8+ Vz8sFO5s4uoqgC9DX5Ne7DcjOjA0PEXfJxok9ihJVYprHPM5UcfGLW2p/KLrqWv3DIfh3OjXJCw WGxvN4m8JlgDdNhDF8TV7dMG2NCQmDmE= X-Gm-Gg: Acq92OE9eY6FQXjdKMfxrsvhxQvX7yGmzhPOa9K+PXRdmQI+hzha6sxMQ5Ib1WNGxQO M6wCC6cFPiXA7l9DJ2jTQJY9AREvPbgtIxaXj52yM+VwjDU8s+Vwk1QsQ8uoMbQl3sKH6nr/ZfX nJlAPX2HjrsxVXL/LklOvzGxlQggwJwWGm7pJHsfF/OB5KcypjRBIr6b+C18ap7zRoqNZMD3uET yamvbPafvG9P5ZTb+bQ8Ld9AAe8+QvDeA9tuiqnnNynd93Wr7Kc5WQT+rcwIzkhKzQohYxVrg6l U0PlJhjjLxeQT0tZJAuxnQKZk1jW4FhPU6LCVS0wyw9QSIyAglU7 X-Received: by 2002:a05:6820:1516:b0:69e:41bf:fdcd with SMTP id 006d021491bc7-69e68c0667bmr2336041eaf.38.1780673907651; Fri, 05 Jun 2026 08:38:27 -0700 (PDT) MIME-Version: 1.0 References: <19508-e5f188183279219b@postgresql.org> In-Reply-To: From: Fujii Masao Date: Sat, 6 Jun 2026 00:38:15 +0900 X-Gm-Features: AVVi8CfpnkDtwFFo-kdCvBCE3w-1c4dy__t3gFo5xbKLGgBWHAjaC_w3K1zLU4Y Message-ID: Subject: Re: BUG #19508: pg_buffercache_pages() crashes the backend with an incompatible caller-supplied record definition To: Ashutosh Sharma 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 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_buffercach= e version. I'm not sure that's worthwhile just for this change. Regards, --=20 Fujii Masao