Re: Command Line option misunderstanding
От | David G. Johnston |
---|---|
Тема | Re: Command Line option misunderstanding |
Дата | |
Msg-id | CAKFQuwZu5owFhnhs7xm74BL-gZmjVjqa_YKb-vzoxJk1REJ+Mg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Command Line option misunderstanding (Ken Dibble <ken@beckydibble.com>) |
Список | pgsql-novice |
As I stated, I was trying to figure out if there was a problem with the documentation. Below is the documentation for -c and I cannot find anywhere it says you cannot use variables with it. The only way that that could make sense is if declaring a variable is a psql specific feature and -v is hiding behind that in the man page.
I could find no place where it is documented that declaring a variable is a psql specific feature.
In addition, of what use would it be to declare a variable that could not be accessed without a command. It wouldn't make sense (at least to me) to declare something that is going immediately out of scope before the next command executes or when the psql command (and hence the session) ends.
One would hope that if the variable were out of scope it would generate an error.
Is there any explanation for this?
-c command
command must be either a command string that is completely parsable
by the server (i.e., it contains no psql-specific features),
В списке pgsql-novice по дате отправления: