Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

[copy] / [copy-to] / [copy-from]

Default options for COPY TO and COPY FROM operations. Values here can be overridden with WITH clauses in the COPY command.

[copy] — shared defaults

[copy]
numprocesses = 4
maxattempts = 5
reportfrequency = 0.25
KeyTypeDefaultDescription
numprocessesinteger4Number of worker processes.
maxattemptsinteger5Maximum retry attempts per batch.
reportfrequencyfloat0.25Progress report interval in seconds.

[copy-to] — export defaults

[copy-to]
pagesize = 1000
pagetimeout = 10
maxrequests = 6
maxoutputsize = -1
floatprecision = 5
doubleprecision = 12
KeyTypeDefaultDescription
pagesizeinteger1000Number of rows per page when reading.
pagetimeoutinteger10Timeout for each page fetch in seconds.
begintokenstringStart token for range export.
endtokenstringEnd token for range export.
maxrequestsinteger6Maximum concurrent page requests.
maxoutputsizeinteger-1Maximum rows to export (-1 = unlimited).
floatprecisioninteger5Float decimal digits in CSV output.
doubleprecisioninteger12Double decimal digits in CSV output.

[copy-from] — import defaults

[copy-from]
chunksize = 1000
ingestrate = 100000
maxbatchsize = 20
minbatchsize = 2
maxparseerrors = -1
maxinserterrors = -1
preparedstatements = true
ttl = -1
KeyTypeDefaultDescription
chunksizeinteger1000Number of rows per insert batch.
ingestrateinteger100000Target rows per second.
maxbatchsizeinteger20Maximum rows per batch statement.
minbatchsizeinteger2Minimum rows per batch statement.
maxparseerrorsinteger-1Maximum parse errors before aborting (-1 = unlimited).
maxinserterrorsinteger-1Maximum insert errors before aborting (-1 = unlimited).
preparedstatementsbooleantrueUse prepared statements for inserts.
ttlinteger-1TTL for inserted rows in seconds (-1 = no TTL).