@@ -150,38 +150,6 @@ class SingleQueryResult:
150
150
Type that return passed function.
151
151
"""
152
152
153
- class SynchronousCommit (Enum ):
154
- """
155
- Synchronous_commit option for transactions.
156
-
157
- ### Variants:
158
- - `On`: The meaning may change based on whether you have
159
- a synchronous standby or not.
160
- If there is a synchronous standby,
161
- setting the value to on will result in waiting till “remote flush”.
162
- - `Off`: As the name indicates, the commit acknowledgment can come before
163
- flushing the records to disk.
164
- This is generally called as an asynchronous commit.
165
- If the PostgreSQL instance crashes,
166
- the last few asynchronous commits might be lost.
167
- - `Local`: WAL records are written and flushed to local disks.
168
- In this case, the commit will be acknowledged after the
169
- local WAL Write and WAL flush completes.
170
- - `RemoteWrite`: WAL records are successfully handed over to
171
- remote instances which acknowledged back
172
- about the write (not flush).
173
- - `RemoteApply`: This will result in commits waiting until replies from the
174
- current synchronous standby(s) indicate they have received
175
- the commit record of the transaction and applied it so
176
- that it has become visible to queries on the standby(s).
177
- """
178
-
179
- On = 1
180
- Off = 2
181
- Local = 3
182
- RemoteWrite = 4
183
- RemoteApply = 5
184
-
185
153
class IsolationLevel (Enum ):
186
154
"""Isolation Level for transactions."""
187
155
@@ -1117,15 +1085,13 @@ class Connection:
1117
1085
isolation_level : IsolationLevel | None = None ,
1118
1086
read_variant : ReadVariant | None = None ,
1119
1087
deferrable : bool | None = None ,
1120
- synchronous_commit : SynchronousCommit | None = None ,
1121
1088
) -> Transaction :
1122
1089
"""Create new transaction.
1123
1090
1124
1091
### Parameters:
1125
1092
- `isolation_level`: configure isolation level of the transaction.
1126
1093
- `read_variant`: configure read variant of the transaction.
1127
1094
- `deferrable`: configure deferrable of the transaction.
1128
- - `synchronous_commit`: configure synchronous_commit option for transaction.
1129
1095
"""
1130
1096
def cursor (
1131
1097
self : Self ,
0 commit comments