0

When I put this in my-script.sql :

RAISE INFO 'Hello, world!';

and run the script with psql, I get :

psql:whole path/my-script.sql:282: INFO:  Hello, world!

How can I replace psql:whole path/my-script.sql:282: with something else (or simply empty) ?

1
  • No, this can't be changed. raise was never intended to be used as a "print" alternative. Commented Apr 20, 2020 at 15:22

1 Answer 1

1

This does not appear to be configurable in such a manner. You would have to make (rather extensive, or very hacky) changes and recompile.

You can get rid of it entirely by doing something like:

cat my-script.sql| psql
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for replying, I updated the post. So not even set it to empty, like in interactive session ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.