Julian Mehnle <julian@mehnle.net> writes:
> Can anyone confirm that --variable command-line options are evaluated
> before .psqlrc is read and executed? If so, does anyone know the
> rationale for that? It seems counterintuitive to me, as it makes
> overriding variables from the command-line impossible.
Seems entirely intuitive to me, as we can certainly not process .psqlrc
before processing the command line options (one of them might be -X for
instance). Furthermore, changing it would likely break existing
applications.
regards, tom lane