From: Tom Lane <tgl@sss.pgh.pa.us>
To: holdenru@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16055: pgAdmin 4 - ERROR: operator does not exist: - oid
Date: Mon, 14 Oct 2019 19:30:08 -0400
Message-ID: <1178.1571095808@sss.pgh.pa.us> (raw)
In-Reply-To: <16055-3a7e512eeb0b995f@postgresql.org>
References: <16055-3a7e512eeb0b995f@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, holdenru@gmail.com
Subject: Re: BUG #16055: pgAdmin 4 - ERROR: operator does not exist: - oid
In-Reply-To: <1178.1571095808@sss.pgh.pa.us>
References: <16055-3a7e512eeb0b995f@postgresql.org> <1178.1571095808@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox