Re: COPY manual is ambiguous about column list

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: COPY manual is ambiguous about column list
Дата
Msg-id 3148.1576851213@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: COPY manual is ambiguous about column list  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: COPY manual is ambiguous about column list  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-docs
Bruce Momjian <bruce@momjian.us> writes:
> OK, how is this?

I do not like the phrasing of

    If a column list is
    specified in <command>COPY FROM</command>, the number and position of
    the columns must match those fields in the file.

I'm not quite sure why, but that reads to me as implying that the COPY
will identify columns of the file by name and match them up.  Or at
least it could be read that way by somebody who was predisposed to
believe it.  I'd go with something more like

    If a column list is
    specified in <command>COPY FROM</command>, only the listed columns
    are read from the file (whose fields must match the column list).

            regards, tom lane



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: COPY manual is ambiguous about column list
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: COPY manual is ambiguous about column list