Re: ignore unique violation OR check row exists

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: ignore unique violation OR check row exists
Дата
Msg-id je14bk$1jq$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Re: ignore unique violation OR check row exists  (Misa Simic <misa.simic@gmail.com>)
Список pgsql-sql
On 2012-01-03, Misa Simic <misa.simic@gmail.com> wrote:
> If exists is better, though insert line by line and check if exists may
> be very slow...
>
> The best would be if you can use copy command from csv to staging table
> (without constraints) and then
>
> Insert to live from stage where stage constraint column not exist in
> live...
>

Its a good idea to check that the staging table doesn't
conflict with itself, before tryign to insert it.

-- 
⚂⚃ 100% natural



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

Предыдущее
От: Misa Simic
Дата:
Сообщение: Re: ignore unique violation OR check row exists
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: ignore unique violation OR check row exists