Insert/select union bug

Поиск
Список
Период
Сортировка
От Peter
Тема Insert/select union bug
Дата
Msg-id 451A4104.7070800@greatnowhere.com
обсуждение исходный текст
Ответы Re: Insert/select union bug  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
create table temp(a timestamptz);

insert into temp(a) select NULL; /* this passes */

insert into temp(a) select NULL union select NULL; /* fails:
ERROR: column "a" is of type timestamp with time zone but expression is
of type text
*/

I need to insert hundreds of thousands of rows, and insert into ...
select union is by far more efficient than multitude of inserts.

Postgres 8.1.3, FreeBSD.

Has this (maybe) been fixed in most recent release?


Peter

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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: Replication and PITR
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Insert/select union bug