pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Wheeler <david@kineticode.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: PL/pgSQL Loop Vs. Batch Update
Date: Tue, 25 Apr 2006 22:36:21 -0400
Message-ID: <11514.1146018981@sss.pgh.pa.us> (raw)
In-Reply-To: <8FE57896-2F9B-4838-857B-FA6CC2EE162A@kineticode.com>
References: <FFF901A7-232A-4140-AE41-89ABE7766A85@kineticode.com>
	<11055.1146014387@sss.pgh.pa.us>
	<8FE57896-2F9B-4838-857B-FA6CC2EE162A@kineticode.com>

David Wheeler <david@kineticode.com> writes:
> Just on a lark, I tried to get this to work:

> try=# explain analyze EXECUTE foo(1, ARRAY 
> [600001,600002,600003,600004,600005,600006,600007]);
>                                        QUERY PLAN
> ------------------------------------------------------------------------ 
> --------------
> Result  (cost=0.00..0.01 rows=1 width=0) (actual time=26.241..26.251  
> rows=1 loops=1)
> Total runtime: 27.512 ms
> (2 rows)

> That's not much use.

It looks like you had something trivial as the definition of foo().
Try one of the actual queries from the plpgsql function.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <11514.1146018981@sss.pgh.pa.us>
Permalink:  ../11514.1146018981@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11514.1146018981@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, david@kineticode.com
  Subject: Re: PL/pgSQL Loop Vs. Batch Update
  In-Reply-To: <11514.1146018981@sss.pgh.pa.us>

* 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