Re: How to export query results - Mailing list pgsql-admin

FromChris Hoover
SubjectRe: How to export query results
Date
Msg-id[email protected]
Whole thread Raw
In response toRe: How to export query results  ("Scott Marlowe" <[email protected]>)
ResponsesRe: How to export query results
Listpgsql-admin
On 8/21/07, Scott Marlowe <[email protected]> wrote:

Yes.  you need to use the copy command inside a function and use
security definer to say that the function runs as a superuser.


Ok, I thought from the documentation that copy could only extract entire table or a specific column. 

If I want to extract this:

select x.name,x.create_date
from x
where x.id = new.id

how do I get copy to do this (simple example, I know)?

Thanks,

Chris

PG 8.1

pgsql-admin by date:

Previous
From: "Tena Sakai"
Date:
Subject: Re: After adjusting checkpoint related entries in postgresql.conf...
Next
From: "Scott Marlowe"
Date:
Subject: Re: How to export query results