Repository navigation
Version 2.5.0
Driver
Added
-
Several servers in one URL, chosen among the way
libpqdoes -jdbc:octavius://db1:5432,db2,db3:5433/curia,
or the same list inserverNameor ahostparameter - withtarget_session_attrsand
load_balance_hosts=random. -
The servers of one list share one type catalog, and a server of another cluster is passed over with a
warn.
Changed
-
Every address a host name resolves to is tried, not only the first.
-
An IPv6 address without a port reads as an address in a URL, unbracketed -
jdbc:octavius://::1/curia- not
as the host:on port 1. -
[BREAKING] One composite or enum type name for two classes is refused, and so is one class under two names, with
InvalidOperationException(INVALID_ARGUMENT)- and an enum registered again with other conventions. The same
registration again changes nothing. -
An enum registered with a schema is read as
Anyahead of one registered without, as a composite already was. -
A transaction's
BEGINgoes out with its first statement in one write, terms included: arequired { }
around one statement costs two round trips instead of three.
Fixed
-
A cancel request goes to the address its connection reached, not to its host name resolved again.
-
A port in the URL's address that is not a whole number is refused instead of being ignored.
-
reloadTypes()re-reads the catalog its session reads afterGlobalCatalogStore.removeCatalog, not the one
that took the dropped one's place.
Client
Added
-
InsertQuery.overriding(OverridingValue.SYSTEM)andUSER, renderingOVERRIDING … VALUE. -
SelectQuery.window(definitions), rendering aWINDOWclause. -
onConflict { onColumns(…, where = predicate) }, rendering a partial unique index's predicate.
Changed
- [BREAKING]
SelectQuery.forUpdate(of, mode)andLockWaitModeare gone, replaced bylocking(clause), which
takes the locking clause as SQL.