From: | Holger Jakobs <holger(at)jakobs(dot)com> |
---|---|
To: | pgsql-admin(at)lists(dot)postgresql(dot)org |
Subject: | Re: how to make duplicate finding query faster? |
Date: | 2020-12-30 11:18:06 |
Message-ID: | cd50c237-2062-a18b-374d-b2399830b988@jakobs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Am 30.12.20 um 09:59 schrieb Sachin Kumar:
> HI Mr. Holger,
>
> This will not suffice our requirement. we have to validate that there
> would not be any duplicate value in DB. we have done that earlier by
> leaving DB to check if there is any duplicate and found duplicate
> value in DB.
>
> we have a table "card" and a single column "number " which we are
> updated with a csv file with 600k numbers and require no duplicate
> number should be there in the table.
>
> Please if can have a faster query can help us in achieving this
> requirement.
>
>
Quote: leaving DB to check if there is any duplicate and found duplicate
value in DB
No, that's not possible with PostgreSQL. If you have a Primary Key or a
Unique Constraint, no duplicates will be allowed by the DB.
There must be a different reason.
--
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
From | Date | Subject | |
---|---|---|---|
Next Message | Gavan Schneider | 2020-12-30 11:21:17 | Re: how to make duplicate finding query faster? |
Previous Message | Sachin Kumar | 2020-12-30 08:59:08 | Re: how to make duplicate finding query faster? |