| От | Tom Lane |
|---|---|
| Тема | \copy and identifier quoting |
| Дата | |
| Msg-id | 14168.1034456262@sss.pgh.pa.us обсуждение исходный текст |
| Ответы |
Re: \copy and identifier quoting
|
| Список | pgsql-hackers |
Isn't this a bug?
regression=# create table FOO (f1 int);
CREATE TABLE
regression=# \copy FOO from stdin
ERROR: Relation "FOO" does not exist
\copy: ERROR: Relation "FOO" does not exist
regression=#
This happens because \copy takes the given table name and slaps
double quotes around it, so the backend gets COPY "FOO" ...
rather than COPY FOO ...
It seems to me that psql's \copy should interpret the table name
the same way that a regular SQL command would: honor double quotes,
downcase in the absence of quotes.
Comments, objections?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера