Re: duplicates

Поиск
Список
Период
Сортировка
От Kostis Mentzelos
Тема Re: duplicates
Дата
Msg-id chhb93$16pd$1@news.hub.org
обсуждение исходный текст
Ответ на Re: duplicates  (Tsirkin Evgeny <tsurkin@mail.jct.ac.il>)
Ответы Re: duplicates  (Kostis Mentzelos <mentzelos@gmx.net>)
Список pgsql-admin
Tsirkin Evgeny wrote:
> yes i understand that i can create a primary key/unique etc...
> however my question is if i have to understand if and why
> the i got duplicate rows inserted.
> so here is the picture:
> an application is deleting rows and inserting right after that
> new ones some of which are the same as the old one,and i am getting
> duplicates !Don't transaction should prevent this by not letting
> insert ot do something in case the delete did not succeed?
> Another option is that i have to clients deleting and then inserting the
> same thing into table ,but again should not transaction prevent duplicates
> in that case ?
>
>
>>Use something like this:
>>
>> CREATE TABLE schedule (
>>    id serial PRIMARY KEY,
>>    studentid    decimal(9),
>>    groupid      decimal(10),
>>    maslulsignid decimal(7),
>>    tfusot        varchar(29)
>> );
>>
>
>
>
No, you should lock the table.

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

Предыдущее
От: alvaro@audifarma.com.co
Дата:
Сообщение: Re: Postgresql Server Restart continuously
Следующее
От: Kostis Mentzelos
Дата:
Сообщение: Re: duplicates