Re: Allow COPY to use parameters

Поиск
Список
Период
Сортировка
Искать
От
Andrew Gierth
Тема
Re: Allow COPY to use parameters
Дата
в 22:14:02
Msg-id
8737p7kt0g.fsf@news-spur.riddles.org.uk
Ответ на
Список
Дерево обсуждения
Allow COPY to use parameters David Fetter <david@fetter.org>
Re: Allow COPY to use parameters Tom Lane <tgl@sss.pgh.pa.us>
Re: Allow COPY to use parameters David Fetter <david@fetter.org>
Re: Allow COPY to use parameters Merlin Moncure <mmoncure@gmail.com>
Re: Allow COPY to use parameters Tom Lane <tgl@sss.pgh.pa.us>
Re: Allow COPY to use parameters Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Allow COPY to use parameters Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Allow COPY to use parameters Craig Ringer <craig@2ndquadrant.com>
Re: Allow COPY to use parameters "David G. Johnston" <david.g.johnston@gmail.com>
Re: Allow COPY to use parameters Corey Huinker <corey.huinker@gmail.com>
Re: Allow COPY to use parameters Merlin Moncure <mmoncure@gmail.com>
>>>>> "Merlin" == Merlin Moncure  writes:
Merlin> Hm, what's the use case preparing COPY?

Preparing it isn't necessarily the point (and SQL-level PREPARE is not
addressed in that patch). The point is to allow parameters, so that a
client can do

COPY (select blah from whatever where thing = $1) TO ...

without having to mess around with interpolations.
Merlin> Note, the biggest pain point I have with COPY is not being ableMerlin> to parameterize the filename argument.

Certainly that can be handled too.

-- 
Andrew (irc:RhodiumToad)


В списке pgsql-hackers по дате отправления
От: ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Дата:
От: Jeff Janes
Дата:
FAQ