Files
floci/docs/services
TATSUNO “Taz” Yasuhiro 569f9f55e4 perf(build): replace quarkus-jdbc extensions with plain JDBC drivers (#3465)
* perf(build): replace quarkus-jdbc extensions with plain JDBC drivers

The RDS Data API and Redshift Data API open connections with
DriverManager. They never used Agroal, Narayana or the datasource
layer that quarkus-jdbc-mysql and quarkus-jdbc-postgresql pull in.
Depend on mysql-connector-j and postgresql directly and hand-supply
the native image config the extensions provided.

* perf(build): cut unused JDBC driver paths from the native image

Substitute driver code that cannot be reached against the databases
Floci provisions, mirroring what quarkus-jdbc-mysql did for JMX and
going a step further for authentication and multi-host URLs.

* perf(build): keep the MySQL cleanup thread disabled in JVM mode

quarkus-jdbc-mysql set com.mysql.cj.disableAbandonedConnectionCleanup
at startup in JVM mode as well as at native build time. The first
commit carried only the native build argument and a surefire copy, so
quarkus:dev and the JVM Docker image started Connector/J's abandoned
connection cleanup thread on the first MySQL Data API call. In dev mode
that thread is recreated with every restart and pins the old
classloader.

* fix(rdsdata): reject PostgreSQL result types the Data API does not support

Aurora PostgreSQL answers a result set that holds a point, interval,
money, box, circle, line, lseg, path or polygon column with
UnsupportedResultException and the message "The result contains the
unsupported data type POINT." Floci returned the driver's toString of
the value instead. Check the column type names before reading the rows
and raise the same error. json and jsonb stay supported, and a column
cast to text still reads as a string, which is the workaround AWS
documents.

* perf(build): drop the PGobject reflection entries

pgjdbc builds point, interval, money and the geometric types through
reflection only when a result set holds such a column. The Data API now
rejects those columns before reading a row, and json and jsonb values
are plain PGobject instances the driver creates directly, so none of
the ten entries can be reached.

* chore(rdsdata): name the tolerated ClassNotFoundException in OpenTelemetryUnavailable

* perf(build): keep PGInterval registered for the Redshift Data API

Redshift tables can hold INTERVAL YEAR TO MONTH and INTERVAL DAY TO
SECOND columns and the Redshift Data API returns them as strings. Floci
serves that path from a PostgreSQL container through pgjdbc, which
builds an interval value by reflection, so the entry stays. The Redshift
Data compat test now reads two interval columns on the native image.

* perf(build): keep the geometric reflection entries for the Redshift Data API

Redshift refuses point, box, circle, lseg, path and polygon as column
types but evaluates them in a select, and its Data API returns the
values as strings, checked on a real ra3.large cluster. Floci serves
that path through pgjdbc, which builds those values by reflection, so
the six entries stay. line stays out because Redshift rejects it, and
money never reaches PGmoney because pgjdbc reads it as a double.

The Redshift Data compat test selects those expressions and expects
the strings Redshift returned. JdbcDriverNativeSupportTest resolves
every registered class name.

* fix(redshiftdata): fail statements that produce line, json or jsonb like Redshift

Redshift has none of these types. A select that names one fails with
"ERROR: type "line" not yet implemented" or "ERROR: type "json" does
not exist", checked on a real cluster. The PostgreSQL container behind
Floci's Redshift evaluates them, so the Data API now checks the result
column types and fails the statement with the same text.
2026-09-13 20:08:25 -04:00
..
2026-05-10 11:53:31 -05:00
2026-08-21 00:09:04 -04:00
2026-09-02 11:39:10 -04:00