Awesome, thank you. No more crashing occurs.
Tested with assertions and original data & queries.
First patch - asserts are triggered as soon as I run tests.
Second patch - no issues.
To be 100% sure I need to monitor it on our production.
Is a pgdg snapshot expected in the upcoming days, or I better
roll out version from source?