forked from xataio/pgstream
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapshot2pg.yaml
More file actions
41 lines (39 loc) · 1.74 KB
/
Copy pathsnapshot2pg.yaml
File metadata and controls
41 lines (39 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
source:
postgres:
url: "postgres://postgres:postgres@localhost:5432?sslmode=disable"
mode: snapshot # options are replication, snapshot or snapshot_and_replication
snapshot: # when mode is snapshot or snapshot_and_replication
mode: full # options are data_and, schema or data
tables: ["*"] # tables to snapshot, can be a list of table names or a pattern
recorder:
postgres_url: "postgres://postgres:postgres@localhost:5432?sslmode=disable" # URL of the database where the snapshot status is recorded
snapshot_workers: 1 # number of schemas to be snapshotted in parallel
data: # when mode is full or data
schema_workers: 4 # number of schema tables to be snapshotted in parallel
table_workers: 4 # number of workers to snapshot a table in parallel
batch_page_size: 1000 # number of pages to read per batch
schema: # when mode is full or schema
pgdump_pgrestore:
clean_target_db: true # whether to clean the target database before restoring
target:
postgres:
url: "postgres://postgres:postgres@localhost:7654?sslmode=disable"
batch:
timeout: 5000 # batch timeout in milliseconds
size: 100 # number of messages in a batch
disable_triggers: false # whether to disable triggers on the target database
on_conflict_action: "nothing" # options are update, nothing or error
modifiers:
injector:
enabled: false # whether to inject pgstream metadata into the WAL events
transformations:
validation_mode: relaxed
table_transformers:
- schema: public
table: test
column_transformers:
name:
name: greenmask_firstname
dynamic_parameters:
gender:
column: sex