diff -U3 /home/postgres/postgres/src/test/regress/expected/misc.out /home/postgres/postgres/build/testrun/recovery/027_stream_regress/data/results/misc.out --- /home/postgres/postgres/src/test/regress/expected/misc.out 2026-01-14 03:57:31.747061792 +0000 +++ /home/postgres/postgres/build/testrun/recovery/027_stream_regress/data/results/misc.out 2026-01-14 04:01:07.202819400 +0000 @@ -510,8 +510,12 @@ create index s1 on tcast(cast(col1 as date format 'YYYY-MM-DD')); --error ERROR: functions in index expression must be marked IMMUTABLE +LINE 1: create index s1 on tcast(cast(col1 as date format 'YYYY-MM-D... + ^ create index s1 on tcast(cast(col1 as date format stable_const())); --error ERROR: functions in index expression must be marked IMMUTABLE +LINE 1: create index s1 on tcast(cast(col1 as date format stable_con... + ^ create view tcast_v1 as select cast(col1 as date format 'YYYY-MM-DD') from tcast; select pg_get_viewdef('tcast_v1', false); pg_get_viewdef