CHANGES 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. In 4.6.1
  2. * Introduce `get_backend_pid` function #270
  3. * Fix dialyzer error in `get_parameter` #274
  4. In 4.6.0
  5. * Full OTP-24 compatibility #255, #262, #263
  6. * Implement `COPY .. FROM STDIN` sub-protocol (both binary and text formats) #248
  7. * Stick to rebar3_lint 0.2.0 (newer version had troubles working from
  8. non-default profile) #249
  9. * Pipelined and mixed api tests (better coverage of the features of
  10. `epgsqla` and `epgsqli` interfaces) #244
  11. * Add `ebin/` to the list of ignored directories in .gitignore #251
  12. * Fix `-if(?OTP_RELEASE ...)` (was missing question mark) #255
  13. * Do not format certain attributes of `State` on abnormal epgsql
  14. sock termination (common reason for OOM) #257
  15. * Make dialyzer warn about use of unknown types; fix some occurrences of such #259
  16. * Migrate from travis-ci to github actions; test on PostgreSQL 12 #262, #264
  17. * Introduce transaction_opts type #261
  18. In 4.5.0
  19. * Add support for `application_name` connection parameter #226
  20. * Execute request cancellation over TLS, when main connection is TLS as well #227
  21. * Handle skipped commands in execute_batch #228
  22. * Add sasl_prep implementation for validating passwords according to sasl specification #229
  23. * OTP-23 in CI #237
  24. * switch to `crypto:mac/4` since `crypto:hmac/3` is deprecated #239
  25. * Add `tcp_opts` connect option #242
  26. * Command API improvements #243
  27. In 4.4.0
  28. * Guards are now added to avoid silent integer truncation for numeric and
  29. numeric range datatype codecs. So, an attempt to encode 100000 as `int2`
  30. will now crash the connection instead of silently truncating it. #218
  31. * `epgsql{a,i}:cancel/1` API was documented. #224
  32. * Version of `execute_batch` that uses the same SQL query for each request
  33. in a batch. Very convenient for batch-inserts. #209
  34. * It's now possible to provide `#statement{}` to `prepared_query/3`. This way
  35. of calling it eliminates extra `describe` round-trip thus making it more
  36. efficient. #207
  37. * Representation of SQL `NULL` is now fully configurable. You can choose what
  38. set of Erlang terms should be interpreted as `NULL` and which term to use to
  39. represent `NULL`s received from database. #212
  40. * It's now possible to choose between 3 representations of a `hstore` datatype:
  41. map(), jiffy-style objects (default) and proplist. It can also take `map()` as
  42. input now. NULL value representation is also configurable. #217
  43. * Edocs build was fixed. Just run `rebar3 edoc` and reference documentation for
  44. all modules will be generated. But it's considered to be more "internal"
  45. documentation for those who want to learn more about epgsql internals or
  46. to do some hacking. It complements, but not replaces README. #214
  47. * `epgsql:connect` `timeout` option is more strict now - it limits TCP and SSL
  48. setup time as a whole. #223
  49. * Test coverage report was enabled in CI. We will fail the build if coverage
  50. falls below 55%. We hope to improve this metric over time. #208
  51. * We now send `Terminate` message to the server when doing graceful connection
  52. shutdown (as recommended by protocol). #219
  53. * We found that `describe(_, portal, _)` API was broken since release v4.0.0, but
  54. was not covered by tests. So now it was fixed and tests were added. #211
  55. * Error code to error name conversion code was updated (see `#error.codename`).
  56. Some new codes were added (mostly related to JSON datatypes) and one has changed.
  57. So, if you were matching over `#error.codename` being
  58. `invalid_preceding_following_size` you have to update your code. #210
  59. * `#column{}` record is now fully documented. It was extended to
  60. include `table_oid` and `table_attr_number` fields which point to the originating
  61. database table of this column (if any). #205
  62. * Extended timerange datatype support #204
  63. * Some minor typos, datatype and CI fixes #199 #201 #206 #221
  64. In 4.3.0
  65. * Erlang 22 compatibility is tested; support for Erlang 17 was dropped. Last
  66. version that supports Erlang 17 is 4.2.1 (#195)
  67. * Fixed some corner-case bug in streaming replication (#181)
  68. * It's now possible to set-up JSON encoder/decoder callback for json/jsonb
  69. datatypes (#197)
  70. * Performance micro-optimizations on hot paths (#177)
  71. * Use PostgreSQL 10 for Travis tests (#195)
  72. * Improved connection error handling (#183)
  73. * TLS certificates used in tests had expired (epgsql project is more than
  74. 10 years old!), so, new ones were created (#187)
  75. * Some typespecs fixed
  76. In 4.2.1
  77. * Bug fix for `epgsql:connect(proplist())`
  78. In 4.2.0
  79. * Support for R16 was completely dropped. Maps are now used internally instead of proplists
  80. * Nested `record` datatype decoding bug, introduced in 4.0.0, was fixed
  81. * Added tsrange, tstzrange, daterange types
  82. * Passwords are obfuscated before they sent to connection process. This is to avoid plain
  83. DB passwords to be dumped to SASL crash log
  84. * Password can be provided as a fun: `fun ( () -> iodata() )`
  85. * `platform_define` macros were simplified. It's now possible to build epgsql even without
  86. rebar on all supported OTP versions
  87. In 4.1.0
  88. * Fix Erlang 21 `get_stacktrace/0` warnings
  89. * Fix broken backward-compatibility in `bpchar` datatype
  90. * Fix compatibility issues between the newest rebar3 and Erlang R16
  91. In 4.0.1
  92. * Minor build bug fixed
  93. In 4.0.0
  94. Changes:
  95. * Make epgsql commands pluggable (see pluggable_commands.md).
  96. Now we are not limited only by API functions provided by epgsql (equery/squery/prepared_query etc),
  97. but may create own commands as a plugins. Still, understanding of PostgreSQL network protocol needed
  98. to be able to do so.
  99. * Make epgsql datatype encoding/decdoding pluggable (see pluggable_types.md).
  100. Now we are able to add or tweak codecs for existing as well as custom PostgreSQL
  101. datatypes (like datetime, varchar, enum, arrays etc).
  102. XXX: Highly recommend to add `{codecs, []}` option to your epgsql:connect/X calls if you don't use
  103. PostGIS and hstore datatypes: this will reduce connection setup time.
  104. * epgsql internals had a huge refactoring (4,000 additions and 1,750 deletions for ~5500 LOC project).
  105. Code now is much more modular, documented and have a lot of internal typespecs. Performance
  106. improvements are also expected.
  107. * Now we try to use iolists as much as possible and avoid binary and string concatenations when ever possible.
  108. Expect noticeable performance improvements for large BYTEA / TEXT / VARCHAR / JSON / JSONB etc fields.
  109. * Extended and documented epgsql:with_transaction/3.
  110. Now it's possible to preserve original exception's stacktrace, finally!
  111. * macaddr and macaddr8 datatypes support added
  112. * Float datatype support was extended with `nan`, `minus_infinity`, `plus_infinity`
  113. * elvis code style check was added to our travis pipeline
  114. * Brand-new PostgreSQL 10 scram-sha-256 auth method added
  115. (see https://www.postgresql.org/docs/10/static/auth-methods.html#AUTH-PASSWORD and
  116. https://www.postgresql.org/docs/current/static/sasl-authentication.html)
  117. * A lot of typespecs were rewritten and lots of internal typespecs were added
  118. Incompatibilities:
  119. * Some unexpected performance issues may appear, but we expect performance improvements, especially
  120. for a large result sets (when a lot of rows are returned by a query) and for large string/json/blob
  121. query parameters
  122. * Undocumented epgsql:update_type_cache/2 API was changed
  123. * A lot of typespecs were updated. Some typespecs were deprecated or moved from epgsql.erl to other
  124. modules. So, some new dialyzer warnings might pop-up
  125. * Some new error messages might be returned, especially from epgsql:connect/X functions
  126. * Memory consumption per-connection might slightly grow because we maintain per-connection OID<->codec
  127. mapping table, which might be quite big in some cases. This also may produce bigger error_logger
  128. reports in case of epgsql connection process crashes.
  129. * Some exported .hrl files have been changed. #column{} and #statement{} record definitions were extended.
  130. * PostGIS users might be affected by cleanup of ewkb.erl and epgsql_geometry.hrl
  131. * Streaming replication users should pay extra attention. No tests were broken, but a lot of
  132. modifications were made to this code.
  133. * Passing integer / atom / float as a value of a text / varchar / bytea query parameter is now
  134. deprecated (so, `epgsql:equery(C, "SELECT $1::text", [my_atom])` will still work but is not recommended)
  135. * Redshift and CockroachDB users might experience some problems. Please, report bugs!
  136. In 3.4.0
  137. * Use rebar3 as default build and test tool
  138. * Move tests to common test; launch test postgresql server from Erlang
  139. * Compatibility with Erlang 20
  140. * `ssl_options` connection option fixed
  141. * New types: int8range and int4range
  142. In 3.3.0
  143. * Streaming replication protocol support (epgsql may act like PostgreSQL slave)
  144. https://github.com/epgsql/epgsql/blob/devel/streaming.md
  145. * Connection options now may be passed as map()
  146. * More error extra data fields returned in #error{extra}
  147. http://www.postgresql.org/docs/current/interactive/protocol-error-fields.html
  148. * Prefer non-localized severity in #error{severity} when available
  149. * Added `set_notice_receiver/2` function to dynamically change receiver for asynchronous notifications
  150. * Asynchronous notifications receiver may be set to registered process name (atom)
  151. * `get_cmd_status/1` function added
  152. * Fixed return value of `DELETE ... RETURNING ..` in case when 0 rows were deleted
  153. (now returns `{ok, 0, Columns, []}` instead of `{ok, 0}`)
  154. * TCP socket implicitly closed when epgsql connection process terminates
  155. * Some typespecs fixed
  156. In 3.2.0:
  157. * #error.codename (more readable errors)
  158. * Redshift support (by allowing dynamic typecache update fail)
  159. * Aggregate small binary packets to one in epgsql_sock (network performance improvement)
  160. * Handle situations, when server initiate connection close
  161. * prepared_query APIs (useful when you need to execute one query many times with different parameters)
  162. * array of records type support
  163. * jsonb type support
  164. In 3.1.1:
  165. * It dialyzes happily now
  166. In 3.1.0:
  167. * Deal with int4range type.
  168. In 3.0.0:
  169. * Renamed everything to use the epgsql namespace.