Dimitri Fontaine
ea4e74e545
Improve parsing of list separating commas wrt to whitespacing.
2013-11-23 21:49:08 +01:00
Dimitri Fontaine
c482015248
Arrange to error out when given non-existing file names in the command line.
2013-11-23 21:36:22 +01:00
Dimitri Fontaine
4bc4cc53a7
Add support for connecting to PostgreSQL with Unix Domain Sockets, fixing #15 .
2013-11-22 17:19:48 +01:00
Dimitri Fontaine
fdfcb8dde9
Fix the byte-vector-to-bytea transform function (handle nil, better type declaration).
2013-11-22 17:18:09 +01:00
Dimitri Fontaine
2a344ab7ce
Add a usage line in the --help output.
2013-11-22 11:23:15 +01:00
Dimitri Fontaine
78b42cc4ae
Properly handle blob formats, converting then to PostgreSQL bytea input.
2013-11-22 11:01:20 +01:00
Dimitri Fontaine
74cabeb6f5
Change MySQL list-tables function not to include views.
2013-11-22 10:55:38 +01:00
Dimitri Fontaine
6a6684bd8b
Desultory improve the SQLite importer.
2013-11-21 21:34:02 +01:00
Dimitri Fontaine
1419a1f65d
Default --logfile to pgloader.log within --root-dir.
2013-11-21 14:28:11 +01:00
Dimitri Fontaine
516bb28ec0
Fix using TMPDIR from the environment when running from the binary image.
2013-11-21 13:06:16 +01:00
Dimitri Fontaine
d70ed07b12
If --lofgile is relative, expand it into --root-dir.
2013-11-21 12:56:54 +01:00
Dimitri Fontaine
febbc03459
Review some log messages and levels.
2013-11-21 11:37:47 +01:00
Dimitri Fontaine
d52240a95e
Review the --root-dir patches for better default management.
...
Also ensure the directory we're given actually exists on disk, creating it
if necessary, and bail out early in case for whatever reason it's not
possible to create the directory.
2013-11-21 11:27:54 +01:00
Cédric Villemain
17ef2f1933
A word was missing in comment
2013-11-21 11:00:02 +01:00
Cédric Villemain
081f6be0b4
Add new command line parameter for root-dir
...
This variable replaces reject-root-path and is used to set the root working
directory.
It defaults to /tmp/pgloader/ like previously.
Also set the logfile according to the root-dir.
TODO: tmpdir is not handled in comand-line. Is it really wanted to have more
command line parameters ?
2013-11-21 11:00:02 +01:00
Cédric Villemain
8984a0a810
Rename reject-root-path to root-dir
...
Prepare the variable to be a parameter
2013-11-21 11:00:01 +01:00
Cédric Villemain
197ce706b8
Set date to NULL when year is 0000
...
And remove other now useles checks
2013-11-21 11:00:01 +01:00
Dimitri Fontaine
ee857e7523
While at it, provide a proper right-trim transforms function.
2013-11-18 11:55:26 +01:00
Dimitri Fontaine
8d8e0b041a
Allow filename matching expressions in the FIXED command, and support it in archives.
2013-11-18 11:38:50 +01:00
Dimitri Fontaine
fb54d19357
Review some default casting rules, in particular add tinyint(1) to boolean.
2013-11-18 10:28:38 +01:00
Dimitri Fontaine
b31ccded6f
Implement per-column MySQL CAST rules.
2013-11-18 10:12:43 +01:00
Dimitri Fontaine
8fa7a86013
Implement typemod and default guards in the MySQL CAST clause.
2013-11-17 22:33:06 +01:00
Dimitri Fontaine
0d3c6f4a2c
Add comments in transforms.lisp.
2013-11-17 22:10:45 +01:00
Dimitri Fontaine
ed6ba23bcb
Add a default MySQL casting rule for char(n) to varchar(n), and tests.
2013-11-17 19:22:49 +01:00
Dimitri Fontaine
d295001a2a
Review the main function to better handle per-filename-argument errors.
2013-11-17 19:02:26 +01:00
Dimitri Fontaine
acff88848b
Error out early when given a non-existing archive file to extract.
2013-11-17 19:01:58 +01:00
Dimitri Fontaine
c809d93b05
New feature, bump the version number.
2013-11-16 21:41:42 +01:00
Dimitri Fontaine
718ac80560
Implement a Materiaze Views option for MySQL.
2013-11-16 21:41:07 +01:00
Dimitri Fontaine
eb468f92fd
Review critical log levels and use FATAL and PANIC as in PostgreSQL.
2013-11-16 21:34:50 +01:00
Dimitri Fontaine
a6c5bc9811
Fix formating of default values in MySQL cast rules.
2013-11-16 21:33:51 +01:00
Dimitri Fontaine
cefd19d704
Improve handling of unhandled conditions, avoid entering the interactive debugger.
2013-11-15 18:03:06 +01:00
Dimitri Fontaine
bccd691ecc
Make it release candidate 1.
2013-11-14 00:01:45 +01:00
Dimitri Fontaine
d99b859c3f
Improve and fix COPY error handling, transactions, connections, and GUCs.
2013-11-13 23:54:41 +01:00
Dimitri Fontaine
6fb3de7043
Improve error management in MySQL copy-database preparatory code.
2013-11-13 22:46:17 +01:00
Dimitri Fontaine
c16a56690a
Fix handling of errors in utility threads (create index and such).
2013-11-13 22:36:29 +01:00
Dimitri Fontaine
79fd109644
Fix zero-dates-to-null to work with datetime and date string.
2013-11-13 22:35:30 +01:00
Dimitri Fontaine
a41ce12023
Transform dates with just day of month set to "00" to NIL.
2013-11-13 21:45:11 +01:00
Dimitri Fontaine
2a65a1d39f
Fix setting of PostgreSQL GUCs and transaction usage for DDL.
2013-11-12 11:34:31 +01:00
Dimitri Fontaine
59d8188ad0
Implement --log-min-messages and --client-min-messages for more control.
2013-11-08 21:53:21 +01:00
Dimitri Fontaine
9496382b65
Fix type declaration in transform function time-with-no-separator.
2013-11-08 21:50:19 +01:00
Dimitri Fontaine
f0cfd4554d
Some code cleanup.
2013-11-08 21:28:09 +01:00
Dimitri Fontaine
2f759a3638
Error out when we couldn't find an index OID.
2013-11-08 21:13:57 +01:00
Dimitri Fontaine
8c9af591e3
Cleanup where to add the table oids for MySQL indexes migration.
2013-11-08 21:09:50 +01:00
Dimitri Fontaine
47aaadea16
Implement better (hopefully proper) management of PostgreSQL error and warnings.
2013-11-08 18:45:51 +01:00
Dimitri Fontaine
e9b734dc41
Reverting "Shorten column names in the application to bypass a postmodern bug (or something)."
...
Revert "Shorten column names in the application to bypass a postmodern bug (or something)."
This reverts commit 240574a1a5f71edefc19a4b0f35f37862bdfeacc.
2013-11-08 17:27:45 +01:00
Dimitri Fontaine
240574a1a5
Shorten column names in the application to bypass a postmodern bug (or something).
2013-11-08 00:10:49 +01:00
Dimitri Fontaine
5878df47c8
Fix the error management in pgsql-execute.
2013-11-07 23:22:43 +01:00
Dimitri Fontaine
55940a5a64
Add some more debug information.
2013-11-07 23:18:09 +01:00
Dimitri Fontaine
a9d160dc32
Some more error handling.
2013-11-07 23:17:00 +01:00
Dimitri Fontaine
4095b74db7
Fix stupid logic bug.
2013-11-07 23:06:03 +01:00