pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike C. Fletcher <mcfletch@rogers.com>
To: pgsql-performance@postgresql.org
Subject: Re: Slow UPADTE, compared to INSERT
Date: Fri, 05 Dec 2003 12:12:07 -0500
Message-ID: <3FD0BC67.5080300@rogers.com> (raw)
In-Reply-To: <20031205164743.GA30510@alcaron.ee>
References: <20031204185751.GA15893@alcaron.ee>
	<20031205123843.GA27170@alcaron.ee>
	<3FD07EEA.8030007@persistent.co.in>
	<200312051323.43966.dev@archonet.com>
	<20031205164743.GA30510@alcaron.ee>

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/






view thread (24+ messages)  latest in thread

Message-ID: <3FD0BC67.5080300@rogers.com>
Permalink:  ../3FD0BC67.5080300@rogers.com/
Also on:    postgresql.org/message-id/3FD0BC67.5080300@rogers.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mcfletch@rogers.com
  Subject: Re: Slow UPADTE, compared to INSERT
  In-Reply-To: <3FD0BC67.5080300@rogers.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox