From: Christoph Haller <ch@rodos.fzk.de>
To: m_vijaykumar@hotmail.com
Cc: pgsql-sql@postgresql.org
Subject: Re: how to read bytea contents by using pgsql scripts
Date: Mon, 24 Nov 2003 11:26:02 MET
Message-ID: <200311241026.LAA05684@rodos> (raw)
In-Reply-To: <BAY2-F133mTVmr24ITR00008bb1@hotmail.com>
>
> Hi All,
> Is their any way to read the bytea contents by using pgsql script.
>
> Thanks & regards
> Vijay
>
> _________________________________________________________________
>
Not sure if that's what you are asking for but you can do e.g.
$PGSQLD/bin/psql -d <your-dbase-name> -f ./query2.txt > ./query2.res
./query2.txt has something like
select * from bytea_tab ;
then you'll find all non-printables in ./query2.res
properly escaped as octets as shown in Data Types - Binary Strings.
HTH
Regards, Christoph
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ch@rodos.fzk.de, m_vijaykumar@hotmail.com
Subject: Re: how to read bytea contents by using pgsql scripts
In-Reply-To: <200311241026.LAA05684@rodos>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox