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

JDBC: Update to pgjdbc 42.7.5 #333

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

JDBC: Update to pgjdbc 42.7.5 #333

wants to merge 1 commit into from

Conversation

amotl
Copy link
Member

@amotl amotl commented Jan 15, 2025

About

pgjdbc 42.7.5 has been released yesterday. When running the stock jdbc test cases, errors can be observed on Jenkins after bumping manually per this PR.

References

Validating an automatic Dependabot update failed over here on GHA, apparently tripping test_getFunctions, test_getColumns, test_getPrimaryKeys, and test_getTables in JdbcMetaDataTest.java.

/cc @kneth, @seut

@kneth
Copy link
Contributor

kneth commented Feb 7, 2025

Issues encountered:

@amotl
Copy link
Member Author

amotl commented Feb 7, 2025

Thank you very much for your evaluations. Can you converge relevant flaws into corresponding tickets to improve CrateDB?

@hlcianfagna
Copy link

Regarding indnkeyatts, if crate/crate#17377 were addressed, perhaps we could submit a patch to
https://github.com/pgjdbc/pgjdbc/blob/b7bd9ffa25647ca0df76f7fa5b0883324ce79e45/pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java#L2345 using

(
SELECT count(*)
FROM information_schema.key_column_usage
JOIN pg_catalog.pg_class ci2 ON ci2.relname = key_column_usage.constraint_name
WHERE ci2.oid = i.indexrelid
)

?

@amotl
Copy link
Member Author

amotl commented Feb 19, 2025

Hi. Because this patch seems to possibly converge well (thank you, @kneth)...

and that issue has apparently been resolved (thank you, @hlcianfagna and @matriv)...

is there another patch to be staged to pgjdbc/pgjdbc, about the problems around indnkeyatts?

@hlcianfagna
Copy link

is there another patch to be staged to pgjdbc/pgjdbc, about the problems around indnkeyatts?

One option could be pgjdbc/pgjdbc#3533 , another option could be to raise a ticket in crate/crate to have indnkeyatts populated.

@kneth
Copy link
Contributor

kneth commented Feb 20, 2025

Dave Cramer says: "Please make sure this does not introduce a performance regression"

My question to @hlcianfagna, do you want me to try to evaluate the performance?

@hlcianfagna
Copy link

Dave Cramer says: "Please make sure this does not introduce a performance regression"

My question to @hlcianfagna, do you want me to try to evaluate the performance?

Let's maybe see what the timeline would be for crate/crate#17486 instead?

@kneth
Copy link
Contributor

kneth commented Mar 14, 2025

I have opened crate/crate#17616 as a fix to the issue with indnkeyatts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants