Re: Simple Unload

Поиск
Список
Период
Сортировка
От Bricklen Anderson
Тема Re: Simple Unload
Дата
Msg-id 457DCB49.300@presinet.com
обсуждение исходный текст
Ответ на Simple Unload  (Naomi Walker <nwalke@eldocomp.com>)
Список pgsql-admin
Naomi Walker wrote:
> From time to time, I need to unload rows to a delimited file,
> specifically with a "where" clause.
> I've cobbled a script together to do this, but it seems like a
> reasonable utility to support. Sort
> of a pg_dump on steroids..
>
> Have I missed the simple way to do this?  Would someone consider adding
> such a utility or adding
> this to pg_dump?
>
> Naomi

8.2 COPY appears to be able to output in csv format, using a WHERE
clause, though I've not tried it.

http://www.postgresql.org/docs/8.2/static/sql-copy.html

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

Предыдущее
От: Naomi Walker
Дата:
Сообщение: Simple Unload
Следующее
От: Manuel Trujillo
Дата:
Сообщение: Migration problems with encoding.