pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: bbadger@openskills.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: AsciiRow
Date: Mon, 16 Dec 2002 13:13:26 -0500
Message-ID: <19954.1040062406@sss.pgh.pa.us> (raw)
In-Reply-To: <3DFD1D35.8090907@BadgerSE.com>
References: <3DFD1D35.8090907@BadgerSE.com>

Bruce Badger <bruce_badger@BadgerSE.com> writes:
> The description of AsciiRow says that for each field it contains "the 
> value of the field itself in ASCII characters".  The description is here:
    
> http://postgresql.org/users-lounge/docs/7.3/postgres/protocol-message-formats.html

> Looking at the bytes comming over the Frontend/Backend protocol, 
> however,  it seems that the field is really always a String encoded 
> according to the settings in the database - is that right?

I believe this documentation's reference to ASCII shouldn't be taken
very literally; it really just means "text" (as opposed to some internal
binary representation) and is not meant to imply anything about one
character set encoding versus another.  You're correct that the data
would actually appear in the currently-selected client encoding,
assuming that the backend is configured to support encoding conversions.

			regards, tom lane



view thread (2+ messages)

Message-ID: <19954.1040062406@sss.pgh.pa.us>
Permalink:  ../19954.1040062406@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19954.1040062406@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, bbadger@openskills.com
  Subject: Re: AsciiRow
  In-Reply-To: <19954.1040062406@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