Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qJmge-0007JR-S2 for pgsql-admin@arkaria.postgresql.org; Thu, 13 Jul 2023 03:08:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qJmgd-0006oP-Gh for pgsql-admin@arkaria.postgresql.org; Thu, 13 Jul 2023 03:08:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qJmgd-0006oG-5m for pgsql-admin@lists.postgresql.org; Thu, 13 Jul 2023 03:08:11 +0000 Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qJmgW-00074R-8H for pgsql-admin@lists.postgresql.org; Thu, 13 Jul 2023 03:08:10 +0000 Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-cae0ad435b6so186378276.0 for ; Wed, 12 Jul 2023 20:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689217684; x=1691809684; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GRZeSFKC7hBe3ihlP2G7qexxR0X+oWye+5W3iNzuhbc=; b=iMi3nEbLqNTRtkGA0ue8Y5lrGGb3NDZRtpNjkinguyC9hUWguw5Lsnkx2HPBMCwVKG qblnA36k7i5RMA6/egeepfoJnxeICE4DC35ENb1p4u/d7KNGjZA0ZEbI2Y+0QKp3RQ5f cDMiyZLcw/P4D4IDPlksNJb4Zn8Kgxo6+01ltXQisxcSUIHPYUnKvowEP4sZiXlAgXSU QnNZNNmCDX+xhAPhhZR+Tq8l3EFzxWcj01SHux7SnN+1xYwS0iQFuPGMrh0bUg8XETgn MVNAp9vnr4ZE+QvSHDu8d+f5g+KeM9aXiirxljkHkmeujXyqs/t5jcGtKn+jvXfpNVVH Vi+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689217684; x=1691809684; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GRZeSFKC7hBe3ihlP2G7qexxR0X+oWye+5W3iNzuhbc=; b=f57NpZ2ei4Fu7RLnTCX4MpIOONsGL70pPPvTThgwrUU8ruAt1jymC9kJdK+SShfLk4 cENk4mkSK6DlI9r+UhYf4F0r7OoZPgA6jg0HE8Ykf6Fd9GDq+IsIYCROhW8KeBmCt015 aBjqV2Te/7KZkMACeJ5IyqU4EwYIU/lA6y8HKFg18lEjb5FC6KiW2V9PZBN1stuy9qKP nJw/5YnVftqsZcZe7be1bldntNQu5xhgxNMEZBBZOAIK7/LLSs2Pwu+8bq1Ps1UPnWZo IxtKiny2DyWQoYVkm3ItD7eZWhhGHIiTUtcJiY7BGug4EH3rg5l6BUmhgMPOrnPYu24W 95fg== X-Gm-Message-State: ABy/qLbGKTzi31lRTHcYdkY5tldIZ8cywRtRFcI+TIQOXVH5m87UnOyj 7IWl0/DF9rtQ3fN7otGSUh/Eo7umDsI= X-Google-Smtp-Source: APBJJlGOExL7aCUczEodUeIqXn9CVb5lpichhf0TnXdEaWK7U+IWXVwA/qMNQEPdaoWq2gnS6dX5aA== X-Received: by 2002:a25:df0b:0:b0:ca1:45ba:35a1 with SMTP id w11-20020a25df0b000000b00ca145ba35a1mr279803ybg.2.1689217684217; Wed, 12 Jul 2023 20:08:04 -0700 (PDT) Received: from ?IPV6:2600:1700:bd2c:b810:953:15f4:4429:6877? ([2600:1700:bd2c:b810:953:15f4:4429:6877]) by smtp.googlemail.com with ESMTPSA id b16-20020a5b0090000000b00c60a6b38427sm1189515ybp.26.2023.07.12.20.08.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jul 2023 20:08:03 -0700 (PDT) Message-ID: <312a596e-034d-99d1-2f99-00c8b863eb83@gmail.com> Date: Wed, 12 Jul 2023 22:08:03 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: pg_dump: WARNING: could not find operator Content-Language: en-US To: pgsql-admin@lists.postgresql.org References: <2563738.1689114275@sss.pgh.pa.us> <2c5b816e55fb35405f7d7afad3a517866c89c671.camel@cybertec.at> <115BEF7D-2297-45FE-A69D-C3E1C42133F1@gmail.com> From: Ron In-Reply-To: <115BEF7D-2297-45FE-A69D-C3E1C42133F1@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/12/23 22:04, Ed Sabol wrote: > On Jul 12, 2023, at 2:26 AM, Laurenz Albe wrote: >> To find out which operators are causing the trouble, you can run queries like >> >> SELECT * FROM pg_operator >> WHERE oprcom IN (2234078, 2234199) >> OR oprnegate IN (2234078, 2234199); >> >> and test everything that uses these broken operators particularly well. > OK, I found them in one of our databases. Based on the oprcode values, they seem to be related to an extension we have installed (pgsphere, in case anyone is curious). Probably from an old version of the extension, I'm guessing, as the current pgsphere passes all regression testing. > > So how do I clean up these dangling operators? Is it as easy as the following? > > DELETE FROM pg_operator > WHERE oprcom IN (2234078, 2234199) > OR oprnegate IN (2234078, 2234199); Will they automagically disappear when you restore the pg_dump? -- Born in Arizona, moved to Babylonia.