pgsql: Fix an undetected deadlock due to apply worker.

2023-12-10 Thread Amit Kapila
Fix an undetected deadlock due to apply worker. The apply worker needs to update the state of the subscription tables to 'READY' during the synchronization phase which requires locking the corresponding subscription. The apply worker also waits for the subscription tables to reach the 'SYNCDONE' s

pgsql: Fix an undetected deadlock due to apply worker.

2023-12-10 Thread Amit Kapila
Fix an undetected deadlock due to apply worker. The apply worker needs to update the state of the subscription tables to 'READY' during the synchronization phase which requires locking the corresponding subscription. The apply worker also waits for the subscription tables to reach the 'SYNCDONE' s

pgsql: Fix an undetected deadlock due to apply worker.

2023-12-10 Thread Amit Kapila
Fix an undetected deadlock due to apply worker. The apply worker needs to update the state of the subscription tables to 'READY' during the synchronization phase which requires locking the corresponding subscription. The apply worker also waits for the subscription tables to reach the 'SYNCDONE' s

pgsql: Fix an undetected deadlock due to apply worker.

2023-12-10 Thread Amit Kapila
Fix an undetected deadlock due to apply worker. The apply worker needs to update the state of the subscription tables to 'READY' during the synchronization phase which requires locking the corresponding subscription. The apply worker also waits for the subscription tables to reach the 'SYNCDONE' s

pgsql: Fix an undetected deadlock due to apply worker.

2023-12-10 Thread Amit Kapila
Fix an undetected deadlock due to apply worker. The apply worker needs to update the state of the subscription tables to 'READY' during the synchronization phase which requires locking the corresponding subscription. The apply worker also waits for the subscription tables to reach the 'SYNCDONE' s

pgsql: Fix an undetected deadlock due to apply worker.

2023-12-10 Thread Amit Kapila
Fix an undetected deadlock due to apply worker. The apply worker needs to update the state of the subscription tables to 'READY' during the synchronization phase which requires locking the corresponding subscription. The apply worker also waits for the subscription tables to reach the 'SYNCDONE' s