| От | Joe Conway |
|---|---|
| Тема | Re: Select results output to file? |
| Дата | |
| Msg-id | 3E700D28.9070309@joeconway.com обсуждение исходный текст |
| Ответ на | Select results output to file? (Dennis King <d_r_king@yahoo.com>) |
| Список | pgsql-novice |
Dennis King wrote: > I want to output to a file, but haven't found anything but the SQL > copy statement. I want to output the results of a select statement, > though. Ideally I'd be doing this from inside a pl/pgsql function. You can't do that from a plpgsql function short of writing your own C function and calling it from there. You probably can write to a output file from plperlu or pltclu; see: http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/plperl-trusted.html http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/pltcl.html You can also use psql either in batch mode or interactively; see: http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/app-psql.html Joe
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера