lib / pq

Pure Go Postgres driver for database/sql
https://pkg.go.dev/github.com/lib/pq
MIT License
8.89k stars 906 forks source link

Fix #1031: concurrent map writes #1035

Closed bjornouderoelink closed 3 years ago

bjornouderoelink commented 3 years ago

This PR should fix a concurrent map writes bug by making the opts values map in different connections not reference the same underlying data. It should also fix the sslinline functionality by not deleting the necessary key(s) but instead not sending them to Postgres, allowing multiple connections to upgrade to SSL.

For more information, see the discussion in issue #1031.