pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Florian Weimer <fw@deneb.enyo.de>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Type OIDs
Date: Sat, 06 Jun 2009 11:15:02 -0400
Message-ID: <9704.1244301302@sss.pgh.pa.us> (raw)
In-Reply-To: <87r5xxwt3s.fsf@mid.deneb.enyo.de>
References: <877hztupfn.fsf@mid.deneb.enyo.de>
	<10172.1244057188@sss.pgh.pa.us>
	<87r5xxwt3s.fsf@mid.deneb.enyo.de>

Florian Weimer <fw@deneb.enyo.de> writes:
> By the way, the binary encoding would be pretty useful for BYTEA
> columns and parameters, but it's a pretty hefty burden for almost
> anything else.  Wouldn't it make sense to add a format flag which
> basically says "binary if it's BYTEA, otherwise text"?

What is "easy" is very much in the eye of the beholder --- I would think
for instance that a lot of people would consider integer columns to be
easy enough to deal with in binary format.  ntohl() isn't much of a
burden.

As far as output goes, I seem to recall some discussion awhile back of a
format value that would mean "send <some list of types> in binary" where
the specific list could be set by the client.  This would seem to me to
be a lot more useful and less klugy than hard-wiring bytea as a special
case.  On the input side it's much more questionable since (as you
noted) clients don't always have a solid grasp on which parameters
are which types.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <9704.1244301302@sss.pgh.pa.us>
Permalink:  ../9704.1244301302@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9704.1244301302@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-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, fw@deneb.enyo.de
  Subject: Re: Type OIDs
  In-Reply-To: <9704.1244301302@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