revised patch for COPY

Поиск
Список
Период
Сортировка
От Michael Adler
Тема revised patch for COPY
Дата
Msg-id Pine.NEB.4.53.0302261227020.6153@reva.sixgirls.org
обсуждение исходный текст
Ответ на Re: patch for COPY  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Here's another version of a patch that gives you COPY capabilities. The
difference is that in addition to the simple and default:

copyOut("tablename",outputStream);

you can also access other COPY features by supplying your own COPY query:

copyOutQuery("COPY "+tablename+" WITH OID TO STDOUT DELIMITERS '\t' WITH
NULL AS '\N'",outputStream);

This feature speeds up my application 40x and I bet it will be useful to
others as well. I wrote it to integrate cleanly into the driver, so
please let me know if its not appropriate for the main project.

Comments?

Mike Adler

Вложения

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

Предыдущее
От: Barry Lind
Дата:
Сообщение: Re: Bug: getColumns returns bad data for numeric types in
Следующее
От: Rich Cullingford
Дата:
Сообщение: Can't update rows in tables qualified with schema names