pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: CN LIOU <cnliou@graffiti.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: How To Get Bytea Data Instead Of Its Oid
Date: Thu, 19 Sep 2002 12:46:38 -0400
Message-ID: <26880.1032453998@sss.pgh.pa.us> (raw)
In-Reply-To: <20020919141116.13398.qmail@graffiti.net>
References: <20020919141116.13398.qmail@graffiti.net>

"CN LIOU" <cnliou@graffiti.net> writes:
> SELECT * FROM test LIMIT 1
> returns, I guess, the OID of c2 instead of the binary data to which the OID points. 

I don't think so...

regression=# create table test (c1 text,c2 bytea);
CREATE TABLE
regression=# insert into test values ('some text', 'some binary data \\000\\001');
INSERT 284058 1
regression=# select * from test;
    c1     |            c2
-----------+---------------------------
 some text | some binary data \000\001
(1 row)

I see no OID here.

Perhaps you should show us an example of what you are doing, rather than
your interpretation of what's going wrong.

			regards, tom lane



view thread (2+ messages)

Message-ID: <26880.1032453998@sss.pgh.pa.us>
Permalink:  ../26880.1032453998@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26880.1032453998@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, cnliou@graffiti.net
  Subject: Re: How To Get Bytea Data Instead Of Its Oid
  In-Reply-To: <26880.1032453998@sss.pgh.pa.us>

* 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