CHANGES 5.5 KB

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