Re: psql's \copy incompatible with :variables
| От | Tom Lane |
|---|---|
| Тема | Re: psql's \copy incompatible with :variables |
| Дата | |
| Msg-id | 11634.1318558241@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: psql's \copy incompatible with :variables (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: psql's \copy incompatible with :variables
Re: psql's \copy incompatible with :variables |
| Список | pgsql-bugs |
Bruce Momjian <bruce@momjian.us> writes:
> Josh Berkus wrote:
>> Note that psql variables work perfectly fine with COPY. It's just \copy
>> which seems to be misbehaving.
> The problem is that none of the backslash commands interpret variables:
Nonsense.
regression=# \set foo bar
regression=# \d foo
Did not find any relation named "foo".
regression=# \d :foo
Did not find any relation named "bar".
\copy is different because it uses OT_WHOLE_LINE mode to read the
argument, and that doesn't expand :variable references. I'd be a bit
leery of changing that.
regards, tom lane
В списке pgsql-bugs по дате отправления: