Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL version mismatch? #2

Open
fschulze opened this issue Nov 15, 2010 · 2 comments
Open

PostgreSQL version mismatch? #2

fschulze opened this issue Nov 15, 2010 · 2 comments

Comments

@fschulze
Copy link

Hi!

I just tried to use this, but I get the following with PostgreSQL 8.4.2. Also Python 2.6 doesn't have struct._compile anymore, it uses an internal cache.

  File "/Users/fschulze/Zope/jarn/bestform/bestform/buildout/src/pgproxy/pgproxy/protocol.py", line 57, in dataReceived
    done, extra = m.consume(data)
  File "/Users/fschulze/Zope/jarn/bestform/bestform/buildout/src/pgproxy/pgproxy/messages.py", line 52, in consume
    if not self.parse_header():
  File "/Users/fschulze/Zope/jarn/bestform/bestform/buildout/src/pgproxy/pgproxy/messages.py", line 100, in parse_header
    if not self.parse_special_header():
  File "/Users/fschulze/Zope/jarn/bestform/bestform/buildout/src/pgproxy/pgproxy/messages.py", line 193, in parse_special_header
    self.raise_unknown()
  File "/Users/fschulze/Zope/jarn/bestform/bestform/buildout/src/pgproxy/pgproxy/messages.py", line 119, in raise_unknown
    self.buffer.raw_value()[:200]))
exceptions.ValueError: Unknown FrontendMessage packet: '\x00\x00\x00\x08\x04\xd2\x16/'
@mcfunley
Copy link
Owner

Protocol might need updates for versions above PG 8.3, I haven't tested. I will take pull requests if you've got patches.

@ryanpetrello
Copy link

I'm experiencing the same problem on Postgres 9.0.4:

  File "/Users/ryan/dev/pictage/stable/pgproxy/pgproxy/protocol.py", line 56, in dataReceived
    done, extra = m.consume(data)
  File "/Users/ryan/dev/pictage/stable/pgproxy/pgproxy/messages.py", line 51, in consume
    if not self.parse_header():
  File "/Users/ryan/dev/pictage/stable/pgproxy/pgproxy/messages.py", line 99, in parse_header
    if not self.parse_special_header():
  File "/Users/ryan/dev/pictage/stable/pgproxy/pgproxy/messages.py", line 192, in parse_special_header
    self.raise_unknown()
  File "/Users/ryan/dev/pictage/stable/pgproxy/pgproxy/messages.py", line 118, in raise_unknown
    self.buffer.raw_value()[:200]))
exceptions.ValueError: Unknown FrontendMessage packet: '\x00\x00\x00\x08\x04\xd2\x16/'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants