Re: Upsert Functionality using CTEs

Поиск
Список
Период
Сортировка
От Tim Uckun
Тема Re: Upsert Functionality using CTEs
Дата
Msg-id CAGuHJrPqk7NaafqR-Z6Qc2j7ZkJ7bCSWmm8R+4prU1zx5ZszOQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Upsert Functionality using CTEs  (Alban Hertroys <haramrae@gmail.com>)
Список pgsql-general
> The best strategy is fixing your data-model so that you have a unique key. As you found out already, e-mail addresses
aren'tvery suitable as unique keys for people. For this particular case I'd suggest adding a surrogate key. 
>
> Alternatively, you might try using (first_name, email) as your key. You'll probably still get some duplicates, but
theyshould be less and perhaps few enough for your case. 
>

Yea I'll have to see if I can do a better match.

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

Предыдущее
От: Roger Niederland
Дата:
Сообщение: undefined symbol: SPI_plan_get_cached_plan
Следующее
От: "P. Broennimann"
Дата:
Сообщение: Issue installing an extension