• Heikki Linnakangas's avatar
    Don't wait for the commit record to be replicated if we wrote no WAL. · fe546f3d
    Heikki Linnakangas authored
    When using synchronous replication, we waited for the commit record to be
    replicated, but if we our transaction didn't write any other WAL records,
    that's not required because we don't even flush the WAL locally to disk in
    that case. This lead to long waits when committing a transaction that only
    modified a temporary table. Bug spotted by Thom Brown.
    fe546f3d
xact.c 134 KB