Re: Insert into partition table hangs

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Insert into partition table hangs
Дата
Msg-id 20060523215700.GA64371@pervasive.com
обсуждение исходный текст
Ответ на Re: Insert into partition table hangs  ("Nik" <XLPizza@gmail.com>)
Ответы Re: Insert into partition table hangs  ("Nik" <XLPizza@gmail.com>)
Список pgsql-general
On Mon, May 22, 2006 at 01:38:20PM -0700, Nik wrote:
> CREATE TABLE schemaname.partition_table
> (
>   CHECK("start" >= '05-01-2006 00:00:00' AND "start" <= '05-31-2006
> 23:59:59'),

What about 5-31-2006 23:59:59.3?

What you really want is:
   CHECK("start" >= '05-01-2006' AND "start" < '06-01-2006')

PostgreSQL will assume midnight, so you don't actually need the time.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

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

Предыдущее
От: "George Pavlov"
Дата:
Сообщение: assymetry updating a boolean (=FALSE faster than =TRUE)
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Why won't it index scan?