procopy-Specific Configuration Parameters
The following is an example of the configuration file fragment in the YAML format that lists procopy-specific configuration parameters:
version: 1
work_dir: ""
procopy_options:
readers: 11
loaders: 11
batch_bytes: 1MiB
quick_fetch_lob_size: 20MiB
money_precision: 2
window_rows_limit: 1000000
disable_order_by: false
inprogress_timeout: 10m0s
show_load_percent: true
snapshot_id: null
disable_index_hint: false
disable_constraint_checks: false
parquet_options:
max_size: 300MiB
page_size: 8KiB
compression: GZIP
row_group_size: 128MiB
For how to set values for time configuration parameters, refer to Setting Time Values.
The following table explains procopy-specific configuration parameters:
| Name | Description | Default Value | Example |
|---|---|---|---|
|
Configuration file version |
||
procopy global parameters |
|||
Number of parallel read processes. Each of them processes one task at a time until it is finished. |
|
||
Number of parallel write processes. Each process retrieves batches from the queue and applies them to the destination. |
|
||
Number of retries to send a batch if the connection to the destination is lost. The whole batch is resent. If all retry attempts are exhausted, procopy terminates with an error. |
|
||
|
Time between batch sending attempts, in seconds |
|
|
Global limitation on the size of one batch, in bytes. The parameter value must be greater than |
|
||
Global flag. If enabled, all destination tables will be truncated before the data loading. If not specified or set to Note that for non-completed tasks to migrate heaps or raw queries, it is required to set this value to |
|
||
Global flag. Allows you to rerun all tasks without changing their |
|
||
|
Threshold for the LOB size that defines how to fetch LOBs. If the size of a LOB is less than this value, the binary protocol will be used and all the data in the LOB will be loaded to the random-access memory (RAM). If the size of the LOB is greater than this value, the LOB will be read in parts. The value must be between 1024 bytes and 256MiB. |
|
|
|
If specified, all the |
|
|
|
Memory size that can be consumed by procopy. If set to zero, the utility automatically determines the optimal memory. |
|
|
|
Section for setting up the work with rows that cannot be inserted |
||
|
Section for the local setting up |
||
Path to the directory where the problematic rows will be stored |
|||
|
Number of fractional digits in the destination database. Depends on the |
2 |
|
Size of the sliding window. Number of rows selected at a time. |
1000000 |
||
|
Disables loading of the data sorted by the unique primary key. Actually, the whole table is retrieved through a cursor. |
||
|
Disables index hints when creating select queries |
||
|
Maximum time to read a data block. When the value is zero, the time is not limited. |
|
|
|
Display the percentage of the task execution |
|
|
Global identifier of the PostgreSQL/Postgres Pro snapshot. Used if the |
|
||
Deprecated. Use |
|
||
Global setting of the number of subtasks for parallel reading of tables. Used to split reading large tables into subtasks. The value of zero turns off splitting into subtasks. The maximum value is 1000. |
|
||
Global flag to enable automatic creation of a snapshot in PostgreSQL/Postgres Pro. If true, a snapshot is created to be used to get data. Can be redefined at the task level using the |
|
||
|
Section that specifies options related to the Parquet format destination |
|
|
|
Deprecated. Use |
|
|
|
Maximum size of a Parquet file. If a file size is to exceed this value, a new file is created. The minimum value must be 1024 bytes. |
300MiB |
|
|
Page size in a Parquet file. See https://parquet.apache.org/docs/file-format/configurations/ for the concept of a page in Parquet. The minimum value must be 1024 bytes. |
8KiB |
|
|
Codec to compress data in a Parquet file. Supported codecs are |
|
|
|
Size of a row group in a Parquet file. See https://parquet.apache.org/docs/file-format/configurations/ for more details. The minimum value must be 1024 bytes. |
128MiB |
|
|
Key-value dictionary of column types that must be converted to a string at the database side. Only applicable for Oracle. Each key contains the column type, and the value is the format. Key-value pairs are comma-separated. |
|
|
|
A global parameter to replace the null symbol (the symbol with the zero code). Can be redefined at the task level for each specific column using the |
If the source is Oracle and destination is PostgreSQL or Postgres Pro, an empty string (""), otherwise nil |
|
Turns off checking of constraints and user triggers when a batch is written to the Postgres Pro/PostgreSQL destination database. To implement this, the following statement is used inside the loader transaction:
It requires a special setting of the destination database. When this parameter is enabled, the destination database can temporarily be inconsistent. |
|
||
|
Enables optimized writing. This is a Postgres Pro experimental feature, to be used in Postgres Pro 18.1 or higher. It can considerably speed up writing to a target system. |
|
|