How to safely discard golang database/sql pooled connections, for example when they point to a read-only replica? How to safely discard golang database/sql pooled connections, for example when they point to a read-only replica? postgresql postgresql

How to safely discard golang database/sql pooled connections, for example when they point to a read-only replica?