Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Define binary transfer for custom types dynamically (#2554) #2556

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

sebasbaumh
Copy link
Contributor

  • Get existing oids for binary transfer of custom types from QueryExecutor
  • Add new oids for binary transfer of custom types to QueryExecutor
  • Unit test to make sure oids are correctly set

#2554

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Does ./gradlew autostyleCheck checkstyleAll pass ?
  3. Have you added your new test classes to an existing test suite in alphabetical order?

@vlsi
Copy link
Member

vlsi commented Jun 25, 2022

This sounds like a wrong level of abstraction to me. I do not understand what do you want to achieve

@sebasbaumh
Copy link
Contributor Author

This sounds like a wrong level of abstraction to me. I do not understand what do you want to achieve

This pull request only complements the already existing API.
I first created a ticket for it (#2554) and I would like to clarify my goal here.

Currently it is possible to add custom types for binary transfer to a connection by using the connection properties while creating the connection. This works for some cases, but unfortunately not for all.

Actually to do this you need to know the oid of the type before setting the connection properties.
But usually this oid varies between different databases as it depends on the other types added before it.
You can easily check that using this SQL on different databases: SELECT oid,typname FROM pg_type ORDER BY typname; for custom types added by modules like PostGIS.

The second issue is more severe: If you use an enterprise application server like WildFly, you do not open new connections in your application. The application server maintains a connection pool and injects connections into the different applications. So you are not able to set these properties for your application only, but the administrator needs to do that and he needs to look up the oids per database, which would be a big hassle.

In the existing API there are already functions for setting the oids to be sent or received binary on the QueryExecutor: QueryExecutor.setBinaryReceiveOids and QueryExecutor.setBinarySendOids.
But calling them will replace all the already set oids, especially the PostgreSQL internal ones here.
Therefore I created functions for adding single oids without removing the already set ones: addBinaryReceiveOid and addBinarySendOid.

Additionally I also added functions for getting the currently set oids: getBinaryReceiveOids and getBinarySendOids, which could be used to determine if the oid was already added.

@vlsi
Copy link
Member

vlsi commented Jun 27, 2022

QueryExecutor is driver-private class, and I do not understand what are you going to achieve

@sebasbaumh
Copy link
Contributor Author

QueryExecutor is driver-private class, and I do not understand what are you going to achieve

Just to clarify my intentions:
I am working on postgis-java-ng, which provides the geometry types used by PostGIS.
Therefore I already have to work with the PostgreSQL JDBC internals, for example to add the custom data types using PGConnection.addDataType.
My goal is to support binary transfers as well and also in scenarios like application servers.
And if the connection is not set up by the user (but by the application server) he can call registerDataTypes on the DriverWrapper.

If I know it is a PostgreSQL connection, I am able to use these classes and can add the oids for custom types.
I tested this using QueryExecutor.setBinaryReceiveOids, which worked.
But I explicitly do not want to interfere with any oids the user might have set on the connection.
Using a library should not change any other configurations.

So can you please explain to me, what exactly is the issue with complementing the existing function for setting the oids with two functions for adding a single oid and getting the already set oids?
What negative impact would this have on pgjdbc?

These are all internals, but that is exactly were I come from here - the whole postgis-java-ng implementation is providing types based on PGObject in PostgreSQL ;-)

@davecramer
Copy link
Member

The problem is that you are elevating QueryExecutor to being a supported API. The fact that it is currently public does not mean we support it to be used in Applications or 3rd party libraries.

@sebasbaumh
Copy link
Contributor Author

So what could be a solution for that? Push it up to PGConnection like the data type handling?
And is there some tag or something to see supported API? Your javadoc just lists everything publicly visible.

To me it seemed a less intrusive change to just enhance QueryExecutor to not only be able to set oids, but also to get all oids or add a single oid.
Its like providing a getter when there already is a setter - which might be good for testing anyway ;-)
Currently binary support looks a little bit unfinished to me and I would like to improve that.
One could even expect to just set a flag while calling PGConnection.addDataType to enable binary support - without looking up oids themselves (as there is already a type cache in the code, which could help in that.

I am aware that the core API might change and I will need to adjust my library accordingly.

But I also see that it might benefit the user, if geometries are parsed from the byte data and not converted to a string and parsed back as byte data. And this data can be quite large if a lot of vertexes are used in lines.
We can have millions of points, lines and polygons in a table that should be parsed as fast as possible with low resource usage.

@vlsi
Copy link
Member

vlsi commented Jun 27, 2022

But I also see that it might benefit the user, if geometries are parsed from the byte data and not converted to a string and parsed back as byte data. And this data can be quite large if a lot of vertexes are used in lines.

Would you please suggest an end-to-end test case?
The tests you add here exercise low-level private API only, and I am afraid that API is not really useful for the end-users.

I agree binary support is worth improving, however, exposing "enable/disable" on a connection level looks like exposing an error-prone API. I would rather activate binary transfer whenever a relevant codec is registered.

@davecramer
Copy link
Member

And is there some tag or something to see supported API? Your javadoc just lists everything publicly visible.

In general we support the official java.sql.* API
additionally I would include any classes which implement the api so PgConnection, however the deeper you go the less likely we would consider any extensions to the java.sql API to be supported.

The reason for this is that if we rewrite the underlying implementation we really don't want to be committed to supporting anything other than the official java.sql API

Every extension adds a support burden to the project.

@sebasbaumh
Copy link
Contributor Author

@vlsi and @davecramer I see both your points, thank you for clarifying this.

At first I just wanted to go for implementing PgBinaryObject on the classes I use for reading the custom types.
But I noticed that even after preparing a SELECT statement and executing it more than 10 times, I would not be provided with binary data.
Finally I found that I need to explicitly ask for binary data by providing the oid of the type to be received as binary.
This is where all started ;-)

From a design point of view I totally support your idea of only supporting the plain java.sql API.
For me it would be enough to implement PGBinaryObject and sending/receiving binary data if not explicitly forbidden by the configuration.

So ideally I would go for adding the custom type to the connection and in the background automatically enabling binary transfer for it if it implements PGBinaryObject.
Do you think this is feasible? I saw that there already is a TypeInfoCache, which has information about the oids though it is only used in the background of PgDatabaseMetaData and supplied by the PgConnection.

I would basically register binary types when PgConnection.addDataType gets called and the type is implementing PGBinaryObject.

@davecramer
Copy link
Member

I would basically register binary types when PgConnection.addDataType gets called and the type is implementing PGBinaryObject.

This seems more rational to me

@sebasbaumh
Copy link
Contributor Author

I would basically register binary types when PgConnection.addDataType gets called and the type is implementing PGBinaryObject.

This seems more rational to me

So we should definitely go for that.

I will try to setup an end-to-end test case, I just need some help with that:
If I use the types for PostGIS, we need to have the postgis extension installed in PostgreSQL and we also need a lot of additional classes from postgis-java-ng.
And all the PostGIS types are defined using functions in C in the extension.
I would not want to do that for a simple test case that runs inside pgjdbc.

Instead for testing I would like to have a simple custom datatype in PostgreSQL, which I can write binary data to and read it back.
Something like bytea, but defined as custom type in PostgreSQL.
But how could I define such a simple test data type using CREATE TYPE without using functions in an extension? Can you maybe help me with that?

@davecramer
Copy link
Member

Well I think you can create a single type that has binary transfer for the test. That said yes we would have to figure out how to get that installed on the server

@sebasbaumh
Copy link
Contributor Author

I created a separate commit in the pull requests for these changes:
For types implementing PGBinaryObject I automatically try to enable binary transfer.
If the oid of the type is defined as BINARY_TRANSFER_DISABLE property, I do not enable binary transfer. That allows the user to override the new behavior.
And I added a property to cache this disabled types in the connection (which is null if no types are disabled), because it needs to be checked each time a type is added.
And don't worry, we can rebase/squash the commits later on, when we know how to go on.

Now I need to create an according unit test and this seems to be difficult:
According to the PostgreSQL documentation I create a user defined type like that.
But I don't know how I could define it without having C functions in place for handling it.
Because that would make creating the test much more complex, except if I could reuse some existing functions.
Basically for testing I just need a custom type that gets mapped to my test implementation and in which I can store binary data.

Maybe for a test I could also just use a built-in type like point and overwrite the handler with my test type?
I am not sure if it works if I register a custom type to handle point, that my type gets called and not the built-in one - I have to check that.

@sebasbaumh
Copy link
Contributor Author

sebasbaumh commented Aug 4, 2022

I just squashed the existing commits and rebased them on the current master to be more in line with the current development.
It seems one of the AppVeyor builds fails because of some error not related to my code.

One of of the unrelated tests as an example:

