pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Eugene E. <sad@bankir.ru>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: have you feel anything when you read this ?
Date: Tue, 4 Apr 2006 07:21:21 -0700 (PDT)
Message-ID: <20060404071118.C19036@megazone.bigpanda.com> (raw)
In-Reply-To: <44324AB6.2060104@bankir.ru>
References: <Pine.LNX.4.44.0603201522410.22894-100000@matrix.gatewaynet.com>
	<441EA0A7.8030601@bankir.ru>
	<200603201415.30719.peter_e@gmx.net>
	<442CC95C.1030700@bankir.ru>
	<20060331084503.W64402@megazone.bigpanda.com>
	<44324AB6.2060104@bankir.ru>


On Tue, 4 Apr 2006, Eugene E. wrote:

> Stephan Szabo wrote:
> > On Fri, 31 Mar 2006, Eugene E. wrote:
> >
> >
> >>Peter Eisentraut wrote:
> >>
> >>>Eugene E. wrote:
> >>>
> >>>
> >>>>the problem is: you'll get this four byte sequence '\000' _instead_
> >>>>of NUL-byte anyway.
> >>>
> >>>
> >>>What you seem to be missing is that PostgreSQL data can be represented
> >>>in textual and in binary form.  What you in psql is the textual form.
> >>>If you want the binary form you need to select it.  Then you can pass
> >>>the exact bytes back and forth.
> >>
> >>your sentence is not true.
> >>I can not select exact bytes even if i use BYTEA type
> >
> >
> > No, that is still using the textual form.  If you use PQexecParams and set
> > the last argument to show you want binary data, you should get binary
> > data.
>
> Documentation says:
> ===
> PQexecParams
>
>      Submits a command to the server and waits for the result, with the
> ability to pass parameters separately from the SQL command text.
> ===
>
> How should i use this func to change so-called "textual form" of a
> select-result to so-called "binary form" ?



view thread (47+ messages)  latest in thread

Message-ID: <20060404071118.C19036@megazone.bigpanda.com>
Permalink:  ../20060404071118.C19036@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20060404071118.C19036@megazone.bigpanda.com

 · 

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: sszabo@megazone.bigpanda.com, sad@bankir.ru, peter_e@gmx.net, achill@matrix.gatewaynet.com
  Subject: Re: have you feel anything when you read this ?
  In-Reply-To: <20060404071118.C19036@megazone.bigpanda.com>

* 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