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 1wgrcY-006Sj8-39 for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2026 22:16:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wgrcX-003MQz-2p for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2026 22:16:57 +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 1wgrcX-003MQr-1z for pgsql-bugs@lists.postgresql.org; Mon, 06 Jul 2026 22:16:57 +0000 Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wgrcV-00000001uly-406W for pgsql-bugs@lists.postgresql.org; Mon, 06 Jul 2026 22:16:56 +0000 Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-80e24970f1dso30094477b3.0 for ; Mon, 06 Jul 2026 15:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783376215; cv=none; d=google.com; s=arc-20260327; b=QwJqIBiNBz08Eps5jmPdMWAA3g0f1SjumSSRwwpe3b0mTQzxU6yeBAgucKeY7kXDEe /rXu4tzHYruU74FiWZqo2UKF8/iv3Va76xEzUa/izBpEaOITO3zwqU8O000g0PWFgxeL QvrMbdlvBZ3naCRVcrtCtIdxOCcH+vB3RPvhi+e8AnjL7ttBWTlKK6/QLEeNAQU8KvqA kjQZhU3HxRzs+afVh2qkW0Zbxhpm7rzGuvAEXhV4euoNIFpXlXR5LPb6PeaJVBMaklpN hB3+Fx5J2nSuqSOJUCkY5OcrOBFHiOGfJVyZxXJBzxV9hFUIoK/11PUkKbEAd/BwCeFV Ccng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :dkim-signature; bh=nvDrXGsJuwKRq1SgrM3aoxtgimSIyi15BnhddrphLqo=; fh=/gQe77b11iMZdcPj/nJr/Ghqi6rQp5FPrPbdO93bmOA=; b=rBDfieBWjgiMb03sNKQwmKQBgph3hPIb7HSUwGMUKgCHCvLmkjqBmOtH25qiNl5Q02 cE/kwPQgpcG8XdY5JkURByHoyBC5+3cBjQ5HBRSVG4L5feEXyV8+r1xUjjilGwbxySuR 80GfbrCtKW7HtARyU4rGr7z8aItZBW4TvUcR4FQW6Sxt4Rg32Mrn7/feilWT3yYVTlKw SpxBxw0GXDBmuUhQVqEr4Cvj3QJydDGk9U5p2sQsftaDSXMjPi22vEdA7wpLgvKuaiiJ 68Ek5VpC8/MDU3ksWxngQQzH4H3sOfupW2dnxJwN/LlubH4taLnc8jIRP8D43dvu9ltb TrgQ==; 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=percona.com; s=google; t=1783376215; x=1783981015; darn=lists.postgresql.org; h=content-type:to:subject:message-id:date:mime-version:references :in-reply-to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=nvDrXGsJuwKRq1SgrM3aoxtgimSIyi15BnhddrphLqo=; b=cHL8iHGIWzqRPL0NkaW2VFMjf/LfY9fn1U8Y/ZvoukmdeDC9/VgicL84P75R4kAznb Brp3/hIGGxfRTFuODXDA0hTQcNmuWkjb0bmaXdd6tbl9oU+ZqD3qSezKIFag798tVp/q X3rdNWONZ6glLHtKXEfW2q7QPzWHbejXdrAorDiAM6bOiR7OfHsmrb53C+FRpWX0fwJ5 Mg/CJv4ovY2VVMhk5aHaZ46ygeigSm0t/6PjkQ/eErzBXq+OXENRBsox5Cw/pGXAjqyl 02c04eL1I4mc9YToSKnGG79WHWu/M6DIVcf1hn6Xw/4qGIA4t7RTlovtvCUlJZvmNo8z e8qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783376215; x=1783981015; h=content-type:to:subject:message-id:date:mime-version:references :in-reply-to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nvDrXGsJuwKRq1SgrM3aoxtgimSIyi15BnhddrphLqo=; b=qoxv1p/8fIyyuNLmCJozZPI1eZKbBbsl3GdtqhxAqoEgoaL5XmAZO4zYOeuF6/9Ow2 2goKs/zyv/HJqnPltUS+e8lj7BygvtygD6Yw1DRdB0XB2qlTSjUyRYnb3Sta2HBCPCmA pUzDxXmF+M1ZK5XS0Zm77TGtUMy2YBHISZX0XsIcnlwlG1O3Kd5Vue3a7KvVe/WxQZGj qXEZYUbtXRvRGtEOP1sqjaGVWUZyvGHZDdtWxuaO8JXLiABLd7MoPzA6UZlkDmLFbS4d +3aFMjMdK1CQSVXXscllBgQYxepHO+7WAvn4Du1gCmlUatyBlJuKrDOx+qUOx83Pikfw mhXQ== X-Gm-Message-State: AOJu0YwMdk6fVBZPamuDZDs+nnInTiTeykj5fwuqiH+DVT7QY7w0atnS x9yo+I4QxODqILfyc7IRoRTcTDo3yqXF+J0cAGwxd1C6j9k1n47w+VKMuGlGvpaQdykih2PeP+C O7tNdrphewiuIEV07lecILfLBiMg+jQodVg27oPX7Ml0HOcEOqn/7fm8vFRDttR7zFO7TJ6CDvt yzgtdneCKgIXdzPOoe3IaKBbnUHHtyrnL5ClrJI/sEflrvLKs2juiYAmg8nVAuEa3ce93Eh1jmt 9T9t8K4k8PJk53FOPdVgU3TUq1J7FfrLOhSsjbu0r79csFXdDDT9Fo34JhXxQrJBxaZVw== X-Gm-Gg: AfdE7cl/Myqd5vTXMiAbjXdYAy47DdBtF3H1g583jBbiVjcmD1l0Jxgd07PGeYP3hde umfh4ExaonlRyaSGxF3DkYjpVR0ru3mcBWrwUHsbPU8AtQrgxphipKTZUpEH8mrCkEfDdTFSMbI PQb66oHB14eiq5bV1DXx5GnibVSI1PLkSpJCKK5EqKEDB8OagmYIHstCMr0d5/JUzyCK+iJ/Oml hXpYnN4bJTV8v/wl0apl0kVqCNieXPRQTvdPm6bxaRlGcO7ltay6L0vWmY1eHfefbwPsyiIoiKN p+lm0ASrRPooIj5j7Qpj9UR3S3TMiTazO71Qt5MUuxLIpAuZJakmGtfz1g== X-Received: by 2002:a05:690c:15:b0:80c:85e5:8744 with SMTP id 00721157ae682-81be37aeb46mr19873397b3.66.1783376215025; Mon, 06 Jul 2026 15:16:55 -0700 (PDT) Received: from 298783833264 named unknown by gmailapi.google.com with HTTPREST; Mon, 6 Jul 2026 15:16:53 -0700 Received: from 298783833264 named unknown by gmailapi.google.com with HTTPREST; Mon, 6 Jul 2026 15:16:53 -0700 From: Zsolt Parragi In-Reply-To: References: <19382-4c2060ffee72759b@postgresql.org> <674982B4-2824-433D-AFC4-CCBF410D9424@yandex-team.ru> MIME-Version: 1.0 Date: Mon, 6 Jul 2026 15:16:53 -0700 X-Gm-Features: AVVi8CcdGogr5os2Gk3h_M2FGgj4mKOOYnx03_pUwnbKLhwyd-jVlW2Tfv92s4Y Message-ID: Subject: Re: BUG #19382: Server crash at __nss_database_lookup To: pgsql-bugs@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" X-CLOUD-SEC-AV-Sent: true X-CLOUD-SEC-AV-Info: percona,google_mail,monitor X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello! The following still reproduces the crash with the patch: create type foo as (a int, b int); create function bar_rec() returns record as $$ declare r record; begin r := row(123, power(2,30)::int4)::foo; alter type foo alter attribute b type text; return r; end $$ language plpgsql; select bar_rec(); And also, shouldn't the following still work? create type inn2 as (x int, y int); create type out2 as (a int, b inn2); create function fp_test() returns out2 as $$ declare r out2; begin r := row(1, row(10, 20)::inn2)::out2; alter type inn2 alter attribute y type text; r := row(1, row(10, 'hello')::inn2)::out2; return r; end $$ language plpgsql; select fp_test(); -- ERROR: cannot return record variable "r" after composite type "inn2" was altered but it only uses out2.