Re: How to export query results

Поиск
Список
Период
Сортировка
От Chris Hoover
Тема Re: How to export query results
Дата
Msg-id 1d219a6f0708210909t663a6a1al8c25bd6f76c99031@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to export query results  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Ответы Re: How to export query results  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-admin
On 8/21/07, Scott Marlowe <scott.marlowe@gmail.com> 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 по дате отправления:

Предыдущее
От: "Tena Sakai"
Дата:
Сообщение: Re: After adjusting checkpoint related entries in postgresql.conf...
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: How to export query results