mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-05 10:56:10 +02:00
Remove useless noise in the logs.
The individual CAST decisions are visible in the CREATE TABLE statements that are logged a moment later. Also, calling `format-create-sql' on a column definition that's not finished to be casted will process default values before they get normalized, and issue WARNING to the poor user. Not helpful. Bye.
This commit is contained in:
parent
dbadab9e9e
commit
f921658866
@ -152,12 +152,5 @@
|
||||
:do (when (and (null target) using (null first-match-using))
|
||||
(setf first-match-using using))
|
||||
:until target
|
||||
:finally (let ((coldef (make-pgsql-type source target using)))
|
||||
(log-message :info "CAST ~a.~a ~a [~s, ~:[NULL~;NOT NULL~]~:[~*~;, ~a~]] TO ~a~@[ USING ~a~]"
|
||||
table-name column-name ctype default
|
||||
(string= "NO" nullable)
|
||||
(string/= "" extra) extra
|
||||
(format-create-sql coldef)
|
||||
using)
|
||||
(return coldef))))))
|
||||
:finally (return (make-pgsql-type source target using))))))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user