Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Remove code that improperly calls pool_unread#51

Open
atokhy wants to merge 1 commit intotreasure-data:masterfrom
atokhy:prestogres-master
Open

Remove code that improperly calls pool_unread#51
atokhy wants to merge 1 commit intotreasure-data:masterfrom
atokhy:prestogres-master

Conversation

@atokhy
Copy link

@atokhy atokhy commented May 9, 2016

Presto queries may result in outputs that contain multiple
\0 or NULL characters. As a result, a single error
message or notice may contain multiple \0 delimited
strings which would get read at once on invocation to
per_node_error_log(), which then attempts to 'unread'
the contents it just read. However, the pool_unread invocation
ends up unreading up to the first \0 character, and it
does not unread the full message, causing subsequent
calls to getting the postgres message kind to fail
as the kind ends up being a \0 character.

Presto queries may result in outputs that contain multiple
\0 or NULL characters.  As a result, a single error
message or notice may contain multiple \0 delimited
strings which would get read at once on invocation to
per_node_error_log(), which then attempts to 'unread'
the contents it just read.  However, the pool_unread invocation
ends up unreading up to the first \0 character, and it
does not unread the full message, causing subsequent
calls to getting the postgres message kind to fail
as the kind ends up being a \0 character.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants