Commit Graph

1568 Commits

Author SHA1 Message Date
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
941747e36a Cleanup in the census places test. 2013-11-21 10:54:57 +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
fdcaab9470 Fix missing query text terminator in docs. 2013-11-18 10:40:38 +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
8ce0288b63 Remove the TODO entry about typemod expression in casting rules. 2013-11-17 22:41:27 +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
00d3886ba6 Fix the goeuro local only test case. 2013-11-13 22:35:45 +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
27f485b4d6 Default make target is now building pgloader self-contained binary. 2013-11-13 21:45:33 +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
a123cd472b Better INSTALL section. 2013-11-12 11:23:07 +01:00
Dimitri Fontaine
c706813465 Review the README. 2013-11-12 11:19:06 +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
3486cc688f Looks like I forgot to add fixed.lisp in the asd system definitions. 2013-11-08 21:50:40 +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 240574a1a5.
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
Dimitri Fontaine
6c81ea50d5 Don't close the *standard-output* logger. 2013-11-07 22:57:08 +01:00
Dimitri Fontaine
186be010dc Fix the previous hasty commit. 2013-11-07 22:41:51 +01:00
Dimitri Fontaine
dfe4af5a48 Switch to handler-bind for proper stack-trace in case of the unexpected. 2013-11-07 22:40:07 +01:00
Dimitri Fontaine
2e3edde3ad Implement a generic API to deal with indexes, use it in MySQL and SQLite sources. 2013-11-07 22:07:00 +01:00
Dimitri Fontaine
2fb176f879 Fix new debug message. 2013-11-07 20:51:21 +01:00
Dimitri Fontaine
a227943012 Fix the logging system, we now have a proper logfile. 2013-11-07 20:46:47 +01:00