Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fbTT6-0002be-9h for pgsql-admin@arkaria.postgresql.org; Fri, 06 Jul 2018 16:20:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fbTT3-0006uG-Ue for pgsql-admin@arkaria.postgresql.org; Fri, 06 Jul 2018 16:20:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fbTT3-0006tU-Jq for pgsql-admin@lists.postgresql.org; Fri, 06 Jul 2018 16:20:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fbTSw-0007eS-St for pgsql-admin@postgresql.org; Fri, 06 Jul 2018 16:20:20 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w66GKB3r010116; Fri, 6 Jul 2018 12:20:11 -0400 From: Tom Lane To: pavna cc: pgsql-admin@postgresql.org Subject: Re: pg_restore error Command was: CREATE OPERATOR ~> ( PROCEDURE = plv8x.json_eval_ls, In-reply-to: <1530850361998-0.post@n3.nabble.com> References: <1530850361998-0.post@n3.nabble.com> Comments: In-reply-to pavna message dated "Thu, 05 Jul 2018 21:12:41 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <69177.1530894011.1@sss.pgh.pa.us> Date: Fri, 06 Jul 2018 12:20:11 -0400 Message-ID: <69178.1530894011@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk pavna writes: > When I pg_restore I get errors. > pg_restore: [archiver (db)] could not execute query: ERROR: argument of > commutator must be a name > Command was: CREATE OPERATOR |> ( > PROCEDURE = plv8x.json_eval, > LEFTARG = plv8x.json, > RIGHTARG = text, > COMMUTATOR = 27561 > ... Seems like there's something broken in your source database, ie that operator has a commutator link that didn't point to an existing operator. Hard to say any more than that with no more information. regards, tom lane