CHANGELOG.md (5168B)
1 # 1.14.0 (February 11, 2023) 2 3 * Fix: each connection attempt to new node gets own timeout (Nathan Giardina) 4 * Set SNI for SSL connections (Stas Kelvich) 5 * Fix: CopyFrom I/O race (Tommy Reilly) 6 * Minor dependency upgrades 7 8 # 1.13.0 (August 6, 2022) 9 10 * Add sslpassword support (Eric McCormack and yun.xu) 11 * Add prefer-standby target_session_attrs support (sergey.bashilov) 12 * Fix GSS ErrorResponse handling (Oliver Tan) 13 14 # 1.12.1 (May 7, 2022) 15 16 * Fix: setting krbspn and krbsrvname in connection string (sireax) 17 * Add support for Unix sockets on Windows (Eno Compton) 18 * Stop ignoring ErrorResponse during SCRAM auth (Rafi Shamim) 19 20 # 1.12.0 (April 21, 2022) 21 22 * Add pluggable GSSAPI support (Oliver Tan) 23 * Fix: Consider any "0A000" error a possible cached plan changed error due to locale 24 * Better match psql fallback behavior with multiple hosts 25 26 # 1.11.0 (February 7, 2022) 27 28 * Support port in ip from LookupFunc to override config (James Hartig) 29 * Fix TLS connection timeout (Blake Embrey) 30 * Add support for read-only, primary, standby, prefer-standby target_session_attributes (Oscar) 31 * Fix connect when receiving NoticeResponse 32 33 # 1.10.1 (November 20, 2021) 34 35 * Close without waiting for response (Kei Kamikawa) 36 * Save waiting for network round-trip in CopyFrom (Rueian) 37 * Fix concurrency issue with ContextWatcher 38 * LRU.Get always checks context for cancellation / expiration (Georges Varouchas) 39 40 # 1.10.0 (July 24, 2021) 41 42 * net.Timeout errors are no longer returned when a query is canceled via context. A wrapped context error is returned. 43 44 # 1.9.0 (July 10, 2021) 45 46 * pgconn.Timeout only is true for errors originating in pgconn (Michael Darr) 47 * Add defaults for sslcert, sslkey, and sslrootcert (Joshua Brindle) 48 * Solve issue with 'sslmode=verify-full' when there are multiple hosts (mgoddard) 49 * Fix default host when parsing URL without host but with port 50 * Allow dbname query parameter in URL conn string 51 * Update underlying dependencies 52 53 # 1.8.1 (March 25, 2021) 54 55 * Better connection string sanitization (ip.novikov) 56 * Use proper pgpass location on Windows (Moshe Katz) 57 * Use errors instead of golang.org/x/xerrors 58 * Resume fallback on server error in Connect (Andrey Borodin) 59 60 # 1.8.0 (December 3, 2020) 61 62 * Add StatementErrored method to stmtcache.Cache. This allows the cache to purge invalidated prepared statements. (Ethan Pailes) 63 64 # 1.7.2 (November 3, 2020) 65 66 * Fix data value slices into work buffer with capacities larger than length. 67 68 # 1.7.1 (October 31, 2020) 69 70 * Do not asyncClose after receiving FATAL error from PostgreSQL server 71 72 # 1.7.0 (September 26, 2020) 73 74 * Exec(Params|Prepared) return ResultReader with FieldDescriptions loaded 75 * Add ReceiveResults (Sebastiaan Mannem) 76 * Fix parsing DSN connection with bad backslash 77 * Add PgConn.CleanupDone so connection pools can determine when async close is complete 78 79 # 1.6.4 (July 29, 2020) 80 81 * Fix deadlock on error after CommandComplete but before ReadyForQuery 82 * Fix panic on parsing DSN with trailing '=' 83 84 # 1.6.3 (July 22, 2020) 85 86 * Fix error message after AppendCertsFromPEM failure (vahid-sohrabloo) 87 88 # 1.6.2 (July 14, 2020) 89 90 * Update pgservicefile library 91 92 # 1.6.1 (June 27, 2020) 93 94 * Update golang.org/x/crypto to latest 95 * Update golang.org/x/text to 0.3.3 96 * Fix error handling for bad PGSERVICE definition 97 * Redact passwords in ParseConfig errors (Lukas Vogel) 98 99 # 1.6.0 (June 6, 2020) 100 101 * Fix panic when closing conn during cancellable query 102 * Fix behavior of sslmode=require with sslrootcert present (Petr Jediný) 103 * Fix field descriptions available after command concluded (Tobias Salzmann) 104 * Support connect_timeout (georgysavva) 105 * Handle IPv6 in connection URLs (Lukas Vogel) 106 * Fix ValidateConnect with cancelable context 107 * Improve CopyFrom performance 108 * Add Config.Copy (georgysavva) 109 110 # 1.5.0 (March 30, 2020) 111 112 * Update golang.org/x/crypto for security fix 113 * Implement "verify-ca" SSL mode (Greg Curtis) 114 115 # 1.4.0 (March 7, 2020) 116 117 * Fix ExecParams and ExecPrepared handling of empty query. 118 * Support reading config from PostgreSQL service files. 119 120 # 1.3.2 (February 14, 2020) 121 122 * Update chunkreader to v2.0.1 for optimized default buffer size. 123 124 # 1.3.1 (February 5, 2020) 125 126 * Fix CopyFrom deadlock when multiple NoticeResponse received during copy 127 128 # 1.3.0 (January 23, 2020) 129 130 * Add Hijack and Construct. 131 * Update pgproto3 to v2.0.1. 132 133 # 1.2.1 (January 13, 2020) 134 135 * Fix data race in context cancellation introduced in v1.2.0. 136 137 # 1.2.0 (January 11, 2020) 138 139 ## Features 140 141 * Add Insert(), Update(), Delete(), and Select() statement type query methods to CommandTag. 142 * Add PgError.SQLState method. This could be used for compatibility with other drivers and databases. 143 144 ## Performance 145 146 * Improve performance when context.Background() is used. (bakape) 147 * CommandTag.RowsAffected is faster and does not allocate. 148 149 ## Fixes 150 151 * Try to cancel any in-progress query when a conn is closed by ctx cancel. 152 * Handle NoticeResponse during CopyFrom. 153 * Ignore errors sending Terminate message while closing connection. This mimics the behavior of libpq PGfinish. 154 155 # 1.1.0 (October 12, 2019) 156 157 * Add PgConn.IsBusy() method. 158 159 # 1.0.1 (September 19, 2019) 160 161 * Fix statement cache not properly cleaning discarded statements.