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
Список
Дерево обсуждения
Identical command-line command will not work with \i metacommand and filename John Gage <jsmgage@numericable.fr>
Re: Identical command-line command will not work with \i metacommand and filename Scott Mead <scott.lists@enterprisedb.com>
Re: Identical command-line command will not work with \i metacommand and filename John Gage <jsmgage@numericable.fr>
Re: Identical command-line command will not work with \i metacommand and filename Richard Huxton <dev@archonet.com>
Byte order mark added by (the envelope please...) pgAdmin3 !! John Gage <jsmgage@numericable.fr>
Re: Byte order mark added by (the envelope please...) pgAdmin3 !! "Wappler, Robert" <rwappler@ophardt.com>
Re: [pgadmin-support] Byte order mark added by (the envelope please...) pgAdmin3 !! John Gage <jsmgage@numericable.fr>
Re: [pgadmin-support] Byte order mark added by (the envelope please...) pgAdmin3 !! Dave Page <dpage@pgadmin.org>
Re: [pgadmin-support] Byte order mark added by (the envelope please...) pgAdmin3 !! John Gage <jsmgage@numericable.fr>
Re: [pgadmin-support] Byte order mark added by (the envelope please...) pgAdmin3 !! Magnus Hagander <magnus@hagander.net>
Re: [pgadmin-support] Byte order mark added by (the envelope please...) pgAdmin3 !! John Gage <jsmgage@numericable.fr>
Re: [pgadmin-support] Byte order mark added by (the envelope please...) pgAdmin3 !! Fernando Hevia <fhevia@gmail.com>
Re: Identical command-line command will not work with \i metacommand and filename John Gage <jsmgage@numericable.fr>
Re: Identical command-line command will not work with \i metacommand and filename Bruce Momjian <bruce@momjian.us>
Re: Identical command-line command will not work with \i metacommand and filename John Gage <jsmgage@numericable.fr>
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
Дата:
От: Brian Peschel
Дата:
FAQ