Re: COPY IN as SELECT target

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: COPY IN as SELECT target
Дата
Msg-id 603c8f070912170928y5a6d3bb8l9afacf9afdfc1fce@mail.gmail.com
обсуждение исходный текст
Ответ на Re: COPY IN as SELECT target  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: COPY IN as SELECT target
Список pgsql-hackers
On Thu, Dec 17, 2009 at 12:23 PM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> How about just COPY FROM? As in
>
> SELECT t[5] as a, 3*(t[3]::numeric) as b FROM (COPY FROM STDIN CSV) as t

I had the same thought.  Though it would also be nice to allow something like:

COPY (type1, type2, type3, type4) FROM STDIN CSV

...which is obviously going to create a horrible parser problem if you
actually tried to use that syntax.

...Robert


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: COPY IN as SELECT target
Следующее
От: David Fetter
Дата:
Сообщение: Re: COPY IN as SELECT target