Re: R: feature proposal ... - Mailing list pgsql-hackers

From AgentM
Subject Re: R: feature proposal ...
Date
Msg-id F9376FA8-D704-4CD2-AA1C-E9E2C186B642@themactionfaction.com
Whole thread Raw
In response to Re: R: feature proposal ...  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: R: feature proposal ...
List pgsql-hackers
>
> 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;

Or, you could just allow subqueries in COPY to disambiguate the syntax:

COPY (SELECT * FROM table WHERE i=1) TO stdout;



|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-
AgentM
agentm@themactionfaction.com
|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-



pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Table Partitioning is in 8.1
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Table Partitioning is in 8.1