FAILURE   0.1sec, org.postgresql.replication.LogicalReplicationStatusTest > testWriteLocationCanBeLessThanSendLocation
    org.gradle.internal.exceptions.DefaultMultiCauseException: Multiple Failures (2 failures)
    	org.postgresql.util.PSQLException: FATAL: number of requested standby connections exceeds max_wal_senders (currently 3)
    	java.lang.NullPointerException: <no message>
        at org.junit.vintage.engine.execution.TestRun.getStoredResultOrSuccessful(TestRun.java:196)
        at org.junit.vintage.engine.execution.RunListenerAdapter.fireExecutionFinished(RunListenerAdapter.java:226)
        at org.junit.vintage.engine.execution.RunListenerAdapter.testFinished(RunListenerAdapter.java:192)
        at org.junit.vintage.engine.execution.RunListenerAdapter.testFinished(RunListenerAdapter.java:79)
        at org.junit.runner.notification.SynchronizedRunListener.testFinished(SynchronizedRunListener.java:87)
        at org.junit.runner.notification.RunNotifier$9.notifyListener(RunNotifier.java:225)
        at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72)
        at org.junit.runner.notification.RunNotifier.fireTestFinished(RunNotifier.java:222)
        at org.junit.internal.runners.model.EachTestNotifier.fireTestFinished(EachTestNotifier.java:38)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:372)
        Suppressed: org.postgresql.util.PSQLException: FATAL: number of requested standby connections exceeds max_wal_senders (currently 3)
            at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676)
            at org.postgresql.core.v3.QueryExecutorImpl.readStartupMessages(QueryExecutorImpl.java:2788)
            at org.postgresql.core.v3.QueryExecutorImpl.<init>(QueryExecutorImpl.java:174)
            at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:290)
            at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
            at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
            at org.postgresql.Driver.makeConnection(Driver.java:434)
            at org.postgresql.Driver.connect(Driver.java:291)
            at java.sql.DriverManager.getConnection(DriverManager.java:664)
            at java.sql.DriverManager.getConnection(DriverManager.java:208)
            at org.postgresql.test.TestUtil.openDB(TestUtil.java:414)
            at org.postgresql.test.TestUtil.openReplicationConnection(TestUtil.java:354)
            at org.postgresql.replication.LogicalReplicationStatusTest.setUp(LogicalReplicationStatusTest.java:51)
        Suppressed: java.lang.NullPointerException
            at org.postgresql.replication.LogicalReplicationStatusTest.tearDown(LogicalReplicationStatusTest.java:60)
        Cause 1: org.postgresql.util.PSQLException: FATAL: number of requested standby connections exceeds max_wal_senders (currently 3)
            at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676)
            at org.postgresql.core.v3.QueryExecutorImpl.readStartupMessages(QueryExecutorImpl.java:2788)
            at org.postgresql.core.v3.QueryExecutorImpl.<init>(QueryExecutorImpl.java:174)
            at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:290)
            at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
            at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
            at org.postgresql.Driver.makeConnection(Driver.java:434)
            at org.postgresql.Driver.connect(Driver.java:291)
            at java.sql.DriverManager.getConnection(DriverManager.java:664)
            at java.sql.DriverManager.getConnection(DriverManager.java:208)
            at org.postgresql.test.TestUtil.openDB(TestUtil.java:414)
            at org.postgresql.test.TestUtil.openReplicationConnection(TestUtil.java:354)
            at org.postgresql.replication.LogicalReplicationStatusTest.setUp(LogicalReplicationStatusTest.java:51)
        Cause 2: java.lang.NullPointerException
            at org.postgresql.replication.LogicalReplicationStatusTest.tearDown(LogicalReplicationStatusTest.java:60)

This is the exact AppVeyor build: Environment: pg=9.6.11-1, PlatformToolset=v120
All the other AppVeyor builds seem to succeed.

@sebasbaumh
Copy link
Contributor Author

Okay that's it... 😄
I have cleaned up all my changes and then squashed everything into a single commit.

Furthermore I have added a new unit tests to not only verify the OIDs set to be transferred binary, but to also test the actual transfer from/to the database.
This works by using the PostgreSQL internal type point and handling it with a custom type.
In this test I put assertions in place to check that my type is used and also that it is transferred in binary mode from and to the database.

@sebasbaumh
Copy link
Contributor Author

@davecramer @vlsi Do you have any comments on this? Is there something I can do to progress forward/get this merged?

@davecramer
Copy link
Member

LGTM, @vlsi ?

