Friday, July 28. 2006Avoid Unique Key violationTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
This does not work when two concurrent transactions try to insert the same data. In that case the second transaction will block until the first one is committed. After the commit the second transaction will wakeup again and return the unique constraint violation. Comments ()
This is best to small sized tables.But this is not a best method if the table size of uk_test is very large, since we are using select. Comments ()
|
QuicksearchBlog AdministrationPostgreSQL BuchCalendar
UBERWACH!BookmarksCategoriesLast SearchStatisticsLast entry: 2012-03-30 22:56
847 entries written
532 comments have been made
8739 visitor(s) this month
153 visitor(s) today
153 visitor(s) this week
0 visitor(s) online
Top Refererswww.google.de (6091)
www.google.com (3846) planete.postgresql.fr (3033) www.postgresql.org (2943) planet.postgresql.org (1601) google.com (1583) ads.wars-nicht.de (1504) ak-zensur.de (1358) www.planetpostgresql.org (976) image.youdao.com (949) Recent Entries
Once upon a timeOne year ago ...
Sat, 21.05.2011 05:39"PGCon 2011 - Second day" Archives |
|||||||||||||||||||||||||||||||||||||||||||||||||