forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfe546f3
committed
Don't wait for the commit record to be replicated if we wrote no WAL.
When using synchronous replication, we waited for the commit record to bereplicated, 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 inthat case. This lead to long waits when committing a transaction that onlymodified a temporary table. Bug spotted by Thom Brown.1 parentcf714c8 commitfe546f3
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1168 | 1168 |
| |
1169 | 1169 |
| |
1170 | 1170 |
| |
1171 |
| - | |
| 1171 | + | |
| 1172 | + | |
1172 | 1173 |
| |
1173 | 1174 |
| |
1174 | 1175 |
| |
|
0 commit comments
Comments
(0)