CHANGES 9.7 KB

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