Re: COPY FROM WHEN condition

Поиск
Список
Период
Сортировка
От Corey Huinker
Тема Re: COPY FROM WHEN condition
Дата
Msg-id CADkLM=cXsL20mMR2aXgxmhzn6Hi2SM7xGXMAqLU_2Mu_ubY_9A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: COPY FROM WHEN condition  (David Fetter <david@fetter.org>)
Список pgsql-hackers

> SELECT x.a, sum(x.b)
> FROM ( COPY INLINE '/path/to/foo.txt' FORMAT CSV ) as x( a integer, b numeric, c text, d date, e json) )

Apologies for bike-shedding, but wouldn't the following be a better
fit with the current COPY?

    COPY t(a integer, b numeric, c text, d date, e json) FROM '/path/to/foo.txt' WITH (FORMAT CSV, INLINE)

+1 Very much a better fit.

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: pgbench -M option can be specified more than once
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgbench -M option can be specified more than once