Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hx3iy-0002eZ-6X for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Aug 2019 06:22:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hx3iw-0000gz-RL for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Aug 2019 06:22:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hx3iw-0000di-Aw for pgsql-bugs@lists.postgresql.org; Mon, 12 Aug 2019 06:22:30 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hx3io-00064j-R5 for pgsql-bugs@lists.postgresql.org; Mon, 12 Aug 2019 06:22:29 +0000 Received: by mail-pf1-x442.google.com with SMTP id v12so1406391pfn.10 for ; Sun, 11 Aug 2019 23:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZVMp9wHiv3P+DnQ98QriBafrVpNCmcBJXl8s0KTlHfQ=; b=IzOBOjGFUwX0RA21efMbC0TN3hU6OCoANoDT8aMTIPZE5knUDS0qLIJD6Ar1HAvtni ZuX4WJFAxPj/YXPw6PrXHXmH3yZvraH37On4UU1GwX7Ug5HQklLj2V537I7b48zGuSXg 5J727nioaj4B/VYKrG0J3jw9+CRcBQsHkCQYs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZVMp9wHiv3P+DnQ98QriBafrVpNCmcBJXl8s0KTlHfQ=; b=R5mrsuBGAUOeqaAG4e21hU4t0V/GWNFDQtEB4RAPgJZ6rlBD+uTF9jpY4D4jbCmX/j nC0cv15/nUdsk3l+noBJppOR15LUzj5YdwNQHKsysi9Ec0x0lAWjAC6gfgONEE5JOJ7O dSVTMA+Td1ktF8Pm3gxpOOoiyENiJnWtEwbtpX9cwT6SnGgJeD1ELrtQcaTtBMLhthk+ KlO7u0bWR/drAJ70qUfbW5F1p5JlMdMy/Z2aC1LoGM5ky2ddgfbz6F2z386YgyyDSpDM AuSvi+V+B+b1M4bMjasWjsP0A4gkyzi2ggxqc6rPO6lFEf4GZmV9mQ6XwjmCveOdVUkI GZEA== X-Gm-Message-State: APjAAAVANt8HHwSN4zmSAgmjaFl6BQYrDuRRiWeWKw9kvCZiZ5d2Gww9 kn9IWY/ocGWUhMwbkVCmmZ29Gw== X-Google-Smtp-Source: APXvYqzvvYeCZsi0E0tatWq1UxcqqPyfhefwwL6pFjx6z+5kFClTTjyL9TpCvf+DfB4huC6pnjzTBA== X-Received: by 2002:a17:90a:bc0c:: with SMTP id w12mr20958887pjr.111.1565590939189; Sun, 11 Aug 2019 23:22:19 -0700 (PDT) Received: from rfd.leadboat.com (108-233-125-46.lightspeed.sntcca.sbcglobal.net. [108.233.125.46]) by smtp.gmail.com with ESMTPSA id m31sm13483644pjb.6.2019.08.11.23.22.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Aug 2019 23:22:18 -0700 (PDT) Date: Sun, 11 Aug 2019 23:22:16 -0700 From: Noah Misch To: cherio@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15695: Failure to restore a dump, ERROR: operator does not exist: public.hstore = public.hstore Message-ID: <20190812062216.GA2929668@rfd.leadboat.com> References: <15695-9ddb5735cf6dd931@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15695-9ddb5735cf6dd931@postgresql.org> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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