File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ It uses the following tools:
221
221
- PostgreSQL [ ` pg_dump ` ] ( https://www.postgresql.org/docs/current/app-pgdump.html ) tool for dumping the database structure.
222
222
- PostgreSQL [ ` pg_restore ` ] ( https://www.postgresql.org/docs/current/app-pgrestore.html ) tool for restoring the database structure.
223
223
224
- ** Warning:** Requires PostgreSQL 14 or higher
224
+ ** Warning:** Requires PostgreSQL 9.6 or higher
225
225
226
226
## Installation Guide
227
227
Original file line number Diff line number Diff line change 4
4
"application_name" : "pg_anon" ,
5
5
"statement_timeout" : "0" ,
6
6
"lock_timeout" : "0" ,
7
+ }
8
+
9
+ TRANSACTIONS_SERVER_SETTINGS = {
7
10
"idle_in_transaction_session_timeout" : "0" ,
8
11
"idle_session_timeout" : "0" ,
9
12
}
Original file line number Diff line number Diff line change 2
2
import os
3
3
from typing import Dict , Optional
4
4
5
- from pg_anon .common .constants import ANON_UTILS_DB_SCHEMA_NAME , SERVER_SETTINGS
5
+ from pg_anon .common .constants import ANON_UTILS_DB_SCHEMA_NAME , SERVER_SETTINGS , TRANSACTIONS_SERVER_SETTINGS
6
6
from pg_anon .common .dto import ConnectionParams
7
7
from pg_anon .common .enums import VerboseOptions , AnonMode , ScanMode
8
8
from pg_anon .common .utils import exception_handler , parse_comma_separated_list , read_yaml
@@ -413,11 +413,14 @@ def get_arg_parser():
413
413
414
414
def set_postgres_version (self , pg_version : str ):
415
415
self .pg_version = pg_version
416
+ pg_major_version = int (pg_version .split ('.' )[0 ])
417
+
418
+ if pg_major_version >= 14 :
419
+ self .server_settings .update (TRANSACTIONS_SERVER_SETTINGS )
420
+
416
421
if not self .config :
417
422
return
418
423
419
- pg_major_version = int (pg_version .split ('.' )[0 ])
420
-
421
424
utils_versions = self .config .get ('pg-utils-versions' )
422
425
pg_utils = utils_versions .get (pg_major_version )
423
426
if not pg_utils :
You can’t perform that action at this time.
0 commit comments