Re: delete duplicates takes too long - Mailing list pgsql-general

From Dennis Brakhane
Subject Re: delete duplicates takes too long
Date
Msg-id 226a19190904301023q6d04da22o624e94fc9680e703@mail.gmail.com
Whole thread Raw
In response to Re: delete duplicates takes too long  (Alvaro Herrera <alvherre@commandprompt.com>)
List 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 by date:

Previous
From: Raymond O'Donnell
Date:
Subject: Re: ERROR: syntax error at or near "IF"... why?
Next
From: Johan Nel
Date:
Subject: Re: ERROR: syntax error at or near "IF"... why?