forked from brainplusplus/pg_fast_data_transfer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
36 lines (30 loc) · 1.01 KB
/
.env.example
File metadata and controls
36 lines (30 loc) · 1.01 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
# Source Database Configuration
SOURCE_DB_HOST=localhost
SOURCE_DB_PORT=5432
SOURCE_DB_USER=postgres
SOURCE_DB_PASSWORD=postgres
SOURCE_DB_NAME=source_db
SOURCE_DB_SCHEMA=public
SOURCE_DB_SSLMODE=disable
# Destination Database Configuration
DEST_DB_HOST=localhost
DEST_DB_PORT=5432
DEST_DB_USER=postgres
DEST_DB_PASSWORD=postgres
DEST_DB_NAME=dest_db
DEST_DB_SCHEMA=public
DEST_DB_SSLMODE=disable
# Tables to Transfer (comma-separated, must have same count)
# Format: schema.table or just table (will use default schema)
# Examples:
# SOURCE_TABLES=users,orders,products
# DEST_TABLES=users_backup,orders_backup,products_backup
SOURCE_TABLES=
DEST_TABLES=
# Transfer Configuration
# BATCH_SIZE: Number of rows per batch (for progress tracking, streaming is always used)
BATCH_SIZE=10000
# TRUNCATE_BEFORE_TRANSFER: Set to "true" to truncate destination table before transfer
TRUNCATE_BEFORE_TRANSFER=false
# DISABLE_TRIGGERS: Set to "true" to disable triggers during transfer (requires superuser)
DISABLE_TRIGGERS=false