bugs.core_5776_test. "Input parameter mismatch" error after altering external function into PSQL function

Show cross-report outcomes.
Full history of outcomes and elapsed time, ms:
NN SNAP_INFO CS_outcome SS_outcome CS_run_time SS_run_time CS_run_beg CS_run_end SS_run_beg SS_run_end
1 4.0.6.3189 2025.02.25 1a1a5 P P 655 454 2025.06.26 14:28:05.324 2025.06.26 14:28:05.979 2025.06.26 13:21:15.778 2025.06.26 13:21:16.232
2 4.0.6.3184 2025.02.24 9388c P P 582 426 2025.02.25 13:25:09.722 2025.02.25 13:25:10.304 2025.02.25 12:09:05.996 2025.02.25 12:09:06.422
3 4.0.6.3183 2025.02.16 cf6ca P P 519 429 2025.02.17 07:18:54.171 2025.02.17 07:18:54.690 2025.02.17 06:02:26.309 2025.02.17 06:02:26.738
4 4.0.6.3169 2024.12.13 42cc1 P P 504 402 2025.02.16 04:16:52.832 2025.02.16 04:16:53.336 2025.02.16 03:02:22.895 2025.02.16 03:02:23.297
5 4.0.6.3169 2024.12.08 50eb6 P P 430 288 2024.12.12 18:39:13.905 2024.12.12 18:39:14.335 2024.12.12 17:39:40.091 2024.12.12 17:39:40.379
6 4.0.6.3168 2024.11.28 48149 P P 418 308 2024.12.06 03:00:53.515 2024.12.06 03:00:53.933 2024.12.06 02:02:45.167 2024.12.06 02:02:45.475
7 4.0.6.3163 2024.10.16 2bb10 P P 446 268 2024.11.27 11:24:43.193 2024.11.27 11:24:43.639 2024.11.27 10:25:50.519 2024.11.27 10:25:50.787
8 4.0.6.3163 2024.10.15 f387e P P 407 305 2024.10.16 04:31:19.912 2024.10.16 04:31:20.319 2024.10.16 03:35:54.324 2024.10.16 03:35:54.629
9 4.0.6.3147 2024.08.31 4655b P P 438 293 2024.09.30 11:45:25.918 2024.09.30 11:45:26.356 2024.09.30 10:43:48.676 2024.09.30 10:43:48.969
10 4.0.6.3140 2024.08.16 1dd8b P P 844 630 2024.08.31 17:59:28.192 2024.08.31 17:59:29.036 2024.08.31 16:09:01.197 2024.08.31 16:09:01.827
11 4.0.6.3140 2024.08.09 34747 P P 570 386 2024.08.16 10:49:00.930 2024.08.16 10:49:01.500 2024.08.16 09:41:47.173 2024.08.16 09:41:47.559
12 4.0.5.3110 2024.07.30 c6527 P P 613 442 2024.08.09 10:40:20.864 2024.08.09 10:40:21.477 2024.08.09 09:33:14.783 2024.08.09 09:33:15.225
13 4.0.5.3109 2024.06.11 6addf P P 388 246 2024.07.30 08:59:56.114 2024.07.30 08:59:56.502 2024.07.30 08:01:18.510 2024.07.30 08:01:18.756
14 4.0.5.3097 2024.05.09 27fa6 P P 542 362 2024.05.14 09:46:01.935 2024.05.14 09:46:02.477 2024.05.14 08:46:30.796 2024.05.14 08:46:31.158
15 4.0.5.3091 2024.04.29 bd0aa P P 311 179 2024.05.08 20:49:23.840 2024.05.08 20:49:24.151 2024.05.08 19:58:08.969 2024.05.08 19:58:09.148
16 4.0.5.3089 2024.04.25 4b9c7 P P 312 190 2024.04.27 15:33:34.941 2024.04.27 15:33:35.253 2024.04.27 14:41:50.001 2024.04.27 14:41:50.191

Elapsed time, ms. Chart for last 16 runs:

Last commits information (all timestamps in UTC):