From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | myzhen <zhenmingyang(at)yeah(dot)net> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: coredump of language internal function |
Date: | 2025-09-22 05:05:39 |
Message-ID: | 2811276.1758517539@sss.pgh.pa.us |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
myzhen <zhenmingyang(at)yeah(dot)net> writes:
> When creating a function using language internal, if the parameters or function attributes of the alias function are different from those of the internal function, they are not checked during creation and may cause a cordump when called.
We have always considered that this is programmer error.
> I didn't find this mentioned in the manual, so I'm not sure if this is a problem, but it seems like it might be better to do a check when creating the function.
If you have an idea about how such a check could be done, it would
be worth discussing that. But it seems pretty unlikely to me that
there is any portable way to identify externally what data types
a compiled function is expecting to receive.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Ellmann | 2025-09-22 08:07:29 | Re: regexp_replace not respecting greediness |
Previous Message | myzhen | 2025-09-22 04:56:10 | coredump of language internal function |