Re: Importing undelimited files (Flat Files or Fixed-Length records)
В списке pgsql-general по дате отправления:
| От | Bill Thoen |
|---|---|
| Тема | Re: Importing undelimited files (Flat Files or Fixed-Length records) |
| Дата | |
| Msg-id | 485FAFA5.1030406@gisnet.com обсуждение исходный текст |
| Ответ на | Re: Importing undelimited files (Flat Files or Fixed-Length records) (ptjm@news-reader-radius.uniserve.com (Patrick TJ McPhee)) |
| Список | pgsql-general |
Patrick TJ McPhee wrote: > In article <485AE3AA.3030700@gisnet.com>, Bill Thoen <bthoen@gisnet.com> wrote: > % I've got to load some large fixed-legnth ASCII records into PG and I was > % wondering how this is done. The Copy command looks like it works only > % with delimited files, and I would hate to have to convert these files to > % INSERT-type SQL to run them through psql.. Is there a way one can > % specify a table structure with raw field widths and then just pass it a > % flat file? > > pg_loader is supposed to handle this. > > http://pgfoundry.org/projects/pgloader > > Thanks, but as it turned out I also had to skip blank lines, so I wrote a short sed script and piped the data through that into COPY. That worked just fine.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера