Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > Re: BUG: Protoc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 3710 of 4088
Post > Topic >>

Re: BUG: Protocol 3.0 ErrorResponse: Last 'null' characterseems odd

by tgl@[EMAIL PROTECTED] (Tom Lane) Apr 16, 2008 at 11:34 AM

<Eugen.Konkov@[EMAIL PROTECTED]
> writes:
>> It's part of the protocol, actually (yes, two NUL bytes -- first one
>> signals the end of the previous string, the second one signals the end
>> of the packet).

> The end of the packet can be obtained by packet length

It's designed that way intentionally to aid in error detection.  Parsing
the packet following its internal structure should end up exactly at the
end of the packet according to the length word.  Otherwise something's
corrupted.

There are some backwards-compatibility considerations here too (the
internal structure matches pre-V3 protocol which had no length word).
But it's a perfectly fine definition and we have absolutely no intention
of "fixing" it.

			regards, tom lane

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 5 Posts in Topic:
BUG: Protocol 3.0 ErrorResponse: Last 'null' character seems odd
Eugen.Konkov@[EMAIL PROTE  2008-04-16 17:09:05 
Re: BUG: Protocol 3.0 ErrorResponse: Last 'null' character
alvherre@[EMAIL PROTECTED  2008-04-16 10:27:18 
Re: BUG: Protocol 3.0 ErrorResponse: Last 'null' characterseems
Eugen.Konkov@[EMAIL PROTE  2008-04-16 17:42:07 
Re: BUG: Protocol 3.0 ErrorResponse: Last 'null' characterseems
tgl@[EMAIL PROTECTED] (T  2008-04-16 11:34:37 
Re: BUG: Protocol 3.0 ErrorResponse: Last 'null' characterseems
Eugen.Konkov@[EMAIL PROTE  2008-04-17 13:01:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 12:48:25 CDT 2008.