Re: Wire protocol docs - Mailing list pgsql-hackers

From Abhijit Menon-Sen
Subject Re: Wire protocol docs
Date
Msg-id 20091013164146.GA24052@toroid.org
Whole thread Raw
In response to Wire protocol docs  (Dave Page <dpage@pgadmin.org>)
Responses Re: Wire protocol docs  (Dave Page <dpage@pgadmin.org>)
List pgsql-hackers
At 2009-10-13 17:25:15 +0100, dpage@pgadmin.org wrote:
>
> I cannot find anything that is obviously 'elsewhere' in the docs -
> does that need fixing, or do my searching skills need improving?

I don't know, but…

> *starts reading source code* :-)

Look at what fe-protocol3.c:build_startup_packet() does with its options
argument (and see fe-connect.c:EnvironmentOptions to see what is passed
to it). Basically, libpq sets some connection parameters to values taken
from the environment (e.g. client_encoding from PGCLIENTENCODING). What
the documentation you quoted is saying is that the wire protocol doesn't
know or care where the values came from.

-- ams


pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: COPY enhancements
Next
From: Dave Page
Date:
Subject: Re: Wire protocol docs