@@ -59,102 +59,103 @@ Options
59
59
Inquiry Options
60
60
^^^^^^^^^^^^^^^
61
61
62
- Use these options when you want to know more about how to use ` pgloader ` , as
63
- those options will cause ` pgloader ` not to load any data.
62
+ Use these options when you want to know more about how to use pgloader, as
63
+ those options will cause pgloader not to load any data.
64
64
65
- * ` -h `, ` -- help`
65
+ -- help
66
66
67
67
Show command usage summary and exit.
68
68
69
- * ` -V `, ` -- version`
69
+ -- version
70
70
71
71
Show pgloader version string and exit.
72
72
73
- * ` -E `, ` --list- encodings`
73
+ --with- encodings
74
74
75
75
List known encodings in this version of pgloader.
76
76
77
- * ` -U `, ` -- upgrade-config`
77
+ -- upgrade-config
78
78
79
- Parse given files in the command line as `pgloader.conf ` files with the
80
- ` INI ` syntax that was in use in pgloader versions 2.x, and output the
79
+ Parse given files in the command line as `` pgloader.conf `` files with
80
+ the INI syntax that was in use in pgloader versions 2.x, and output the
81
81
new command syntax for pgloader on standard output.
82
82
83
83
84
84
General Options
85
85
^^^^^^^^^^^^^^^
86
86
87
- Those options are meant to tweak ` pgloader ` behavior when loading data.
87
+ Those options are meant to tweak pgloader behavior when loading data.
88
88
89
- * ` -v `, ` -- verbose`
89
+ -- verbose
90
90
91
91
Be verbose.
92
92
93
- * ` -q `, ` -- quiet`
93
+ -- quiet
94
94
95
95
Be quiet.
96
96
97
- * ` -d `, ` -- debug`
97
+ -- debug
98
98
99
99
Show debug level information messages.
100
100
101
- * ` -D `, ` -- root-dir`
101
+ -- root-dir
102
102
103
- Set the root working directory (default to " /tmp/pgloader" ).
103
+ Set the root working directory (defaults to `` /tmp/pgloader `` ).
104
104
105
- * ` -L `, ` -- logfile`
105
+ -- logfile
106
106
107
- Set the pgloader log file (default to " /tmp/pgloader/pgloader.log" ).
107
+ Set the pgloader log file (defaults to `` /tmp/pgloader/pgloader.log `` ).
108
108
109
- * ` --log-min-messages `
109
+ --log-min-messages
110
110
111
111
Minimum level of verbosity needed for log message to make it to the
112
112
logfile. One of critical, log, error, warning, notice, info or debug.
113
113
114
- * ` --client-min-messages `
114
+ --client-min-messages
115
115
116
116
Minimum level of verbosity needed for log message to make it to the
117
117
console. One of critical, log, error, warning, notice, info or debug.
118
118
119
- * ` -S `, ` -- summary`
119
+ -- summary
120
120
121
121
A filename where to copy the summary output. When relative, the filename
122
- is expanded into `*root-dir* `.
122
+ is expanded into `` *root-dir* ` `.
123
123
124
124
The format of the filename defaults to being *human readable *. It is
125
+
125
126
possible to have the output in machine friendly formats such as *CSV *,
126
127
*COPY * (PostgreSQL's own COPY format) or *JSON * by specifying a filename
127
- with the extension resp. `.csv `, `.copy ` or `.json `.
128
+ with the extension resp. `` .csv `` , `` .copy `` or `` .json ` `.
128
129
129
- * ` -l <file> `, ` -- load-lisp-file <file>`
130
+ -- load-lisp-file <file>
130
131
131
132
Specify a lisp <file> to compile and load into the pgloader image before
132
133
reading the commands, allowing to define extra transformation function.
133
- Those functions should be defined in the `pgloader.transforms ` package.
134
- This option can appear more than once in the command line.
134
+ Those functions should be defined in the `` pgloader.transforms ``
135
+ package. This option can appear more than once in the command line.
135
136
136
- * ` --dry-run `
137
+ --dry-run
137
138
138
- Allow testing a `.load ` file without actually trying to load any data.
139
+ Allow testing a `` .load ` ` file without actually trying to load any data.
139
140
It's useful to debug it until it's ok, in particular to fix connection
140
141
strings.
141
142
142
- * ` --on-error-stop `
143
+ --on-error-stop
143
144
144
145
Alter pgloader behavior: rather than trying to be smart about error
145
146
handling and continue loading good data, separating away the bad one,
146
147
just stop as soon as PostgreSQL refuses anything sent to it. Useful to
147
148
debug data processing, transformation function and specific type
148
149
casting.
149
150
150
- * ` --self-upgrade <directory> `
151
+ --self-upgrade <directory>
151
152
152
153
Specify a <directory> where to find pgloader sources so that one of the
153
154
very first things it does is dynamically loading-in (and compiling to
154
155
machine code) another version of itself, usually a newer one like a very
155
156
recent git checkout.
156
157
157
- * ` --no-ssl-cert-verification `
158
+ --no-ssl-cert-verification
158
159
159
160
Uses the OpenSSL option to accept a locally issued server-side
160
161
certificate, avoiding the following error message::
@@ -169,53 +170,55 @@ Those options are meant to tweak `pgloader` behavior when loading data.
169
170
Command Line Only Operations
170
171
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
171
172
172
- Those options are meant to be used when using ` pgloader ` from the command
173
- line only, rather than using a command file and the rich command clauses and
173
+ Those options are meant to be used when using pgloader from the command line
174
+ only, rather than using a command file and the rich command clauses and
174
175
parser. In simple cases, it can be much easier to use the *SOURCE * and
175
176
*TARGET * directly on the command line, then tweak the loading with those
176
177
options:
177
178
178
- * ` --with " option" `
179
+ --with < option>
179
180
180
181
Allows setting options from the command line. You can use that option as
181
182
many times as you want. The option arguments must follow the *WITH *
182
- clause for the source type of the `SOURCE ` specification, as described
183
+ clause for the source type of the `` SOURCE ` ` specification, as described
183
184
later in this document.
184
185
185
- * ` --set "guc_name='value'" `
186
+ --set
186
187
187
188
Allows setting PostgreSQL configuration from the command line. Note that
188
189
the option parsing is the same as when used from the *SET * command
189
190
clause, in particular you must enclose the guc value with single-quotes.
190
191
191
- * `--field "..." `
192
+ Use ``--set "guc_name='value'" ``.
193
+
194
+ --field
192
195
193
196
Allows setting a source field definition. Fields are accumulated in the
194
- order given on the command line. It's possible to either use a ` --field `
195
- option per field in the source file, or to separate field definitions by
196
- a comma, as you would do in the *HAVING FIELDS * clause.
197
+ order given on the command line. It's possible to either use a
198
+ `` --field `` option per field in the source file, or to separate field
199
+ definitions by a comma, as you would do in the *HAVING FIELDS * clause.
197
200
198
- * ` --cast "..." `
201
+ --cast <rule>
199
202
200
203
Allows setting a specific casting rule for loading the data.
201
204
202
- * ` --type csv|fixed|db3|ixf|sqlite|mysql|mssql `
205
+ --type < csv|fixed|db3|ixf|sqlite|mysql|mssql>
203
206
204
207
Allows forcing the source type, in case when the *SOURCE * parsing isn't
205
208
satisfying.
206
209
207
- * ` --encoding <encoding> `
210
+ --encoding <encoding>
208
211
209
212
Set the encoding of the source file to load data from.
210
213
211
- * ` --before <filename> `
214
+ --before <filename>
212
215
213
216
Parse given filename for SQL queries and run them against the target
214
217
database before loading the data from the source. The queries are parsed
215
218
by pgloader itself: they need to be terminated by a semi-colon (;) and
216
219
the file may include `\i ` or `\ir ` commands to *include * another file.
217
220
218
- * ` --after <filename> `
221
+ --after <filename>
219
222
220
223
Parse given filename for SQL queries and run them against the target
221
224
database after having loaded the data from the source. The queries are
0 commit comments