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

PostgreSQL 17: ERROR: commutator operator = is already the commutator of operator = #7459

Open
df7cb opened this issue May 23, 2024 · 1 comment
Labels

Comments

@df7cb
Copy link
Contributor

df7cb commented May 23, 2024

rdkit is not compatible with PG 17 yet:

**** /tmp/autopkgtest.Rnc5Gt/tree/Code/PgSQL/rdkit/regression.diffs ****
diff -U3 /tmp/autopkgtest.Rnc5Gt/tree/Code/PgSQL/rdkit/expected/rdkit-91_1.out /tmp/autopkgtest.Rnc5Gt/tree/Code/PgSQL/rdkit/results/rdkit-91.out
--- /tmp/autopkgtest.Rnc5Gt/tree/Code/PgSQL/rdkit/expected/rdkit-91_1.out	2024-05-23 12:10:12.000000000 +0000
+++ /tmp/autopkgtest.Rnc5Gt/tree/Code/PgSQL/rdkit/results/rdkit-91.out	2024-05-23 13:22:31.278341481 +0000
@@ -4,181 +4,160 @@
 --
 SET client_min_messages = warning;
 \set ECHO none
+ERROR:  commutator operator = is already the commutator of operator =

See postgres/postgres@2b5154b

Full build/test log: https://pgdgbuild.dus.dg-i.net/job/rdkit-binaries-beta/architecture=amd64,distribution=sid/13/consoleText

@df7cb df7cb added the bug label May 23, 2024
@bjonnh-work
Copy link
Contributor

bjonnh-work commented Jun 12, 2024

CREATE OPERATOR @= (
    LEFTARG = mol,
    RIGHTARG = mol,
    PROCEDURE = mol_eq,
    COMMUTATOR = '=',
    NEGATOR = '<>',
    RESTRICT = eqsel,
    JOIN = eqjoinsel
);

This may be here. There are some issues with operators redefining commutators it seem:
https://www.postgresql.org/message-id/flat/ZTfL1G1fBPQHVPWV%40msg.df7cb.de#ce3801c084bcf05b6b976cb2d0e25b2d

Which seems to be what @= is doing trying to define itself as commutator to =.

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

No branches or pull requests

2 participants