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 1wDd92-003Ba6-0h for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Apr 2026 06:57:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wDd91-008aLS-19 for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Apr 2026 06:57:39 +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 1wDd90-008aLJ-34 for pgsql-bugs@lists.postgresql.org; Fri, 17 Apr 2026 06:57:39 +0000 Received: from forwardcorp1d.mail.yandex.net ([2a02:6b8:c41:1300:1:45:d181:df01]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wDd8x-00000001QyE-1tHd for pgsql-bugs@lists.postgresql.org; Fri, 17 Apr 2026 06:57:38 +0000 Received: from mail-nwsmtp-smtp-corp-main-68.klg.yp-c.yandex.net (mail-nwsmtp-smtp-corp-main-68.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:94a9:0:640:a3fa:0]) by forwardcorp1d.mail.yandex.net (Yandex) with ESMTPS id 837108075D; Fri, 17 Apr 2026 09:57:27 +0300 (MSK) Received: from smtpclient.apple (unknown [2a02:6bf:8080:795::1:14]) by mail-nwsmtp-smtp-corp-main-68.klg.yp-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id QvHIDq0MviE0-sIMywGIv; Fri, 17 Apr 2026 09:57:26 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1776409047; bh=itBolHXtJ1jv50HZZgc3vb1BWvH4yA/0NqvBjtoMy10=; h=Message-Id:To:Date:References:Cc:In-Reply-To:From:Subject; b=yPae+cToQK+aZhf+J3A2hzb3n4kwyRH+BMNedTg77n04E5XmF05Y37gvH/4kTkKjA XSv/maBe7cpCx2LoYv6Cti0zWIEt79jBE+sCVJ1RdlNepg/u5kufaHt2o7NLyhTNPr 4TMpTSktlRZYW6NfZlDgZEm20XgPtdin5CdBk6TE= Authentication-Results: mail-nwsmtp-smtp-corp-main-68.klg.yp-c.yandex.net; dkim=pass header.i=@yandex-team.ru Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.500.181\)) Subject: Re: BUG #19382: Server crash at __nss_database_lookup From: Andrey Borodin In-Reply-To: Date: Fri, 17 Apr 2026 11:57:15 +0500 Cc: songjinzhou , dllggyx , pgsql-bugs Content-Transfer-Encoding: quoted-printable Message-Id: <674982B4-2824-433D-AFC4-CCBF410D9424@yandex-team.ru> References: <19382-4c2060ffee72759b@postgresql.org> To: surya poondla X-Mailer: Apple Mail (2.3864.500.181) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 17 Apr 2026, at 04:20, surya poondla = wrote: >=20 > I also added a fast-path optimization in = snapshot_record_composite_types() to avoid repeated type tree walks when = a record is assigned in a loop =E2=80=94 it skips the snapshot if the = outermost type's tupDesc_identifier hasn't changed since the last = snapshot. Cool, but ISTM that it won=E2=80=99t work for domains. if (rec->nCompTypes > 0 && rec->compTypeOids[0] =3D=3D rec->rectypeid) compTypeOids is composite, rectypeid is domain oid. Can we make this work for domains too? > Added both new test cases (Cases 5 and 6) to the regression. All 248 = core regression tests and all 13 PL/pgSQL tests pass. I hope it=E2=80=99s the last: -- Case 7: composite variable used in RAISE NOTICE (exec_eval_datum = path). create type bug19382_foo5 as (a int, b int); create function bug19382_test_eval_datum() returns void as $$ declare r bug19382_foo5; begin r.b :=3D power(2, 30)::int4; alter type bug19382_foo5 alter attribute b type text; raise notice 'r =3D %', r; -- exec_eval_datum called here, no check end; $$ language plpgsql; select bug19382_test_eval_datum(); drop function bug19382_test_eval_datum(); drop type bug19382_foo5 cascade; Best regards, Andrey Borodin.=