Identical command-line command will not work with \i metacommand and filename

Поиск
Список
Период
Сортировка
От John Gage
Тема Identical command-line command will not work with \i metacommand and filename
Дата
Msg-id 2B3E547C-F226-48E4-BA31-B81532C57F20@numericable.fr
обсуждение исходный текст
Ответы Re: Identical command-line command will not work with \i metacommand and filename  (Scott Mead <scott.lists@enterprisedb.com>)
Список pgsql-general
I enter the identical command:

select * from mesh_descriptors;

using the psql command line and it works perfectly.

The same command in a file produces an immediate syntax error:

EFNWeb=# \i ./CopySql.sql
psql:./CopySql.sql:1: ERROR:  syntax error at or near "select"
LINE 1: select * from mesh_descriptors;

when run from a file using \i

What am I doing wrong?

Thanks,

John Gage

В списке pgsql-general по дате отправления:

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: Listing tables in all schemas in psql
Следующее
От: Brian Peschel
Дата:
Сообщение: Best way to replicate to large number of nodes