Hi Feng, I tested the v2 patch on PostgreSQL 20devel. The patch applied cleanly, and I rebuilt and restarted the server successfully.
Before applying the patch, calling: SELECT pg_catalog.interval(interval '1 day', 1539); reported: ERROR: unrecognized interval typmod: 1539 After applying the patch, the same DO block produced: NOTICE: invalid interval typmod rejected which confirms that the error is now reported as invalid_parameter_value instead of an internal error. I also verified that the existing interval behavior remains unchanged: SELECT interval(0) '1 day 01:23:45.6789'; returned 1 day 01:23:46 SELECT interval(2) '1 day 01:23:45.6789'; returned 1 day 01:23:45.68 The patch worked as expected in my testing. Regards, solai
