| От | John Lynn |
|---|---|
| Тема | Reading a file on Windows with psql |
| Дата | |
| Msg-id | c45c1f380911090723j23df13d2v9a4e252bcc2ea04f@mail.gmail.com обсуждение исходный текст |
| Ответы |
Re: Reading a file on Windows with psql
|
| Список | pgsql-novice |
On Windows (Windows Server 2008), I create a file using a tool (Data Generator for PostgreSQL), and then try to execute the script using: psql --file="C:\PDS\TestData\populate_companies.sql" --dbname=tst --username=tst I get an error, pointing to the first character in the file. So I open the file using pgAdmin and I see only an "I" (the first character of the first command in the file, which is an INSERT) in the file. If I load the file into a Windows editor, I see that it's a "unicode" file. If I re-save it as a "DOS" file, then psql is able to read it. Is there a way to convince psql to read a file in "unicode" format? PostgreSQL is 8.4.. Thanks for your help!
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера