golang-migrate / migrate

Database migrations. CLI and Golang library.
Other
14.48k stars 1.34k forks source link

golang-migrate ignores PostgresSQL message reporting #1064

Open KatarinaSimnova opened 3 months ago

KatarinaSimnova commented 3 months ago

If I use one of these in my SQL migration file, golang-migrate ignores it. Nothing is logged.

RAISE INFO 'Print the message of information %', now() ;
RAISE LOG 'Print the message of log %', now();
RAISE DEBUG 'Print the message of debug %', now();
RAISE WARNING 'Print the message of warning %', now();
RAISE NOTICE 'Print the message of notice %', now();

RAISE EXCEPTION works.

I need to log messages without failing the whole migration. Can we do something about it?