From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Barry Lind <blind(at)xythos(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Protocol V3 questions (StartupMessage and ParameterStatus) |
Date: | 2003-05-08 14:10:02 |
Message-ID: | 19963.1052403002@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Barry Lind <blind(at)xythos(dot)com> writes:
> Why does the StartupMessage not follow the documentation. It appears
> that an extra undocumented \0 is necessary after the parameter
> name/value pairs.
This is a doc bug; the terminator is supposed to be there. Thanks for
catching it.
> In looking at the ParameterStatus messages that I am getting back from
> the server, I have a question about the value being returned for
> datestyle. Since I am in the process of converting to the new protocol,
> I am still sending a query that issues a "set datestyle to 'ISO'". The
> ParameterStatus response I get from this query is: "DateStyle\0ISO with
> US (NonEuropean) conventions". I would have expected "DateStyle\0ISO".
Why? If you do "SHOW datestyle" you will get the full thing.
> It appears that the value reported by ParameterStatus isn't
> actually a valid value, since if you try to issue a set datestyle to
> 'ISO with US (NonEuropean) conventions' you get an error message.
Hmm. This is not ParameterStatus' fault per se: the SHOW routine for
DateStyle is producing a string that the SET routine for it won't take.
We could either alter the SHOW routine to produce "ISO, US" or alter
the SET routine to take the more verbose string. Or decree that it's
not a problem. Any opinions out there?
> It appears (although I haven't verified) that the value will change
> depending on language since I am assuming the words 'with' and
> 'conventions' will be translated.
I'm not sure about that. If so, it's definitely a problem, but I dunno
whether that string gets localized.
> PS. Tom, since your spam filter blocks my email, I can't send directly
> to you, thus I need to CC the hackers list. Can you whitelist me?
Done. Sorry, didn't realize there was a problem. But it's probably
good to get this stuff onto the list, as well.
BTW, the protocol doc changes that I committed yesterday evening are not
yet reflected in CVS tip, but I hope to commit fixes today that bring
the code back in sync with the docs.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-05-08 14:13:39 | Re: CIDR in pg_hba.conf |
Previous Message | Tom Lane | 2003-05-08 13:55:06 | Re: could not read transaction log directory ...? |