fix crash with Python 3.11Committed in 2022-03
Reviewers
Tom Lane (tgl)
Committer
Tom Lane (tgl)
2 commitfests, oldest first