jeroenrinzema / psql-wire

PostgreSQL server wire protocol. Build your own server and start serving connections.
Mozilla Public License 2.0
109 stars 19 forks source link

Avoiding the dependency on libpq #39

Open kishaningithub opened 2 years ago

kishaningithub commented 2 years ago

As you might already know lib/pq is now in maintenance mode and psql-wire has a direct dependency on it.

From what is see the library is mainly being used for its Oid type can this be extracted out by someway?

jeroenrinzema commented 2 years ago

Thanks for reporting this! I was aware that lib/pq was in maintenance mode but did not have the time yet to look for alternatives. It seems to me that we would be able to replace the lib/pq/oid package with the oid types stored within pgx.

I noticed that we also have a dependency on lib/pq within our UNIT tests. This is something I would like to keep within the project since there are many projects out there still using the lib/pq driver. Feel free to open a MR to replace lib/pq oid types with the types stored within pgx.

jeroenrinzema commented 1 year ago

@kishaningithub feel free to pick up this issue if you would like to replace lib/pq.