if (oids != null) {
binaryOids.removeAll(getOidSet(oids));
return new HashSet<Integer>(getOidSet(oids));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be something like Collections.unmodifiableSet(...)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made it consistent with getBinaryEnabledOids, which also returns a modifiable set of values.
Actually this prevents the need to copy the set before modifying it (in the constructor of PgConnection the disabled OIDs are removed from the enabled OIDs to get the binary OIDs as a result).

@Test
public void testBinaryTransferOids() throws SQLException {
con = TestUtil.openDB();
QueryExecutor queryExecutor = ((PgConnection) con).getQueryExecutor();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PgConnection is driver-internal API. Client-facing APIs are java.sql.Connection and org.postgresql.PGConnection.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also a driver-internal test. The APIs for checking if a type is sent or received as binary are only available on QueryExecutor. So they can only be tested by either really sending and receiving them (what testCustomBinaryTypes) does or using the QueryExecutor API.
I added testBinaryTransferOids by intention to make sure the internal API works before a database is used in the other test. So it is possible to first test the API works and then to test if the database access works.

con = TestUtil.openDB();

PgConnection pgconn = (PgConnection) con;
QueryExecutor queryExecutor = pgconn.getQueryExecutor();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think you could "disable default binary transfer for POINT" via existing connection properties rather than using a private PgConnection + QueryExecutor APIs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be possible, but as stated above I need to use the internal API anyway.
So it is more flat/simple to just remove this single type without introducing possible side effects by setting additional connection properties.

@vlsi
Copy link
Member

vlsi commented Sep 6, 2022

Sorry it takes so long to review.
I think the approach with PGBinaryObject makes sense, however, I would like to refrain from using "driver-private APIs" (PgConnection, QueryExecutor)

@sebasbaumh , would you please check if org.postgresql.PGConnection#addDataType(java.lang.String, java.lang.Class<? extends org.postgresql.util.PGobject>) is enough for you?

@sebasbaumh
Copy link
Contributor Author

Sorry it takes so long to review. I think the approach with PGBinaryObject makes sense, however, I would like to refrain from using "driver-private APIs" (PgConnection, QueryExecutor)

@sebasbaumh , would you please check if org.postgresql.PGConnection#addDataType(java.lang.String, java.lang.Class<? extends org.postgresql.util.PGobject>) is enough for you?

No problem and thank you for reviewing this pull request.
I will update it to incorporate the changes and rebase it on the current master branch.

org.postgresql.PGConnection#addDataType(java.lang.String, java.lang.Class<? extends org.postgresql.util.PGobject>) would work for just adding a custom type. But there are more tests that ensure that the OIDs are correctly handled internally.
I would like to ensure the OIDs are really set instead of just testing the whole connection as a black box. This would even work if some default connection properties etc. change in the future. And it allows to identify what might go wrong on later changes instead of just telling the developer that the connection did no binary transfer.

After all the changes are mostly to internal APIs and do not need to be accessible by the user - but we need to test the internal APIs. So the tests need to be able to access them.

@sebasbaumh
Copy link
Contributor Author

I just rebased this pull request on the current master as there were merge conflicts after the latest commits to master.

@davecramer & @vlsi I incorporated most of your proposed changes and commented on the others.
Is there anything else I could do to help? It would be great to be able to use the binary transfer mode more easily.
So thank you very much for your feedback and review in advance.

@vlsi
Copy link
Member

vlsi commented Jan 13, 2023

@sebasbaumh , did you select Allow edits and access to secrets by maintainers?
I've tried to add a review commit to the branch, however, it says I can't do that.

See what I have in https://github.com/vlsi/pgjdbc/tree/pr2556 (e.g. vlsi@8a41067 )

@sebasbaumh
Copy link
Contributor Author

I have this setting enabled:
image

Maybe it is because the branch was rebased by me. I did that to make it easier to merge it, but it seems to not work good with active reviews.

So thank you and I will just look on your branch.

@vlsi vlsi force-pushed the binaryTransferForCustomTypes branch from 9121202 to a9e501f Compare January 20, 2023 09:23
@vlsi
Copy link
Member

vlsi commented Jan 20, 2023

Probably the last time I spelled the command wrong, it yielded "no permissions", so I assumed edits from maintainers was not enabled.

@sebasbaumh
Copy link
Contributor Author

@vlsi thank you very much for reviewing/adapting the pull request.
To me your changes look good and I would be happy to go on with that.

@vlsi
Copy link
Member

vlsi commented Jan 20, 2023

There's a failure caused by the new code:

        Suppressed: org.postgresql.util.PSQLException: ERROR: syntax error
            at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676)
            at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366)
            at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:356)
            at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:496)
            at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:413)
            at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:190)
            at org.postgresql.jdbc.TypeInfoCache.getPGType(TypeInfoCache.java:489)
            at org.postgresql.jdbc.PgConnection.addDataType(PgConnection.java:758)
            at org.postgresql.jdbc.PgConnection.initObjectTypes(PgConnection.java:772)
            at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:332)
            at org.postgresql.Driver.makeConnection(Driver.java:434)
            at org.postgresql.Driver.connect(Driver.java:291)
            at java.sql.DriverManager.getConnection(DriverManager.java:664)
            at java.sql.DriverManager.getConnection(DriverManager.java:208)
            at org.postgresql.test.TestUtil.openDB(TestUtil.java:388)
            at org.postgresql.test.TestUtil.openReplicationConnection(TestUtil.java:328)
            at org.postgresql.replication.CopyBothResponseTest.setUp(CopyBothResponseTest.java:66)

