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 1iK9nA-0000jw-CE for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Oct 2019 23:30:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iK9n7-000739-FQ for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Oct 2019 23:30:17 +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 1iK9n7-000730-7E for pgsql-bugs@lists.postgresql.org; Mon, 14 Oct 2019 23:30:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iK9n4-00062p-G1 for pgsql-bugs@lists.postgresql.org; Mon, 14 Oct 2019 23:30:16 +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 x9ENU997023977; Mon, 14 Oct 2019 19:30:09 -0400 From: Tom Lane To: holdenru@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16055: pgAdmin 4 - ERROR: operator does not exist: - oid In-reply-to: <16055-3a7e512eeb0b995f@postgresql.org> References: <16055-3a7e512eeb0b995f@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 14 Oct 2019 13:08:27 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1177.1571095808.1@sss.pgh.pa.us> Date: Mon, 14 Oct 2019 19:30:08 -0400 Message-ID: <1178.1571095808@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > It works OK with pgAdmin 3. > ERROR: operator does not exist: - oid > LINE 4: WHERE attrelid=-2016150721::oid > ^ > HINT: No operator matches the given name and argument type(s). You might > need to add explicit type casts. This is a bug in whatever generated that query (if it was pgAdmin 4, you should complain on the pgadmin lists). Probably, it printed an OID value as a signed integer when it should have printed it as an unsigned integer. That's an easy mistake that doesn't show up until your database gets past 2^31 OIDs consumed :-(. The server error message is correct as far as it goes: there's no minus operator for the OID type. Since OID is unsigned, it wouldn't make a lot of sense to have one. regards, tom lane