Fabien COELHO <coelho@cri.ensmp.fr> writes:
> - when the current script is included from something,
> you quit the current script and proceed after the \i of next -f, BAD
> Question: is there any way to really abort a psql script from an included
> file?
Under what circumstances would it be appropriate for a script to take
it on itself to decide that? It has no way of knowing what the next -f
option is or what the user intended.
regards, tom lane