Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703242 - dev-db/postgresql-12.1 client failing to connect to postgresql-12.1 server (patch)
Summary: dev-db/postgresql-12.1 client failing to connect to postgresql-12.1 server (p...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-12-17 21:52 UTC by Karl Hakimian
Modified: 2020-05-29 02:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
client patch (0001-Allow-multiple-ssl-gss-negotiation-attempts.patch,3.31 KB, patch)
2019-12-17 21:54 UTC, Karl Hakimian
Details | Diff
Server patch (0002-libpq-Retry-after-failed-ssl-gss-negotiation.patch,5.57 KB, patch)
2019-12-17 21:54 UTC, Karl Hakimian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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?