psql command for bytea output

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема psql command for bytea output
Дата
Msg-id 4EA1B83B.2050605@pgexperts.com
обсуждение исходный текст
Ответы Re: psql command for bytea output
Список pgsql-hackers
A few months ago, I blogged about the difficulty of getting psql to put 
a bytea datum into a file. See 
<http://people.planetpostgresql.org/andrew/index.php?/archives/196-Clever-trick-challenge.html>. 
Today I ran into the problem again, and it struck me that we could 
fairly easily have a new command to handle this, called, say, bcopy. So 
it would look like:
   \bcopy (select generate_bytea()) to foo.bin


Thoughts?


cheers

andrew



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: So, is COUNT(*) fast now?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Synchronized snapshots versus multiple databases