Tags: percona/postgres
Tags
Fixing flaky crash after 17.5 merge The 17.5 release includes a bugfix for the smgrcode: previously if smgropen failed, smgrclose wasn't called. In our case we tried to retrieve the key before calling mdopen in smgropen, which meant that the open call failed before the data initialization in mdopen, which sometimes caused mdclose to crash. The fix is simple: as mdopen only zero initializes some data, we call it before trying to retrieve the principal key. This way the failure happens after every data structure is set up properly.
PreviousNext