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 3.0.13.33809 2025.05.06 28ad0 P P 869 419 2025.06.30 14:58:39.469 2025.06.30 14:58:40.338 2025.06.30 14:05:10.070 2025.06.30 14:05:10.489
2 3.0.13.33808 2025.04.25 28426 P P 1108 489 2025.05.06 13:59:54.698 2025.05.06 13:59:55.806 2025.05.06 12:56:55.521 2025.05.06 12:56:56.010
3 3.0.13.33803 2025.02.25 08ebd P P 991 490 2025.04.25 17:14:49.409 2025.04.25 17:14:50.400 2025.04.25 16:12:21.287 2025.04.25 16:12:21.777
4 3.0.13.33796 2025.01.29 0ab85 P P 947 388 2025.02.25 15:47:28.283 2025.02.25 15:47:29.230 2025.02.25 14:44:55.463 2025.02.25 14:44:55.851
5 3.0.13.33796 2025.01.14 99b3b P P 965 459 2025.01.28 18:02:14.854 2025.01.28 18:02:15.819 2025.01.28 16:57:50.149 2025.01.28 16:57:50.608
6 3.0.13.33795 2024.11.24 b8847 P P 961 377 2025.01.13 15:39:21.890 2025.01.13 15:39:22.851 2025.01.13 14:36:06.824 2025.01.13 14:36:07.201
7 3.0.13.33794 2024.10.15 abe09 P P 739 290 2024.11.23 06:42:56.813 2024.11.23 06:42:57.552 2024.11.23 05:55:27.226 2024.11.23 05:55:27.516
8 3.0.13.33793 2024.10.04 82ccc P P 873 362 2024.10.14 04:39:35.024 2024.10.14 04:39:35.897 2024.10.14 03:47:14.375 2024.10.14 03:47:14.737
9 3.0.13.33792 2024.08.31 d8791 P P 928 375 2024.10.03 09:46:53.354 2024.10.03 09:46:54.282 2024.10.03 08:50:52.266 2024.10.03 08:50:52.641
10 3.0.13.33787 2024.08.17 2e0d6 P P 1903 726 2024.08.25 15:45:46.707 2024.08.25 15:45:48.610 2024.08.25 13:43:34.329 2024.08.25 13:43:35.055
11 3.0.13.33787 2024.08.09 df740 P P 1080 483 2024.08.16 13:03:25.662 2024.08.16 13:03:26.742 2024.08.16 12:00:07.236 2024.08.16 12:00:07.719
12 3.0.12.33746 2024.07.15 11dd4 P P 1041 543 2024.08.09 12:59:21.189 2024.08.09 12:59:22.230 2024.08.09 11:54:38.157 2024.08.09 11:54:38.700
13 3.0.12.33746 2024.06.11 8a5eb P P 755 257 2024.07.15 10:49:51.987 2024.07.15 10:49:52.742 2024.07.15 09:55:55.754 2024.07.15 09:55:56.011
14 3.0.12.33744 2024.05.09 9cf37 P P 656 225 2024.05.12 15:56:01.219 2024.05.12 15:56:01.875 2024.05.12 15:07:22.517 2024.05.12 15:07:22.742
15 3.0.12.33744 2024.04.20 af6b2 P P 643 245 2024.05.08 17:11:21.533 2024.05.08 17:11:22.176 2024.05.08 16:24:54.566 2024.05.08 16:24:54.811

Elapsed time, ms. Chart for last 15 runs:

Last commits information (all timestamps in UTC):