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:
Dimitri Fontaine 2017-09-14 15:30:29 +02:00
parent dbadab9e9e
commit f921658866

View File

@ -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))))))