Hello
Unfortunally this is regression in 11.4, you are right.
This is bug is already fixed in report #15865 [1], but not yet released. Not sure if an earlier release is planned for this bug or we wait August minor releases.
https://www.postgresql.org/message-id/flat/15865-17940eacc8f8b081%40postgresql.org
regards, Sergei