You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature Request: Support for Replication Protocol Version 2
Is your feature request related to a problem? Please describe.
Currently, the go-pq-cdc library supports only replication protocol version 3. This limits its use to PostgreSQL server versions 15 and above. Introducing support for replication protocol version 2 would enable go-pq-cdc to function with PostgreSQL server version 14 as well, thus expanding its compatibility.
Describe the solution you'd like
Implement conditional handling for replication protocols based on the PostgreSQL server version:
After establishing a connection, determine the PostgreSQL server version.
If the server version is 15 or higher, continue using replication protocol version 3.
If the server version is between 14 and 15 (inclusive of 14), switch to using replication protocol version 2.
For any server version below 14, return an error indicating that the PostgreSQL version is unsupported.
By adding this logic, go-pq-cdc can support a wider range of PostgreSQL versions while ensuring appropriate protocol compatibility.
Feature Request: Support for Replication Protocol Version 2
Is your feature request related to a problem? Please describe.
Currently, the
go-pq-cdc
library supports only replication protocol version 3. This limits its use to PostgreSQL server versions 15 and above. Introducing support for replication protocol version 2 would enablego-pq-cdc
to function with PostgreSQL server version 14 as well, thus expanding its compatibility.Describe the solution you'd like
Implement conditional handling for replication protocols based on the PostgreSQL server version:
By adding this logic,
go-pq-cdc
can support a wider range of PostgreSQL versions while ensuring appropriate protocol compatibility.Sources
Protocol Versions: https://www.postgresql.org/docs/current/protocol-logical-replication.html#:~:text=Version%202%20is%20supported%20only,streaming%20of%20two%2Dphase%20commits.
go-pq-cdc protocol choose:
go-pq-cdc/pq/replication/replication.go
Line 27 in 0076edc
Tasks
The text was updated successfully, but these errors were encountered: