Re: DELETE FROM error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DELETE FROM error
Дата
Msg-id 5218.1027001822@sss.pgh.pa.us
обсуждение исходный текст
Ответ на DELETE FROM error  ("Daniel Bakken" <dan@smtresource.com>)
Список pgsql-general
"Daniel Bakken" <dan@smtresource.com> writes:
> When running the following DELETE FROM in psql,
> omni=# DELETE FROM inventory WHERE invid = '01044T';
> ERROR:  Unable to identify an operator '=' for types 'varchar' and 'bpchar'
>         You will have to retype this query using an explicit cast

If this is not a recent version of Postgres, I'd wonder about incorrect
foreign key constraints involving this table --- ie, an attempt to
REFERENCE a varchar field from a bpchar field or vice versa.  7.2 will
complain about that when you try to define the FK constraint, but older
versions won't notice until the FK constraint actually tries to do some
comparisons.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: ERROR: bt_fixroot: not valid old root page
Следующее
От: Ericson Smith
Дата:
Сообщение: Re: Startup death!