There's a chicken-and-egg issue:

  • the new code in PgConnection.addDataType attempts registering type for binary transfer
  • unfortunately, it does so by requesting oid based on the type name via typeCache.getPGType
  • getPGType launches a request to the database in case the type is not cached
  • DB request fails in case the DB does not support SELECT (e.g. if we talk to replication connection)

A quick workaround is to skip registering binary types when the connection is in "simple queries only", however, we probably should add extra checks to methods like typeCache.getPGType so they don't attempt issuing SELECT on replication connections.

@vlsi vlsi force-pushed the binaryTransferForCustomTypes branch from 5407fd2 to dd8b2f6 Compare January 20, 2023 14:02
@sebasbaumh
Copy link
Contributor Author

Good catch. I was wondering why it failed that test.
So PreferQueryMode.SIMPLE is only set if the connection is a replication connection? Or would I need to set additional properties for a normal connection to be able to automatically register binary transferable types?

@vlsi vlsi force-pushed the binaryTransferForCustomTypes branch from dd8b2f6 to cf99dbb Compare January 20, 2023 14:23
@vlsi
Copy link
Member

vlsi commented Jan 20, 2023

preferQueryMode=simple can be set for any connection.
However, with simple mode only binary transfer is not possible anyway, so there's no point in "registering type for binary transfer".

…ly (pgjdbc#2554)

The driver would automatically register types for binary transfer when calling
con.unwrap(PGConnection.class).addDataType(String, Class)

Fixes pgjdbc#2554
@vlsi
Copy link
Member

vlsi commented Jan 20, 2023

I just realized we should better implement the standard API java.sql.Connection#setTypeMap(java.util.Map<String,Class<?>> map) rather than add vendor-specific addDataType.
However, PGConnection.addDataType extension was there for ages, so it does not hurt making it a little bit better.

@vlsi vlsi force-pushed the binaryTransferForCustomTypes branch from cf99dbb to 9d2fb14 Compare January 20, 2023 14:48
@sebasbaumh
Copy link
Contributor Author

I just realized we should better implement the standard API java.sql.Connection#setTypeMap(java.util.Map<String,Class<?>> map) rather than add vendor-specific addDataType. However, PGConnection.addDataType extension was there for ages, so it does not hurt making it a little bit better.

Yes, maybe we could deprecate the vendor-specific function later when the standard API gets implemented.
And this would also simplify handling for connections that are proxies to the actual PGConnection (usually this is true for pooled connections).

@vlsi vlsi requested a review from davecramer January 20, 2023 17:33
@vlsi
Copy link
Member

vlsi commented Jan 20, 2023

I think this is mergeable. Of course, we might adjust oids used for testing, on the other hand, I doubt they will induce issues in the future.

Copy link
Member

@davecramer davecramer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

editorconfig is a gratuitous change but that's fine

@davecramer davecramer merged commit cb78d0e into pgjdbc:master Jan 31, 2023
@sebasbaumh
Copy link
Contributor Author

Thanks for merging! 👍

I will try to follow up @vlsi recommendation to implement this also in the standard API java.sql.Connection#setTypeMap(java.util.Map<String,Class<?>> map) in another pull request.
The benefit would then be to be able to use the standard API, which might even be possible in wrapped/proxied connections.
But it might take some time to check, how to do this in compliance with the JDBC specification and the existing type mappings in pgjdbc.

@sebasbaumh sebasbaumh deleted the binaryTransferForCustomTypes branch February 2, 2023 07:11
benkard added a commit to benkard/mulkcms2 that referenced this pull request Apr 2, 2023
This MR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [flow-bin](https://github.com/flowtype/flow-bin) ([changelog](https://github.com/facebook/flow/blob/master/Changelog.md)) | devDependencies | minor | [`^0.198.0` -> `^0.199.0`](https://renovatebot.com/diffs/npm/flow-bin/0.198.0/0.199.0) |
| [org.postgresql:postgresql](https://jdbc.postgresql.org) ([source](https://github.com/pgjdbc/pgjdbc)) | build | patch | `42.5.1` -> `42.5.2` |
| [io.quarkus:quarkus-maven-plugin](https://github.com/quarkusio/quarkus) | build | patch | `2.16.0.Final` -> `2.16.1.Final` |
| [io.quarkus:quarkus-universe-bom](https://github.com/quarkusio/quarkus-platform) | import | patch | `2.16.0.Final` -> `2.16.1.Final` |
| [org.apache.maven.plugins:maven-enforcer-plugin](https://maven.apache.org/enforcer/) | build | minor | `3.1.0` -> `3.2.1` |

---

### Release Notes

<details>
<summary>flowtype/flow-bin</summary>

### [`v0.199.0`](flow/flow-bin@0568b6e...05bb4e3)

[Compare Source](flow/flow-bin@0568b6e...05bb4e3)

### [`v0.198.2`](flow/flow-bin@0d01841...0568b6e)

[Compare Source](flow/flow-bin@0d01841...0568b6e)

### [`v0.198.1`](flow/flow-bin@2b180bb...0d01841)

[Compare Source](flow/flow-bin@2b180bb...0d01841)

</details>

<details>
<summary>pgjdbc/pgjdbc</summary>

### [`v42.5.2`](https://github.com/pgjdbc/pgjdbc/blob/HEAD/CHANGELOG.md#&#8203;4252-2023-01-31-143046--0500)

##### Changed

docs: specify that timeouts are in seconds and there is a maximum. Housekeeping on some tests fixes [#Issue 2671](pgjdbc/pgjdbc#2671) [MR #&#8203;2686](pgjdbc/pgjdbc#2686)
docs: clarify binaryTransfer and add it to README [MR# 2698](pgjdbc/pgjdbc#2698)
docs: Document the need to encode reserved characters in the connection URL [MR #&#8203;2700](pgjdbc/pgjdbc#2700)
feat: Define binary transfer for custom types dynamically/automatically fixes [Issue #&#8203;2554](pgjdbc/pgjdbc#2554) [MR #&#8203;2556](pgjdbc/pgjdbc#2556)

##### Added

fix: added gssResponseTimeout as part of [MR #&#8203;2687](pgjdbc/pgjdbc#2687) to make sure we don't wait forever on a GSS RESPONSE

##### Fixed

fix: Ensure case of XML tags in Maven snippet is correct [MR #&#8203;2682](pgjdbc/pgjdbc#2682)
fix: Make sure socket is closed if an exception is thrown in createSocket fixes [Issue #&#8203;2684](pgjdbc/pgjdbc#2684) [MR #&#8203;2685](pgjdbc/pgjdbc#2685)
fix: Apply patch from [Issue #&#8203;2683](pgjdbc/pgjdbc#2683) to fix hanging ssl connections [MR #&#8203;2687](pgjdbc/pgjdbc#2687)
fix - binary conversion of (very) long numeric values (longer than 4 \* 2^15 digits) [MR #&#8203;2697](pgjdbc/pgjdbc#2697) fixes [Issue #&#8203;2695](pgjdbc/pgjdbc#2695)
minor: enhance readability connection of startup params [MR #&#8203;2705](pgjdbc/pgjdbc#2785)

</details>

<details>
<summary>quarkusio/quarkus</summary>

### [`v2.16.1.Final`](https://github.com/quarkusio/quarkus/releases/tag/2.16.1.Final)

[Compare Source](quarkusio/quarkus@2.16.0.Final...2.16.1.Final)

##### Complete changelog

-   [#&#8203;30729](quarkusio/quarkus#30729) - Bump mariadb-java-client from 3.1.1 to 3.1.2
-   [#&#8203;30724](quarkusio/quarkus#30724) - Upgrade to Mutiny 1.9.0
-   [#&#8203;30722](quarkusio/quarkus#30722) - Set SameSite Strict only on OIDC session cookie
-   [#&#8203;30720](quarkusio/quarkus#30720) - Bump picocli.version from 4.7.0 to 4.7.1
-   [#&#8203;30719](quarkusio/quarkus#30719) - Bump jackson-bom from 2.14.1 to 2.14.2
-   [#&#8203;30715](quarkusio/quarkus#30715) - PanacheRepositoryResource should implement ReactiveRestDataResource
-   [#&#8203;30713](quarkusio/quarkus#30713) - Use MapProperty instead of Map
-   [#&#8203;30694](quarkusio/quarkus#30694) - Use newer API for creating tmp files in RESTEasy Reactive
-   [#&#8203;30692](quarkusio/quarkus#30692) - Bump htmlunit version to 2.70.0
-   [#&#8203;30686](quarkusio/quarkus#30686) - Don't fail send when a sse sink has been closed
-   [#&#8203;30681](quarkusio/quarkus#30681) - RESTEasy Reactive: SSE broadcaster fails if a sink has been closed
-   [#&#8203;30680](quarkusio/quarkus#30680) - Mark methods generatred by ASM transformations as synthetic
-   [#&#8203;30659](quarkusio/quarkus#30659) - Drop unused class GradleLogger
-   [#&#8203;30653](quarkusio/quarkus#30653) - Fix opening in IDE when more than IDE is running
-   [#&#8203;30652](quarkusio/quarkus#30652) - Match prometheus export metrics format
-   [#&#8203;30651](quarkusio/quarkus#30651) - ArC - use reflection fallback for PreDestroy callbacks if needed
-   [#&#8203;30649](quarkusio/quarkus#30649) - Document redirect options in RESTEasy Reactive
-   [#&#8203;30644](quarkusio/quarkus#30644) - Adjust source language absent in documentation code blocks
-   [#&#8203;30636](quarkusio/quarkus#30636) - PreDestroy hooks fail depending on method modifiers
-   [#&#8203;30635](quarkusio/quarkus#30635) - Introduce a `minimum-java-version` in the extension descriptor metadata
-   [#&#8203;30625](quarkusio/quarkus#30625) - OIDC authentication loop if Cookie Policy sameSite=strict
-   [#&#8203;30624](quarkusio/quarkus#30624) - Fix NPE obtaining a project map from Maven session
-   [#&#8203;30622](quarkusio/quarkus#30622) - Update invalid package in guide
-   [#&#8203;30612](quarkusio/quarkus#30612) - Fix import file name in redis-reference.adoc
-   [#&#8203;30609](quarkusio/quarkus#30609) - Qute generated resolvers - getters should take precedence over fields
-   [#&#8203;30593](quarkusio/quarkus#30593) - Qute validation - improve hierarchy indexing to fix assignability issues
-   [#&#8203;30591](quarkusio/quarkus#30591) - Resolve correct version when application version is unset
-   [#&#8203;30589](quarkusio/quarkus#30589) - Bump junit-bom from 5.9.1 to 5.9.2
-   [#&#8203;30585](quarkusio/quarkus#30585) - Bump Microsoft SQL Server JDBC driver to 11.2.3
-   [#&#8203;30584](quarkusio/quarkus#30584) - Update MS SQL JDBC driver to version 11.2.3
-   [#&#8203;30576](quarkusio/quarkus#30576) - Use accept header to choose metrics export format
-   [#&#8203;30574](quarkusio/quarkus#30574) - Handle empty source directory for included builds
-   [#&#8203;30569](quarkusio/quarkus#30569) - Add default implementation for REST Data interfaces
-   [#&#8203;30564](quarkusio/quarkus#30564) - Update security-openid-connect-client.adoc
-   [#&#8203;30559](quarkusio/quarkus#30559) - container-image extension running with kubernetes extension
-   [#&#8203;30557](quarkusio/quarkus#30557) - AWT: JniRuntimeAccess: freetypeScaler.c calls sun.font.FontUtilities
-   [#&#8203;30548](quarkusio/quarkus#30548) - Add a blurb about not supporting validation.xml in Quarkus
-   [#&#8203;30526](quarkusio/quarkus#30526) - RESTEasy classic servlets - add RoutingContext to active request context
-   [#&#8203;30515](quarkusio/quarkus#30515) - Native build fails with hibernate-orm-rest-data-panache + elytron-security-properties-file
-   [#&#8203;30513](quarkusio/quarkus#30513) - Limit application.properties lookup to main source set
-   [#&#8203;30510](quarkusio/quarkus#30510) - Simplify logic in create-app.adoc and allow to define stream
-   [#&#8203;30501](quarkusio/quarkus#30501) - Fix HibernateOrmCodestart
-   [#&#8203;30500](quarkusio/quarkus#30500) - Place extension with an unknown category in the uncategorized category
-   [#&#8203;30496](quarkusio/quarkus#30496) - Update documentation
-   [#&#8203;30490](quarkusio/quarkus#30490) - Avoid adding the exception itself as a suppressed exception
-   [#&#8203;30488](quarkusio/quarkus#30488) - Updates to Infinispan 14.0.6.Final
-   [#&#8203;30485](quarkusio/quarkus#30485) - Verify code flow access token first if no UserInfo precondition exists
-   [#&#8203;30479](quarkusio/quarkus#30479) - Define defaultValueDocumentation for builderImage
-   [#&#8203;30474](quarkusio/quarkus#30474) - Docs - default value of `quarkus.native.builder-image` is not shown
-   [#&#8203;30470](quarkusio/quarkus#30470) - Revert --enable-monitoring with no arguments support
-   [#&#8203;30460](quarkusio/quarkus#30460) - Bump kafka3.version from 3.3.1 to 3.3.2
-   [#&#8203;30453](quarkusio/quarkus#30453) - Gradle build failing w/ Quarkus 2.16.0
-   [#&#8203;30430](quarkusio/quarkus#30430) - Bump gizmo from 1.5.0.Final to 1.6.0.Final
-   [#&#8203;30429](quarkusio/quarkus#30429) - Bump Keycloak version to 20.0.3
-   [#&#8203;30426](quarkusio/quarkus#30426) - Fix redundant push when using buildx
-   [#&#8203;30424](quarkusio/quarkus#30424) - Building of container images with buildx causes build failures
-   [#&#8203;30423](quarkusio/quarkus#30423) - 2.15+ - Services dependent on libraries without classes no longer build
-   [#&#8203;30418](quarkusio/quarkus#30418) - Disable -D argument propagation in DevMojo
-   [#&#8203;30415](quarkusio/quarkus#30415) - Arc - Change Types#getTypeClosure so that superclasses and interfaces of producer types no longer throw on finding wildcards
-   [#&#8203;30412](quarkusio/quarkus#30412) - Arc - wildcard detection for producer methods/fields is too aggressive
-   [#&#8203;30410](quarkusio/quarkus#30410) - Introduce support for GraalVM `--enable-monitoring`
-   [#&#8203;30408](quarkusio/quarkus#30408) - Warning: Option 'AllowVMInspection' is deprecated and might be removed from future versions: Please use --enable-monitoring
-   [#&#8203;30405](quarkusio/quarkus#30405) - Quarkus Undertow doesn't work with blocking SecurityIdentityAugmentor
-   [#&#8203;30399](quarkusio/quarkus#30399) - Fix ElasticSearch Dev Services container restart
-   [#&#8203;30384](quarkusio/quarkus#30384) - Elasticsearch Dev Services restarts container on every auto-compile
-   [#&#8203;30368](quarkusio/quarkus#30368) - Allow Environment variables to populate property Maps in build time Config
-   [#&#8203;30354](quarkusio/quarkus#30354) - AWT `io.quarkus.awt.it.ImageGeometryFontsIT` native integration test failing with "GraalVM for Java 20" dev builds
-   [#&#8203;30347](quarkusio/quarkus#30347) - Bump junit-jupiter from 5.9.1 to 5.9.2
-   [#&#8203;30343](quarkusio/quarkus#30343) - Trailing comma is lost from prometheus metrics
-   [#&#8203;30335](quarkusio/quarkus#30335) - Add native compilation section to Hibernate Validator guide
-   [#&#8203;30332](quarkusio/quarkus#30332) - NPE in toString method for Processor Parameters in kafka-streams 3.3.1 version
-   [#&#8203;30275](quarkusio/quarkus#30275) - Inline Log category property doesn't work
-   [#&#8203;30208](quarkusio/quarkus#30208) - OIDC: 401 when access-token needs to be refreshed and user-info-required=true
-   [#&#8203;30179](quarkusio/quarkus#30179) - Add an owasp-check profile
-   [#&#8203;28781](quarkusio/quarkus#28781) - RESTEasy Reactive: document redirects
-   [#&#8203;24027](quarkusio/quarkus#24027) - Hibernate Validator does not use META-INF/validation.xml, it should work or be stated in the documentation.
-   [#&#8203;23002](quarkusio/quarkus#23002) - if more than two running IDE while launching 'x' gives error

</details>

<details>
<summary>quarkusio/quarkus-platform</summary>

### [`v2.16.1.Final`](quarkusio/quarkus-platform@2.16.0.Final...2.16.1.Final)

[Compare Source](quarkusio/quarkus-platform@2.16.0.Final...2.16.1.Final)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This MR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4yNC4wIiwidXBkYXRlZEluVmVyIjoiMzQuMjQuMCJ9-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants