Re: psql command for bytea output
От
Pavel Stehule
Тема
Re: psql command for bytea output
Дата
Msg-id
CAFj8pRCJYotdmHikNuqCU94RdR8hvso6U6QhaHHpz2OJ1q843w@mail.gmail.com
Ответ на
Re: psql command for bytea output (Andrew Dunstan)
Список
Дерево обсуждения
psql command for bytea output Andrew Dunstan <andrew.dunstan@pgexperts.com>
Re: psql command for bytea output Pavel Stehule <pavel.stehule@gmail.com>
Re: psql command for bytea output Andrew Dunstan <andrew.dunstan@pgexperts.com>
Re: psql command for bytea output Pavel Stehule <pavel.stehule@gmail.com>
Re: psql command for bytea output Tom Lane <tgl@sss.pgh.pa.us>
Re: psql command for bytea output Pavel Stehule <pavel.stehule@gmail.com>
Re: psql command for bytea output Andrew Dunstan <andrew.dunstan@pgexperts.com>
Re: psql command for bytea output Tom Lane <tgl@sss.pgh.pa.us>
Re: psql command for bytea output Andrew Dunstan <andrew.dunstan@pgexperts.com>
2011/10/21 Andrew Dunstan : > On 10/21/2011 02:44 PM, Pavel Stehule wrote: >> >> 2011/10/21 Andrew Dunstan: >>> >>> A few months ago, I blogged about the difficulty of getting psql to put a >>> bytea datum into a file. See >>> >>> . >>> 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? >> >> isn't better to fix current tools to work well with bytea? >> > > Such as? some like \copy ... to foo.bin format binary a COPY API can do it - it support a binary load and binary dump, so just there is missing interface Pavel > > cheers > > andrew > >
В списке pgsql-hackers по дате отправления