Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 703242

Summary: dev-db/postgresql-12.1 client failing to connect to postgresql-12.1 server (patch)
Product: Gentoo Linux Reporter: Karl Hakimian <hyedad>
Component: Current packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED OBSOLETE    
Severity: normal CC: hydrapolic, jstein
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: client patch
Server patch

Description Karl Hakimian 2019-12-17 21:52:50 UTC
There is an upstream bug in 12.1 that keeps the 12.1 client from connecting to a 12.1 server on another machine.

Reproducible: Always

Steps to Reproduce:
1.start 12.1 server on machine a
2.From machine b psql -h a db
Actual Results:  
Returns error
psql: error: could not connect to server: FATAL:  unsupported frontend protocol 1234.5679: server supports 2.0 to 3.0

Expected Results:  
Should have connected

There are two patches from upstream that addresses this on both the client and the server. Applying the patches fixed the issue for me.
Comment 1 Karl Hakimian 2019-12-17 21:54:01 UTC
Created attachment 599976 [details, diff]
client patch
Comment 2 Karl Hakimian 2019-12-17 21:54:29 UTC
Created attachment 599978 [details, diff]
Server patch
Comment 3 Tomáš Mózes 2020-05-29 02:03:18 UTC
Probably obsolete with versions 12.2/12.3 in tree?