Alvaro Herrera wrote:
> Doesn't say about variable expansion ... And it seems to be in a
> different realm, because the point is that the command is going to have
> a single destination (either \-processing or sending it to the server).
>
> Is psql being just lazy here and avoiding parsing the command?
The intent is to leave open an avenue to pass a command to the server
without any interference from psql at all. I have never been very
comfortable with overloading -c for that purpose, and it certainly
confuses users from time to time. But that's the idea anyway.