CHANGES 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. In 4.2.0
  2. * Support for R16 was completely dropped. Maps are now used internally instead of proplists
  3. * Nested `record` datatype decoding bug, introduced in 4.0.0, was fixed
  4. * Added tsrange, tstzrange, daterange types
  5. * Passwords are obfuscated before they sent to connection process. This is to avoid plain
  6. DB passwords to be dumped to SASL crash log
  7. * Password can be provided as a fun: `fun ( () -> iodata() )`
  8. * `platform_define` macroses were simplified. It's now possible to build epgsql even without
  9. rebar on all supported OTP versions
  10. In 4.1.0
  11. * Fix Erlang 21 `get_stacktrace/0` warnings
  12. * Fix broken backward-compatibility in `bpchar` datatype
  13. * Fix compatibility issues between the newest rebar3 and Erlang R16
  14. In 4.0.1
  15. * Minor build bug fixed
  16. In 4.0.0
  17. Changes:
  18. * Make epgsql commands pluggable (see pluggable_commands.md).
  19. Now we are not limited only by API functions provided by epgsql (equery/squery/prepared_query etc),
  20. but may create own commands as a plugins. Still, understanding of PostgreSQL network protocol needed
  21. to be able to do so.
  22. * Make epgsql datatype encoding/decdoding pluggable (see pluggable_types.md).
  23. Now we are able to add or tweak codecs for existing as well as custom PostgreSQL
  24. datatypes (like datetime, varchar, enum, arrays etc).
  25. XXX: Highly recommend to add `{codecs, []}` option to your epgsql:connect/X calls if you don't use
  26. PostGIS and hstore datatypes: this will reduce connection setup time.
  27. * epgsql internals had a huge refactoring (4,000 additions and 1,750 deletions for ~5500 LOC project).
  28. Code now is much more modular, documented and have a lot of internal typespecs. Performance
  29. improvements are also expected.
  30. * Now we try to use iolists as much as possible and avoid binary and string concatenations when ever possible.
  31. Expect noticeable performance improvements for large BYTEA / TEXT / VARCHAR / JSON / JSONB etc fields.
  32. * Extended and documented epgsql:with_transaction/3.
  33. Now it's possible to preserve original exception's stacktrace, finally!
  34. * macaddr and macaddr8 datatypes support added
  35. * Float datatype support was extended with `nan`, `minus_infinity`, `plus_infinity`
  36. * elvis code style check was added to our travis pipeline
  37. * Brand-new PostgreSQL 10 scram-sha-256 auth method added
  38. (see https://www.postgresql.org/docs/10/static/auth-methods.html#AUTH-PASSWORD and
  39. https://www.postgresql.org/docs/current/static/sasl-authentication.html)
  40. * A lot of typespecs were rewritten and lots of internal typespecs were added
  41. Incompatibilities:
  42. * Some unexpected performance issues may appear, but we expect performance improvements, especially
  43. for a large result sets (when a lot of rows are returned by a query) and for large string/json/blob
  44. query parameters
  45. * Undocumented epgsql:update_type_cache/2 API was changed
  46. * A lot of typespecs were updated. Some typespecs were deprecated or moved from epgsql.erl to other
  47. modules. So, some new dialyzer warnings might pop-up
  48. * Some new error messages might be returned, especially from epgsql:connect/X functions
  49. * Memory consumption per-connection might slightly grow because we maintain per-connection OID<->codec
  50. mapping table, which might be quite big in some cases. This also may produce bigger error_logger
  51. reports in case of epgsql connection process crashes.
  52. * Some exported .hrl files have been changed. #column{} and #statement{} record definitions were extended.
  53. * PostGIS users might be affected by cleanup of ewkb.erl and epgsql_geometry.hrl
  54. * Streaming replication users should pay extra attention. No tests were broken, but a lot of
  55. modifications were made to this code.
  56. * Passing integer / atom / float as a value of a text / varchar / bytea query parameter is now
  57. deprecated (so, `epgsql:equery(C, "SELECT $1::text", [my_atom])` will still work but is not recommended)
  58. * Redshift and CockroachDB users might expirience some problems. Please, report bugs!
  59. In 3.4.0
  60. * Use rebar3 as default build and test tool
  61. * Move tests to common test; launch test postgresql server from Erlang
  62. * Compatibility with Erlang 20
  63. * `ssl_options` connection option fixed
  64. * New types: int8range and int4range
  65. In 3.3.0
  66. * Streaming replication protocol support (epgsql may act like PostgreSQL slave)
  67. https://github.com/epgsql/epgsql/blob/devel/streaming.md
  68. * Connection options now may be passed as map()
  69. * More error extra data fields returned in #error{extra}
  70. http://www.postgresql.org/docs/current/interactive/protocol-error-fields.html
  71. * Prefer non-localized severity in #error{severity} when available
  72. * Added `set_notice_receiver/2` function to dynamically change receiver for asynchronous notifications
  73. * Asynchronous notifications receiver may be set to registered process name (atom)
  74. * `get_cmd_status/1` function added
  75. * Fixed return value of `DELETE ... RETURNING ..` in case when 0 rows were deleted
  76. (now returns `{ok, 0, Columns, []}` instead of `{ok, 0}`)
  77. * TCP socket implicitly closed when epgsql connection process terminates
  78. * Some typespecs fixed
  79. In 3.2.0:
  80. * #error.codename (more readable errors)
  81. * Redshift support (by allowing dynamic typecache update fail)
  82. * Aggregate small binary packets to one in epgsql_sock (network performance improvement)
  83. * Handle situations, when server initiate connection close
  84. * prepared_query APIs (useful when you need to execute one query many times with different parameters)
  85. * array of records type support
  86. * jsonb type support
  87. In 3.1.1:
  88. * It dialyzes happily now
  89. In 3.1.0:
  90. * Deal with int4range type.
  91. In 3.0.0:
  92. * Renamed everything to use the epgsql namespace.