Re: delete duplicates takes too long

Поиск
Список
Период
Сортировка
От Dennis Brakhane
Тема Re: delete duplicates takes too long
Дата
Msg-id 226a19190904301023q6d04da22o624e94fc9680e703@mail.gmail.com
обсуждение исходный текст
Ответ на Re: delete duplicates takes too long  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-general
On Sat, Apr 25, 2009 at 2:51 AM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> In that case you can create a partial unique index:
>
> create index foo on cdr_ama_stat (abonado_a, abonado_b, fecha_llamada,
> duracion) where processed = 2;

Of course, the unique is missing in this one:

CREATE UNIQUE INDEX foo ON cdr_ama_stat (abonado_a, abonado_b, fecha_llamada,
duracion) WHERE processed = 2;

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

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: ERROR: syntax error at or near "IF"... why?
Следующее
От: Johan Nel
Дата:
Сообщение: Re: ERROR: syntax error at or near "IF"... why?