Re: BUG #19382: Server crash at __nss_database_lookup

From: Kirill Reshke <reshkekirill(at)gmail(dot)com>
To: dllggyx(at)outlook(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19382: Server crash at __nss_database_lookup
Date: 2026-01-20 09:47:17
Message-ID: CALdSSPi37EqQUjFvMPKHQiGcp6d+NptPcCYoCm7FhgSzbE6qbw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> In fact, this fails as fast as 'SELECT bar()' for me. Also, it fails
> for REL_14_STABLE, REL_16_STABLE, so, problem is for all supported
> versions

Below fails in same way:

"
CREATE TABLE foo (a INT, b INT);
CREATE FUNCTION bar() RETURNS RECORD AS $$
DECLARE
r foo := ROW(1, 1);
BEGIN
ALTER table foo alter column b type text;
RETURN r;
END;
$$ LANGUAGE plpgsql;
SELECT bar();
"

My current idea is that we should somehow reject the ALTER type if it
is used to declare part of a function. Maybe exec_assign_expr should
report all types that are used to evaluate expressions in the declare
part?

--
Best regards,
Kirill Reshke

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Rahila Syed 2026-01-20 11:15:31 Re: BUG #19384: Server crash at textout
Previous Message Kirill Reshke 2026-01-20 09:25:00 Re: BUG #19382: Server crash at __nss_database_lookup