| От | pgsql-bugs@postgresql.org |
|---|---|
| Тема | Bug #502: Duplicate values in field with type primary key. |
| Дата | |
| Msg-id | 200110301046.f9UAk8Z82382@postgresql.org обсуждение исходный текст |
| Список | pgsql-bugs |
Alex Yemelyanov (alex@otdyh.kz) reports a bug with a severity of 2
The lower the number the more severe it is.
Short Description
Duplicate values in field with type primary key.
Long Description
There is a table, which keeps the last user's message on irc:
create table otdyh_last(
nick varchar(100)primary key,
message varchar(200),
end_time integer
);
While user enters on channel, two queries is executed:
1. delete from otdyh_last where nick = 'some_nick'
2. insert into otdyh_last values('some_nick','',time_of_join)
Somehow there is 33 unique values in the table in the field nick(text of value 'Nurlan'), I noticed this when trying to
makevacuum.
I do not use transactions(mode Autocommit in DBI).
Contact me on email please and I'll send all the necessary.
Sample Code
No file was uploaded with this report
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера