Re: BUG #5372: insert into fails with integer expression type char error
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #5372: insert into fails with integer expression type char error |
| Дата | |
| Msg-id | 20214.1268413649@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #5372: insert into fails with integer expression type char error ("Gray Watson" <gray.pg@mailnull.com>) |
| Список | pgsql-bugs |
"Gray Watson" <gray.pg@mailnull.com> writes:
> I have 2 tables which have the same schema (as far as I can see) but when I
> try to do the following in psql:
> INSERT INTO old_log SELECT * FROM log WHERE time < '2010-02-01';
> I get the error:
> ERROR: column "port" is of type integer but expression is of type character
That's just bizarre. The only thought that comes to mind is that the
error is in a trigger or rule attached to old_log, but you aren't
showing any such thing in your psql \d output.
If you pg_dump the tables and restore into another database, can you
still replicate the misbehavior? In any case it might be helpful to
look at "pg_dump -s -t table" output for these two tables.
Another thing that might be relevant is whether you've ever dropped
any columns in either table?
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера