Prefix operator error to type OID?

Lists: pgsql-general
From: "Patrick Hatcher" <PHatcher(at)macys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Prefix operator error to type OID?
Date: 2004-03-12 01:02:39
Message-ID: OF285C91DD.FBBEC383-ON88256E55.0003A1D8-88256E55.0006666B@fds.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

I'm not sure this is a PgAdminIII error or a Pg 7.3.5 error

I've created the following table:

CREATE TABLE public.prod_manager
(
mgmid varchar(6) NOT NULL,
mgmname varchar(35),
email varchar(50) NOT NULL,
CONSTRAINT prdmg_pk PRIMARY KEY (mgmid)
) WITHOUT OIDS;

with the following data
insert into prod_manager values ('000001', 'Tiny Tim', 's(at)s(dot)com');
insert into prod_manager values ('000002', 'Med Tim', 'o(at)s(dot)com');
insert into prod_manager values ('000003', 'Large Tim', 'p(at)s(dot)com');

If I try to view the data directly from PgAdminII using the grid, I get an
error message:
Unable to identify a prefix operator '-' for type 'oid' You may need to
add parentheses or an explicit cast.

The data will then show. However, if I try to update any data within the
grid, I get the same error as the above. Everything works fine if I try to
SELECT, UPDATE, or DELETE.

Any ideas?

Patrick Hatcher
Macys.Com


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Patrick Hatcher" <PHatcher(at)macys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Prefix operator error to type OID?
Date: 2004-03-12 04:36:54
Message-ID: 4980.1079066214@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

"Patrick Hatcher" <PHatcher(at)macys(dot)com> writes:
> I'm not sure this is a PgAdminIII error or a Pg 7.3.5 error

Seems like it must be PgAdmin issuing some bogus query. I'd suggest
taking it up on their mailing list ...

regards, tom lane