Re: Slow UPADTE, compared to INSERT - Mailing list pgsql-performance

From Mike C. Fletcher
Subject Re: Slow UPADTE, compared to INSERT
Date
Msg-id 3FD0BC67.5080300@rogers.com
Whole thread Raw
In response to Re: Slow UPADTE, compared to INSERT  (Ivar Zarans <iff@alcaron.ee>)
List pgsql-performance
Ivar Zarans wrote:

>On Fri, Dec 05, 2003 at 01:23:43PM +0000, Richard Huxton wrote:
>
>
>>Better IMHO would be: "UPDATE table1 SET status = %s WHERE recid = %s::int8"
>>
>>
>
>Thanks for the hint!
>
>
Which makes the wrapper class need:
                            def __str__( self ):
                                return "%s::int8"%(self.value,)

Enjoy,
Mike

_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/




pgsql-performance by date:

Previous
From: "Mike C. Fletcher"
Date:
Subject: Re: Slow UPADTE, compared to INSERT
Next
From: Josh Berkus
Date:
Subject: Re: tuning questions