Re: unable to read composite types from CSV files

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: unable to read composite types from CSV files
Дата
Msg-id CAKFQuwacEJgjXyC7_ZK1cR-B2VRdP-HFna+Gr+Gs77CmXw_hMQ@mail.gmail.com
обсуждение исходный текст
Ответ на RE: unable to read composite types from CSV files  ("Ian Bell" <ib@ianbellsoftware.com>)
Список pgsql-novice
On Thursday, April 19, 2018, Ian Bell <ib@ianbellsoftware.com> wrote:

If you don’t mind, could you point out the section in the PostgreSql manual/documentation where this is discussed/explained.  I have repeatedly read section 8.16.6 (i.e. Composite Type Input and Output Syntax) but it does not appear to include this detail.

Your problem is lower-level than the composite type, it's not understanding csv.  Read the copy docs, csv format section to learn more.


The syntax for the composite is embedded in a csv file so first you have to parse the csv then you pass the result to the composite input constructor.  If you enter it literally in a script file you can ignore the csv format stuff and go immediately to the syntax of the Typed data you wish to create.

David J.

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

Предыдущее
От: "Ian Bell"
Дата:
Сообщение: RE: unable to read composite types from CSV files
Следующее
От: "Ian Bell"
Дата:
Сообщение: RESOLVED: unable to read composite types from CSV files