Repository navigation
Releases
Version 2.14.0
Driver
Changed
-
[BREAKING] A SCRAM login refuses a server asking for more than
scramMaxIterationsiterations, a new property
defaulting to 100 000, as pgjdbc does since CVE-2026-42198. A role stored under a higherscram_iterationsneeds the
property raised. -
[BREAKING]
NetworkExceptionReasonkeepsCONNECTION_ERROR,CONNECTION_TIMEOUTandCONNECTION_CLOSED. A
connection the server ended or closed, or whose stream broke, raisesCONNECTION_ERRORwith how indetailson every
call, not only the first.CONNECTION_CLOSEDis left to a connection closed or aborted on the client,
abort(executor)included.CONNECTION_ABORTEDandCONNECTION_CLOSED_BY_PEERare gone. -
[BREAKING] Writing a registered data class as its composite fails with
MappingException(REQUIRED_ATTRIBUTE_MISSING)when the type has an attribute the class has no property for, where it
was sent asNULLand wiped the attribute. A class meant to writeNULLthere needs a nullable property. -
[BREAKING] Reading a data class reflectively fails with
MappingException(REQUIRED_ATTRIBUTE_MISSING)at a
nullable property with nothing to read it from, where it read asnull. A property that may be absent needs= null. -
[BREAKING] A
CancellationExceptionor anInterruptedExceptionfrom the block offorEachRow,forEachObject
orforEachFieldis rethrown as it came, where it arrived asMappingException(BLOCK_FAILED). -
[BREAKING] Setting
client_encodingto anything but UTF-8 closes the session with
NetworkException(CONNECTION_ERROR). -
[BREAKING] A
TypeExceptionraised while a value is converted or encoded arrives as itself, with itspath,
rather than inside aMappingExceptionor aCodecException. A value inside an array, a composite, aROW(...)or
a range whose type has no codec, or one declared throughwithPgTypeas a domain over such a type, raises
TypeException(MISSING_CODEC)naming it, as a column of it does. -
Reading a data class whose primary constructor is private fails with a
MappingException(CONVERSION_ERROR)that names
the class and points to a converter of its own, where the message came from kotlin-reflect. -
toDataMap()sends an empty list or set as an array of the element class its property declares, as anArrayalready
went, where it neededwithPgType.
Fixed
-
A private data class is read reflectively, where building one failed with
MappingException(CONVERSION_ERROR). -
A collection or an array sent as a type that is not an array fails with
TypeException(NOT_A_CONTAINER), where it was
TYPE_NOT_FOUND. -
The
@namescan andSqlScript.splitend a--comment at a lone\r, as PostgreSQL does, where they read on to
the next\n. -
A
timestamptzortimestampfrom 294247 to 294276 AD reads and writes as itself, where it read back around 290 000
BC and failed to write. -
A
networkTimeoutset whileisValid()or a listener loop runs is kept, where they put back the value they had
found. -
close()andabort()during another thread's exchange no longer fail it with anArrayIndexOutOfBoundsException. -
A login is refused with
InitializationException(PROTOCOL_VIOLATION)when the server sends anything but
authentication, an error or a protocol negotiation beforeAuthenticationOk, as libpq does. A server that went
straight toReadyForQuerygot pastchannelBinding=require. -
Before
AuthenticationOk, a message over 30 000 bytes is refused withInitializationException(PROTOCOL_VIOLATION)
before anything is allocated for it, as libpq bounds it. -
A message whose contents do not agree with its length word, or a
DataRowthat does not agree with its
RowDescriptionor has none, breaks the connection withNetworkException(CONNECTION_ERROR), or fails the login
beforeAuthenticationOk. -
loginTimeoutbounds the connect and the login together, as documented, where it bounded each read, so a server
sending a byte at a time held the thread for as long as it liked. -
A
noticeHandlerClassNameoroauthTokenProviderClassNamenaming a class of the wrong type is refused before the
class is initialized, the hole pgjdbc closed as CVE-2022-21724.
pg-model
Changed
- [BREAKING] The date and time serializers are named after the column they write:
LocalDateAsPgDateSerializer,
LocalDateTimeAsPgTimestampSerializer,InstantAsPgTimestamptzSerializerandLocalTimeAsPgTimeSerializer, where
they wereLocalDateWithInfinitySerializer,LocalDateTimeWithInfinitySerializer,InstantWithInfinitySerializer
andLocalTimeWithEndOfDaySerializer. Only code that names one changes.
Migrations
Fixed
lockTimeoutbounds only the wait for the migration lock, where the migrations ran under it too.
Version 2.13.0
Project
Added
- Every page of the API reference links back from its header to the landing page.
examples/console-app, a command-line census on the client, the scanner and the migrator with no framework around
them.
Changed
examples/spring-appkeeps senators instead of users and has a README with its endpoints and how to run it.
POST /senatorstakes an emptycountryEstates, where it answered with a 500.
Driver
Added
-
OAuth login: under an
oauthline ofpg_hba.confthe driver sends, only over TLS, the bearer token
anOAuthTokenProvidergives, set asoauthTokenProvideroroauthTokenProviderClassName. It never
asks the server for an issuer or a scope. -
TOKEN_PROVIDER_FAILEDinInitializationExceptionReason: the token provider could not be loaded, threw, or gave
something that is not a bearer token. -
sslNegotiation = DIRECT(sslnegotiation=direct) starts the TLS handshake without anSSLRequest, as libpq does:
a round trip less for every connection and cancel request. It needssslModeofREQUIREor stronger.
Changed
-
[BREAKING]
UNSUPPORTED_PASSWORD_ENCRYPTIONis renamedWITHHELD_CREDENTIALS, since it covers an OAuth token
as well as a password. -
[BREAKING]
TransactionManager, the type ofsession.transaction, is renamedTransactionBlocks. Only code
that names the type changes. -
[BREAKING] Three loggers have new names under
io.github.octaviusframework.driver, which still configures the
lot:initialization.OctaviusConnectionFactory, where it wasjdbc.OctaviusConnectionFactory.transaction.TransactionControlfor transactions and savepoints, which were underjdbc.OctaviusConnection.transaction.TransactionBlocks, where it wastransaction.TransactionManager.
Fixed
-
A SCRAM login with a password that SASLprep changes succeeds, such as one with a no-break space, a soft hyphen or a
full-width letter. It failed withSERVER_REJECTED_CREDENTIALS. -
A SCRAM server-first message with an iteration count below one or a bad salt fails the login with
PROTOCOL_VIOLATION, where it escaped as anIllegalArgumentException. -
The server's final SCRAM signature is compared in constant time, as libpq has compared it since CVE-2026-6478. The
old comparison leaked nothing a server could use. -
A row, a composite or a
ROW(...)read as aMapwhose value type is not nullable fails with
MappingException(REQUIRED_ATTRIBUTE_MISSING)at aNULL, which the map used to hold. -
A bound of a
RangeorMultiRangeparameter goes through the converter chain as an array element does. A bound
of a class the subtype does not take fails withMappingException(NO_CONVERTER_FOUND), where it was a
CodecException. -
A failure converting a range bound, read or sent, has
lowerorupperon its path. -
A result converter that returns the wrong class for an array element fails with
MappingException(CONVERSION_ERROR),
where the caller got aClassCastExceptionat the first read. -
A connection refused TLS under
sslmode=requireor stronger no longer makes the server log an invalid startup
packet. -
A login that does not report
server_versionfails withMISSING_PROTOCOL_PARAMETER, so a server older than
PostgreSQL 18 behind a pooler that drops the parameter is refused. -
The
@namescan andSqlScript.split, which cuts migration scripts into statements, read dollar-quote tags outside
ASCII, a name ending inEbefore a literal, anE'...'literal continued on the next line and a name holding$
as PostgreSQL's lexer does.
Migrations
Fixed
migrate()logs no "already exists, skipping" notices for its history table, which every start after the first
logged atinfo.
Version 2.12.0
Project
Changed
- Dependencies move to their current releases: kotlinx.serialization 1.13.0, Spring Boot 4.1.2 in
driver-spring-integration, ClassGraph 4.8.200, kotlin-logging 8.0.7 and SLF4J 2.0.20.
Driver
Changed
-
[BREAKING] A parameter of a class that no converter claims and no codec encodes, such as an unregistered data
class or aMap, fails withMappingException(NO_CONVERTER_FOUND)naming the class, as it already did as a
composite attribute. -
[BREAKING] A side of a range is infinite exactly where its bound is
null.Range,rangeOf,
PgRange.createandContainerFactory.createRangeno longer takeisLowerInfiniteandisUpperInfinite, which
Rangestill has as properties, andisLowerNullandisUpperNullare gone. -
isLowerInclusivedefaults to whether there is a lower bound, sorangeOf(upperBound = 10)is(,10)and reads
back equal to itself. It defaulted totrue, which the server drops from an infinite side. -
[BREAKING] A digit stays in the word it follows wherever a name is converted to
snake_case, sob2bCustomer
maps tob2b_customer, where it wasb2_b_customer. Only a name with a lowercase letter right after a digit maps
differently; one mapped to the old form needs@PgNameor a renamed column.
Fixed
-
A row or a composite read as a
Mapwhose key type is notStringorAnyfails with
MappingException(CONVERSION_ERROR). It came back keyed by its names anyway, so the caller got a
ClassCastExceptionat the first key read. -
withPgType(PgStandardType)names its type inpg_catalog, so a type of the same name earlier on the search path
is no longer sent in its place. -
A
RangeorMultiRangesent as a type that is not a range or a multirange fails with
MappingException(CONVERSION_ERROR)caused byTypeException(NOT_A_CONTAINER), where the cause was
TYPE_NOT_FOUND. -
A parameter converter that returns a value its codec cannot take fails with
MappingException(CONVERSION_ERROR)
naming the converter and the class it returned.
Client
Changed
-
[BREAKING]
DynamicWriteStrategyis gone, withdynamicWriteStrategyonfromDataSourceand
fromSessionProviderandDynamicTypes.strategy. A registered class is written as adynamic_dtowithout
wrapping, as under the default mode;EXPLICIT_ONLYrefused that write. -
[BREAKING] A class registered both as a composite and as a dynamic type fails with
MappingException(CONVERSION_ERROR)where nothing declares which of the two it goes in as. Under the default mode
it went in as the composite, which adynamic_dtocolumn refused.withPgTypechooses. -
[BREAKING]
DynamicTypes.toDynamicDtois gone.withPgType("dynamic_dto", "public")sends a value as a
dynamic_dto, and anotherJsongoes in through
registerParameterConverter(db.dynamicTypes.parameterConverter(json)). -
[BREAKING] A
dynamic_dtopayload is keyed as the driver names columns, insnake_caseor by@PgName: the
defaultdynamicJsonisoctaviusSnakeCaseJson, where it wasoctaviusJson.
pg-model
Added
-
octaviusSnakeCaseJson:octaviusJsonwith each key named as the driver names a column, by@PgNameor in
snake_case.@PgNameis a@SerialInfoannotation, so a naming strategy of one's own can read it too. -
LocalTimeWithEndOfDaySerializer, inoctaviusSerializersModule: a@Contextual LocalTimethat is
LocalTime.MAXgoes into JSON as24:00:00, the end of the day atimecolumn holds, and24:00:00reads back.
Version 2.11.0
Driver
Added
Row.toObject<T>()maps a row already in hand ontoT, asfetchObject<T>()maps one.
Changed
-
[BREAKING]
Map.toDataObject()is gone. Instead of the map, read the class withfetchObject<T>()or
Row.toObject<T>(), which also convert the values wheretoDataObjectonly checked their types. -
[BREAKING]
toDataMap()takes only a data class and raisesInvalidOperationException(INVALID_ARGUMENT)for
any other.ReflectionCache.getOrCreateDataObjectMetadatarefuses the same way.
Fixed
- A private property of a data class's primary constructor is written as a composite attribute and goes into the map
oftoDataMap(), as it is read, where both failed.
Client
Added
TransactionPlanstarts its own queries with the same builders a client hands out, so code that builds a plan
needs no client. Such a query runs only as a step.
Changed
-
[BREAKING]
plan.addandTransactionStepare gone: a step's terminal adds the step to the plan and returns
itsStepHandle.asStep()is called insidewith(plan) { }orplan.apply { }. -
A
StepHandleprints no step number, where it printed the index it was created at, which afteraddPlanis not
where its step sits. Failures name a step by where it sits in each plan.
Fixed
- Every step of a
TransactionPlanruns in the transactionexecuteTransactionPlanopened or joined, whichever
client its query was built on. A step built on another client committed by itself, and a later failure did not
roll it back.
Version 2.10.0
Driver
Added
-
TypeDictionary.getBaseType(oid)returns the type under a domain, through every domain stacked on another, and
the type itself for anything else. -
PermissionDeniedException.dbDetailandhintcarry the server's detail and hint, and its log block prints them.
They were only inserverErrorMessage. -
An anonymous
ROW(...)of alternating keys and values reads into the data class asked for, each property from the
value under its name and each value keeping its own type, with nothing registered at any depth, where it raised
MappingException(NO_CONVERTER_FOUND).
Changed
-
A composite reads into the data class asked for with nothing registered, at any depth, where it raised
MappingException(NO_CONVERTER_FOUND)until the class went throughregisterAutoComposite. Writing the class
and reading the composite asAnystill need the registration. -
[BREAKING]
PermissionDeniedExceptionhas noschema,table,column,datatypeorroutine. PostgreSQL
fills none of the first four on a42501, androutinenamed a C function inside the server. -
[BREAKING] A statement the transaction does not allow where it arrived raises
TransactionStateException(MISPLACED_STATEMENT), which replacesNO_ACTIVE_TRANSACTIONandACTIVE_TRANSACTION.
A savepoint the transaction does not have (3B001) raises it too, where it wasUncategorizedDatabaseException,
and so dorollback(savepoint)andreleaseSavepoint(savepoint)on a savepoint that no longer exists. -
[BREAKING]
JsonElementand its subclasses are read only fromjson,jsonband a domain over either, where
any value decoding to aStringwas parsed as JSON. JSON in atextcolumn raises
MappingException(NO_CONVERTER_FOUND); cast it tojson/jsonbin the SQL, or read aString. -
[BREAKING] A
SELECT INTO STRICTthat found no row or several is
RoutineAssertionException(INCORRECT_RESULT_SIZE), which replacesNO_DATA_FOUNDandTOO_MANY_ROWS.
sqlStatesays which. -
[BREAKING] An
ERRORwith a class28SQLSTATE isUncategorizedDatabaseException, where it was
InitializationException(SERVER_REJECTED_CREDENTIALS). In an open session only a routine's ownRAISEsends
one; a refused login is stillInitializationException.
Fixed
-
A value inside an array or a composite whose type is a domain is converted as the type under it, as a column
already was. An enum,jsonbor a composite under a domain at that depth came back as
MappingException(CONVERSION_ERROR), aStringor a rawPgComposite. A converter'ssourceTypeis never a
PgType.Domain. -
A collection, a range or a registered composite declared through
withPgTypeas a domain over its type goes out
declared as the domain, where it failed withMappingException(CONVERSION_ERROR), and so does a composite
attribute over such a domain. APgContainerbuilt by hand goes out as the typewithPgTypenames, where it
ignored the name. -
An error or a notice that carries no non-localized severity, as the ones PgBouncer writes itself do, is read with
the severity it has, where it failed with aNullPointerException.
Version 2.9.0
Driver
Changed
-
[BREAKING]
noticeHandleronOctaviusPropertiesandOctaviusDataSourcetakes aNoticeHandlerinstance,
shared by every connection opened with it. The class name it took is nownoticeHandlerClassName, there and in
the URL. -
[BREAKING] A session used after
close()raisesInvalidOperationException(RESOURCE_CLOSED), where it raised
NetworkException(CONNECTION_CLOSED). Afterabort()it still raises that one. -
A statement allocates less, encoding its text once instead of twice.
Fixed
-
A transaction that carries on past a failed
Propagation.NESTEDmethod raises
NetworkException(CONNECTION_ABORTED)at its commit when the connection is gone, where it could raise Spring's
UnexpectedRollbackException. -
A class named by
noticeHandlerClassNameis found on a thread with no context class loader, where the connection
failed with anInitializationExceptioncaused by aNullPointerException. -
A server certificate that
VERIFY_CAorVERIFY_FULLrefuses isInitializationException(SSL_ERROR), where
SSLHandshakeExceptionleft the connection attempt as it was. -
An unchecked exception from a
DataSourceleavesDataSource.getOctaviusSession()as
InitializationException(CONNECTION_ERROR), as it leavesOctaviusTemplateandOctaviusJdbcTransactionManager,
where it came through as it was. -
A session whose connection went back before it closed refuses everything with
InvalidOperationException(RESOURCE_CLOSED), wherecreateNativeQueryran on the next borrower's connection.
Itsclose()leaves the connection alone and logs awarn, where it rolled back that borrower's transaction.
Client
Added
toCountQuery()on aselectreturns a query counting the rows it matches across every page, the total a paged
list shows beside the page.
Version 2.8.0
Driver
Changed
- [BREAKING]
update()onNativeQueryandNamedParameterQueryis nowexecuteUpdate().
Client
Changed
- [BREAKING]
update()on every builder andrawQuery, and afterasResult()andasStep(), is now
executeUpdate().db.update(table), which starts anUPDATE, keeps its name.
Version 2.7.0
Driver
Fixed
-
SqlScript.splitkeeps aBEGIN ATOMIC ... ENDbody whole inside itsCREATE FUNCTIONorCREATE PROCEDURE,
where it cut the body at every;. -
Closing a session opened with
getOctaviusSession(ownsConnection = false)leaves the transaction its connection
was already in for the connection's owner to end. It rolled that transaction back, and the owner'scommit()
then returned normally with the work gone. A transaction the session began itself is still rolled back. -
OctaviusTemplateunder a transaction manager with synchronization switched off leaves its work for Spring to
commit, where eachexecuterolled the transaction back as its session closed. -
A session
OctaviusTemplatebinds where there is synchronization but no transaction, as under
PROPAGATION_SUPPORTS, ends before Spring gives the connection back. Its reset ran on a connection already back
in the pool. -
Propagation.NESTEDinside a running transaction takes a savepoint and raises the same exceptions asREQUIRED,
where it threwInvalidOperationException(FEATURE_NOT_SUPPORTED)before the nested method ran. -
A commit whose connection goes during the
COMMITraisesNetworkException(CONNECTION_ABORTED), as one on a
connection already gone does, where it raisedTransactionSystemException. -
A pool that fails to start on the first borrow, for a reason with nothing of the driver's in it, leaves
OctaviusTemplateandOctaviusJdbcTransactionManagerasInitializationException(CONNECTION_ERROR). Hikari's
PoolInitializationExceptioncame through as it was, or insideCannotCreateTransactionException.
Changed
-
[BREAKING]
OctaviusTemplateandOctaviusJdbcTransactionManagerwrap nothing: the driver's exceptions and
your own leave them as they were thrown, where anOctaviusDataAccessExceptionstood around the driver's, and
around yours when one of the driver's was its cause.OctaviusDataAccessExceptionis gone: an
@ExceptionHandleror acatchnames the driver's type, orOctaviusExceptionfor all of them. -
[BREAKING]
OctaviusTemplatetakes no exception translator, and its constructor is
OctaviusTemplate(dataSource).OctaviusExceptionTranslatoris gone. -
[BREAKING]
OctaviusJdbcTransactionManagerextendsAbstractPlatformTransactionManagerinstead of
JdbcTransactionManager. It has none of the propertiesJdbcTransactionManagerandDataSourceTransactionManager
add -exceptionTranslator,lazyInit,databaseProductName,enforceReadOnly- and a
TransactionManagerCustomizertyped to either of them does not reach it. Boot'sspring.transaction.*still does. -
startPollingListenerLoopandstartInterruptibleListenerLoopthrowInvalidOperationException(CONNECTION_BUSY)
when a transaction is open on the server, where such a loop waited without ever receiving anything: PostgreSQL
holds notifications back until the listener's transaction ends. -
getMetaData()returns aDatabaseMetaDatathat answerssupportsSavepoints()withtrueand
getDatabaseProductName()withPostgreSQL, and throwsInvalidOperationException(FEATURE_NOT_SUPPORTED)from
every other method, wheregetMetaData()itself threw it. Actuator'sdbhealth indicator reportsUPwith no
connection-test-queryset, so adbHealthIndicatorbean declared in its place, as the docs advised, can go.
Migrations
Fixed
- A
.sqlmigration that defines a function or procedure with aBEGIN ATOMICbody runs, where the scan took the
body's closingENDfor aCOMMITand refused the file.
Version 2.6.0
Driver
Added
-
SessionTerminatedException: a session the server ended arrives as the reason the server gave -
TRANSACTION_TIMEOUT,IDLE_SESSION_TIMEOUT,ADMINISTRATOR_COMMANDorUNKNOWN. The next call on the session
names the same reason, and a pool evicts the connection. -
@Transactional(timeout = …)is enforced byOctaviusJdbcTransactionManager, and so are a
TransactionTemplate's timeout andspring.transaction.default-timeout.timeoutScopepicks the setting:
STATEMENT(statement_timeout, the default) orTRANSACTION(transaction_timeout). -
The auto-configured transaction manager takes Boot's transaction manager customizers, so the
spring.transaction.*properties and aTransactionManagerCustomizerbean reach it.
Changed
-
[BREAKING]
ExecutionAbortedExceptionReasonandExecutionAbortedException.reasonare gone:25P03and25P04
areSessionTerminatedException(TRANSACTION_TIMEOUT)now. Awhenover the enum or code readingreasonstops
compiling, and acatchofExecutionAbortedExceptionno longer sees either timeout. -
[BREAKING] A
FATALisSessionTerminatedExceptionwhatever its SQLSTATE, where anERRORwith the same code
routes as before:FATAL 57P01is not aDatabaseSystemException, norFATAL 40001aConcurrencyException. -
[BREAKING] A login the server refuses is
InitializationExceptionwhatever its SQLSTATE -
SERVER_REJECTED_CREDENTIALSfor class28,CONNECTION_ERRORwith the code insqlStatefor the rest. -
A
SQLExceptionWrapperover a terminated session chains a next exception with SQLSTATE08006, so a pool evicts
the connection at once rather than at its next validation. -
Each exchange reads what the server sent since the last one before writing anything, so a
FATALthat arrived
while the session sat idle is reported without the statement being sent. -
OctaviusJdbcTransactionManagerstays quiet on a rollback that finds the connection gone, where the rollback's
failure replaced the application's exception. -
[BREAKING]
writeToCopyreports a row the server rejected rather than sending the next chunk, and the
InputStreamoverload ofcopyInstops reading its input there. AcatcharoundendCopy()alone no longer sees a
row rejected mid-transfer. -
[BREAKING] The auto-configured transaction manager stands back from any
TransactionManagerthe application
declares, as Boot's does, a reactive one included. An application with a reactive one has to declare Octavius's
itself. -
[BREAKING] An unqualified type name the search path does not reach is refused, naming the schemas that have it,
where the driver took it from the one schema defining it. A registration or awithPgTypename without its schema
fails where the path does not reach it. -
[BREAKING] No temporary type is in the catalog, a temporary table's row type among them. A whole row of a
temporary table now fails when the result is described; cast it to a permanent composite. -
[BREAKING] A codec declaring OID
0is refused byregisterCodec, with
InvalidOperationException(INVALID_ARGUMENT). A registration declaring0throws where it used to pass. -
A data class mapped reflectively allocates about half as much read, and as much as a hand-written converter
written as a composite.
Fixed
-
A
FATALis reported as itself, where the driver reported the closed connection after it, or waited for the
close for good under the default socket timeout. A failed write reports it too on a plain connection, and so does
a listener loop the server ends. -
Closing a pooled session over a broken connection lets the pool evict the connection. The pool went on counting
it as borrowed, so a single socket timeout exhausted a pool of one. -
cancelCopy()on a connection that has gone does nothing, so thecopyIn/copyOutoverloads that cancel on
failure report the failure, not the cancel's. -
A
transactionTimeoutholds under atransaction_timeoutdefault set on the database, the role or the session,
where it was ignored. -
With several
DataSourcebeans the Spring auto-configuration builds on the@Primaryone, and with none primary
contributes nothing, instead of failing the startup. -
The auto-configured transaction manager can be injected as
OctaviusJdbcTransactionManagerby a bean created
before it. -
[BREAKING] The JDBC
Statementfails in aSQLExceptionWrapper, as the connection does, so Spring's script
runner recognizes the failure:spring.sql.init.continue-on-errorcarries on past it, and without it the failure
names its script and statement. Acatchof the driver's exception around aStatementno longer sees it;
wrappedExceptionholds it. -
A server certificate signed with RSASSA-PSS is hashed for channel binding with the digest in the signature's
parameters, as the server hashes it: over SHA-384 or SHA-512 a login underchannelBinding=preferfailed. -
A server certificate signed with Ed25519 or Ed448 is refused before the SCRAM exchange, under
channelBinding=preferas underrequire, withInitializationException(UNSUPPORTED_MECHANISM)naming
channelBinding=disable. -
[BREAKING] An unqualified type name resolves to the type the server picks for it, the reported
search_pathbeing
read as the server reads it:$user,pg_catalogfirst unless listed, unquoted names folded. A type of your own
named like a built-in one -money,point- now resolves to the built-in where no schema is given, and a schema
named after the user is searched where$userstands. -
[BREAKING] A result converter registered under a sealed class is offered every class below it, as a codec for a
sealed class already was: one underPgIntervalwas never asked about aninterval. Such a converter is now asked
ahead of those underAny::class.
Client
Changed
- [BREAKING] A login the server refuses is thrown under
dbResult,transactionResultandasResult, as every
session that could not be obtained is. AFailurebranch that handled53300or57P03no longer sees them.
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.