X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2A431D1D66C for ; Mon, 24 Nov 2003 12:48:10 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 80683-04 for ; Mon, 24 Nov 2003 08:47:42 -0400 (AST) Received: from hotmail.com (bay2-f43.bay2.hotmail.com [65.54.247.43]) by svr1.postgresql.org (Postfix) with ESMTP id 3A3F4D1D877 for ; Mon, 24 Nov 2003 08:47:39 -0400 (AST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 24 Nov 2003 04:47:42 -0800 Received: from 202.63.107.19 by by2fd.bay2.hotmail.msn.com with HTTP; Mon, 24 Nov 2003 12:47:42 GMT X-Originating-IP: [202.63.107.19] X-Originating-Email: [m_vijaykumar@hotmail.com] From: "vijaykumar M" To: ch@rodos.fzk.de Cc: pgsql-sql@postgresql.org Subject: Re: how to read bytea contents by using pgsql scripts Date: Mon, 24 Nov 2003 12:47:42 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 Nov 2003 12:47:42.0429 (UTC) FILETIME=[269860D0:01C3B289] X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/274 X-Sequence-Number: 16089 Hi Christoph, Thanks for ur reply. Let me explain my problem..., In one of my table.. we used bytea datatype for one field.. actaully i want to know the original stored contents (not in byte's) from that field by using pgsql scripts. Thanks in advance.. With regards Vijay >From: Christoph Haller >To: m_vijaykumar@hotmail.com (vijaykumar M) >CC: pgsql-sql@postgresql.org >Subject: Re: [SQL] how to read bytea contents by using pgsql scripts >Date: Mon, 24 Nov 2003 11:26:02 MET > > > > > 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 -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 > > >---------------------------(end of broadcast)--------------------------- >TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly _________________________________________________________________ MSN Hotmail now on your Mobile phone. http://server1.msn.co.in/sp03/mobilesms/ Click here.