Re: [PERFORM] Incr/Decr Integer

2009-07-16 Thread Kevin Grittner
William Scott Jordan wrote: > We seem to be getting a lot of deadlocks using this method under > heavy load. Could you post the exact message from one of these? (Copy and paste if possible.) -Kevin -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make chang

Re: [PERFORM] Incr/Decr Integer

2009-07-16 Thread Richard Huxton
William Scott Jordan wrote: Hey all! Is there a better way to increase or decrease the value of an integer than doing something like: UPDATE the_table SET the_int = the_int + 1 WHERE the_id = 123 ; No. We seem to be getting a lot of deadlocks using this method under heavy load. Just won

[PERFORM] Incr/Decr Integer

2009-07-16 Thread William Scott Jordan
Hey all! Is there a better way to increase or decrease the value of an integer than doing something like: --- UPDATE the_table SET the_int = the_int + 1 WHERE the_id = 123 ; --- We seem to be getting a lot of deadlocks using this method under heavy load. Just wondering if we should be doing