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 1qJmdk-0007CV-2d for pgsql-admin@arkaria.postgresql.org; Thu, 13 Jul 2023 03:05: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 1qJmdi-0000vc-1c for pgsql-admin@arkaria.postgresql.org; Thu, 13 Jul 2023 03:05:10 +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 1qJmdh-0000vS-KY for pgsql-admin@lists.postgresql.org; Thu, 13 Jul 2023 03:05:09 +0000 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qJmdW-00072b-8V for pgsql-admin@lists.postgresql.org; Thu, 13 Jul 2023 03:05:08 +0000 Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-403b6b7c0f7so2680171cf.0 for ; Wed, 12 Jul 2023 20:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689217498; x=1691809498; h=to:references:message-id:content-transfer-encoding:date:in-reply-to :from:subject:mime-version:from:to:cc:subject:date:message-id :reply-to; bh=DptPZWclwbOQbspYZWcWXaSX2cMfnUie9PaENSqDnQU=; b=qgLpCNzOmV0OPVS8D5QR006sOA2549l2J6Dx8lLPx6NQ7rLIa68A3lRTR2h6nLQdS3 nonUuQFmE2dO9pHMSDelfyUV4IAwys9uc1FVw7LVCnghgnGCGMT0SGxXU1Nr6YVSo1C0 ToxNB6Z9GrGKD9fxgUGL4M5j2MomFWR2WvekysL/T6sQrYqRbKyr1qEMqnpRI6k3h4T8 APD5U8SyvMUKxBnFW9aKDwU7vp3AA0Zy0/p5emrYnO+QgPkDXbrX2/8d9uTNEHZuT+D2 uLvfI6uIhyYzszWcvPA2SyB6PZ3WtK0PeM3n79ZGUOMcoyd3WjELi61gfbhnAGewKSfz fkTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689217498; x=1691809498; h=to:references:message-id:content-transfer-encoding:date:in-reply-to :from:subject:mime-version:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=DptPZWclwbOQbspYZWcWXaSX2cMfnUie9PaENSqDnQU=; b=l7tWDxpt8vW7Ni+sWLNhLm+A9N0J4TZD4Tu5hrBdTCQAGatsrO33HojvYvhiIe+42o tyGDrNs7s/1Tnqfs4ai7SrcQ57IiTQGI/ISbRVV4dtffVNjJEuDC/6OFxPYC8t+d6m4k LGI4XVfVp2KlMioB0OKs/NH+iDSEeIyNkxggobZot5JXnnQi5t3bDhjxhJ58lLV7BSOA MSGICrDZz90KQ3Aw9+erA3Qo1Fr0ZNmBa7QX0aQkgRhLw/OvahwHrkdidKZJxWsUEkrV 3VBDiA9nWEXwMMjT0vOAXaNqEcRXXYDrPkQfpzimmtIDoUNPa9u9kHiNZxmvinr8HThT EuRg== X-Gm-Message-State: ABy/qLZuQ97f8N0QZx+sF0a5XmbIt5w9uRdYiNyMpCGFstTrm63mofKw Jsj7LOrLAJT6MNIYCVWqE/C7N1/mHKM= X-Google-Smtp-Source: APBJJlFgT2D2cOsOXeH6ge/tVp6dmJEqBCioL2XtNRvCsM1aVls/Vo3PEQEhA4o03GqxsiVg+jeV0Q== X-Received: by 2002:a05:622a:1313:b0:403:c9c9:e4ea with SMTP id v19-20020a05622a131300b00403c9c9e4eamr565532qtk.38.1689217498175; Wed, 12 Jul 2023 20:04:58 -0700 (PDT) Received: from ?IPv6:2601:14b:4100:252f:4488:732:6e6b:f16b? ([2601:14b:4100:252f:4488:732:6e6b:f16b]) by smtp.gmail.com with ESMTPSA id z30-20020ac8431e000000b00400e687174csm2752484qtm.54.2023.07.12.20.04.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jul 2023 20:04:57 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: Re: pg_dump: WARNING: could not find operator From: Ed Sabol In-Reply-To: <2c5b816e55fb35405f7d7afad3a517866c89c671.camel@cybertec.at> Date: Wed, 12 Jul 2023 23:04:56 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <115BEF7D-2297-45FE-A69D-C3E1C42133F1@gmail.com> References: <2563738.1689114275@sss.pgh.pa.us> <2c5b816e55fb35405f7d7afad3a517866c89c671.camel@cybertec.at> To: "pgsql-admin@lists.postgresql.org" X-Mailer: Apple Mail (2.3445.9.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 >=20 > SELECT * FROM pg_operator > WHERE oprcom IN (2234078, 2234199) > OR oprnegate IN (2234078, 2234199); >=20 > 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); Thanks, Ed