pgsql: Fix assert failures in parallel SERIALIZABLE READ ONLY.

2023-03-05 Thread Thomas Munro
Fix assert failures in parallel SERIALIZABLE READ ONLY. 1. Make sure that we don't decrement SxactGlobalXminCount twice when the SXACT_FLAG_RO_SAFE optimization is reached in a parallel query. This could trigger a sanity check failure in assert builds. Non-assert builds recompute the count in Se

pgsql: Fix assert failures in parallel SERIALIZABLE READ ONLY.

2023-03-05 Thread Thomas Munro
Fix assert failures in parallel SERIALIZABLE READ ONLY. 1. Make sure that we don't decrement SxactGlobalXminCount twice when the SXACT_FLAG_RO_SAFE optimization is reached in a parallel query. This could trigger a sanity check failure in assert builds. Non-assert builds recompute the count in Se

pgsql: Fix assert failures in parallel SERIALIZABLE READ ONLY.

2023-03-05 Thread Thomas Munro
Fix assert failures in parallel SERIALIZABLE READ ONLY. 1. Make sure that we don't decrement SxactGlobalXminCount twice when the SXACT_FLAG_RO_SAFE optimization is reached in a parallel query. This could trigger a sanity check failure in assert builds. Non-assert builds recompute the count in Se

pgsql: Fix assert failures in parallel SERIALIZABLE READ ONLY.

2023-03-05 Thread Thomas Munro
Fix assert failures in parallel SERIALIZABLE READ ONLY. 1. Make sure that we don't decrement SxactGlobalXminCount twice when the SXACT_FLAG_RO_SAFE optimization is reached in a parallel query. This could trigger a sanity check failure in assert builds. Non-assert builds recompute the count in Se

pgsql: Fix assert failures in parallel SERIALIZABLE READ ONLY.

2023-03-05 Thread Thomas Munro
Fix assert failures in parallel SERIALIZABLE READ ONLY. 1. Make sure that we don't decrement SxactGlobalXminCount twice when the SXACT_FLAG_RO_SAFE optimization is reached in a parallel query. This could trigger a sanity check failure in assert builds. Non-assert builds recompute the count in Se