Re: file I/O in plpgsql

Поиск
Список
Период
Сортировка
От Terry Lee Tucker
Тема Re: file I/O in plpgsql
Дата
Msg-id 200604291023.54998.terry@esc1.com
обсуждение исходный текст
Ответ на file I/O in plpgsql  (Jessica M Salmon <jmsalmon@fs.fed.us>)
Ответы Re: file I/O in plpgsql  (Terry Lee Tucker <terry@esc1.com>)
Список pgsql-general
On Friday 28 April 2006 03:47 pm, Jessica M Salmon <jmsalmon@fs.fed.us> thus
communicated:
-->
--> I'm trying to write out query results to a text file from within a
 plpgsql --> function, but having trouble. Can anyone tell me if this is
 possible? I'm --> trying to perform \o filename, then select, but it squawks
 about no --> destination for the select results. Any pointers?
--> -Meghan
-->
-->
--> ---------------------------(end of broadcast)---------------------------
--> TIP 2: Don't 'kill -9' the postmaster
-->
You cannot do that with plpgsql. You can use Perl in "trusted" mode and pass
the query results to the Perl function which can write the output to a ffile.

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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: file I/O in plpgsql
Следующее
От: "Florian G. Pflug"
Дата:
Сообщение: Re: file I/O in plpgsql