From: Noah Misch <noah@leadboat.com>
To: cherio@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15695: Failure to restore a dump, ERROR: operator does not exist: public.hstore = public.hstore
Date: Sun, 11 Aug 2019 23:22:16 -0700
Message-ID: <20190812062216.GA2929668@rfd.leadboat.com> (raw)
In-Reply-To: <15695-9ddb5735cf6dd931@postgresql.org>
References: <15695-9ddb5735cf6dd931@postgresql.org>
On Fri, Mar 15, 2019 at 09:20:38PM +0000, PG Bug reporting form wrote:
> I am exporting DB from 10.6 and importing into 10.7 and an UPDATE rule fails
> to restore. I have a view with a rule that starts like this
>
> CREATE OR REPLACE RULE table_view__upd__rul AS ON UPDATE
> TO schema.table_view
> DO INSTEAD (
> UPDATE sch.tab
> SET
> updated_at = NEW.updated_at,
> updated_by = NEW.updated_by,
> hstore_field = NEW.hstore_field
> WHERE id = OLD.id
> AND
> (
> OLD.updated_at IS DISTINCT FROM NEW.updated_at OR
> OLD.updated_by IS DISTINCT FROM NEW.updated_by OR
> OLD.hstore_field IS DISTINCT FROM NEW.hstore_field
> );
> ....
> pg_restore: [archiver (db)] could not execute query: ERROR: operator does
> not exist: public.hstore = public.hstore
> LINE 3: ...ISTINCT FROM (new.updated_by)::text) OR (old.hstore_field IS
> DISTINC...
>
> with an arrow pointing to "old.hstore_field IS -->DISTINC..."
> This looks like a bug to me :(
It is a bug:
https://www.postgresql.org/message-id/flat/ffefc172-a487-aa87-a0e7-472bf29735c8%40gmail.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noah@leadboat.com, cherio@gmail.com
Subject: Re: BUG #15695: Failure to restore a dump, ERROR: operator does not exist: public.hstore = public.hstore
In-Reply-To: <20190812062216.GA2929668@rfd.leadboat.com>
References: <15695-9ddb5735cf6dd931@postgresql.org> <20190812062216.GA2929668@rfd.leadboat.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox