pgsql: Fix check for conflicting session- vs transaction-level locks.

2021-07-24 Thread Tom Lane
Fix check for conflicting session- vs transaction-level locks. We have an implementation restriction that PREPARE TRANSACTION can't handle cases where both session-lifespan and transaction-lifespan locks are held on the same lockable object. (That's because we'd otherwise need to acquire a new PR

pgsql: Fix check for conflicting session- vs transaction-level locks.

2021-07-24 Thread Tom Lane
Fix check for conflicting session- vs transaction-level locks. We have an implementation restriction that PREPARE TRANSACTION can't handle cases where both session-lifespan and transaction-lifespan locks are held on the same lockable object. (That's because we'd otherwise need to acquire a new PR

pgsql: Fix check for conflicting session- vs transaction-level locks.

2021-07-24 Thread Tom Lane
Fix check for conflicting session- vs transaction-level locks. We have an implementation restriction that PREPARE TRANSACTION can't handle cases where both session-lifespan and transaction-lifespan locks are held on the same lockable object. (That's because we'd otherwise need to acquire a new PR

pgsql: Fix check for conflicting session- vs transaction-level locks.

2021-07-24 Thread Tom Lane
Fix check for conflicting session- vs transaction-level locks. We have an implementation restriction that PREPARE TRANSACTION can't handle cases where both session-lifespan and transaction-lifespan locks are held on the same lockable object. (That's because we'd otherwise need to acquire a new PR

pgsql: Fix check for conflicting session- vs transaction-level locks.

2021-07-24 Thread Tom Lane
Fix check for conflicting session- vs transaction-level locks. We have an implementation restriction that PREPARE TRANSACTION can't handle cases where both session-lifespan and transaction-lifespan locks are held on the same lockable object. (That's because we'd otherwise need to acquire a new PR

pgsql: Fix check for conflicting session- vs transaction-level locks.

2021-07-24 Thread Tom Lane
Fix check for conflicting session- vs transaction-level locks. We have an implementation restriction that PREPARE TRANSACTION can't handle cases where both session-lifespan and transaction-lifespan locks are held on the same lockable object. (That's because we'd otherwise need to acquire a new PR

pgsql: Fix check for conflicting session- vs transaction-level locks.

2021-07-24 Thread Tom Lane
Fix check for conflicting session- vs transaction-level locks. We have an implementation restriction that PREPARE TRANSACTION can't handle cases where both session-lifespan and transaction-lifespan locks are held on the same lockable object. (That's because we'd otherwise need to acquire a new PR