pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
AsciiRow
2+ messages / 2 participants
[nested] [flat]

* AsciiRow
@ 2002-12-16 00:24  Bruce Badger <bruce_badger@BadgerSE.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Bruce Badger @ 2002-12-16 00:24 UTC (permalink / raw)
  To: pgsql-interfaces

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?

Thanks.




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: AsciiRow
@ 2002-12-16 18:13  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Bruce Badger <bruce_badger@BadgerSE.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2002-12-16 18:13 UTC (permalink / raw)
  To: bbadger@openskills.com; +Cc: pgsql-interfaces

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-12-16 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-16 00:24 AsciiRow Bruce Badger <bruce_badger@BadgerSE.com>
2002-12-16 18:13 ` Tom Lane <tgl@sss.pgh.pa.us>

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