Re: ERROR: commutator operator - is already the commutator of operator +
| От | Tom Lane |
|---|---|
| Тема | Re: ERROR: commutator operator - is already the commutator of operator + |
| Дата | |
| Msg-id | 3057808.1731859535@sss.pgh.pa.us обсуждение |
| Ответ на | ERROR: commutator operator - is already the commutator of operator + (shohorab hossain <shohorab23@gmail.com>) |
| Список | pgsql-bugs |
shohorab hossain <shohorab23@gmail.com> writes:
> Whenever I try to restore a dump database backup to PostgreSQL version
> 17.1, I receive the following error log. The dump is from PostgreSQL
> version 15.8.
> What is this error and how can I fix it?.
> pg_restore: error: could not execute query: ERROR: commutator operator - is
> already the commutator of operator +
v17 is complaining about a logically-inconsistent situation that
earlier versions did not notice. You have interval - numeric
claiming to be the commutator of numeric - interval, which seems
fine --- but according to this error message, numeric - interval
is claiming to be the commutator of interval + numeric. If these
operators have anything like the semantics their names suggest,
that commutator linkage is a bug in the operator's definition.
You need to get rid of it, or better adjust it to point to the
right operator, ie interval - numeric.
We don't have any syntax for adjusting the commutator link
once set, but maybe you could manually edit the dump file.
regards, tom lane
В списке pgsql-bugs по дате отправления: