Re: R: feature proposal ...

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: R: feature proposal ...
Дата
Msg-id 20050922192553.GR7630@pervasive.com
обсуждение исходный текст
Ответ на Re: R: feature proposal ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: R: feature proposal ...  (Hans-Juergen Schoenig <postgres@cybertec.at>)
Re: R: feature proposal ...  (AgentM <agentm@themactionfaction.com>)
Re: R: feature proposal ...  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Wed, Sep 21, 2005 at 11:31:42AM -0400, Tom Lane wrote:
> Hans-Jürgen Schönig <postgres@cybertec.at> writes:
> > Paolo Magnoli wrote:
> >> Can't you just use a view?
> 
> > no because a new is not a heap ...
> 
> I think Paolo's idea is much better than munging the syntax of COPY,
> though.  Fixing COPY so that you *could* copy from a view would provide
> all the desired functionality without any syntactic warts.

While I'm all for COPY from views, I think I'd rather have the syntactic
warts than code warts. ISTM that

CREATE TEMP VIEW some_name AS SELECT * FROM table WHERE ...;
COPY some_name TO stdout;

is much uglier than

COPY SELECT * FROM table WHERE ... TO stdout;
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


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

Предыдущее
От: "Anthony Molinaro"
Дата:
Сообщение: Re: Hierarchical Queries--Stalled No Longer...
Следующее
От: Hans-Juergen Schoenig
Дата:
Сообщение: Re: R: feature proposal ...