pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Wenk <a.wenk@netzmeister-st-pauli.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Guillaume Smet <guillaume.smet@gmail.com>
Cc: Guillaume Cottenceau <gc@mnc.ch>
Cc: Mario Splivalo <mario.splivalo@megafon.hr>
Cc: pgsql-performance@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [PERFORM] Query much slower when run from postgres function
Date: Mon, 09 Mar 2009 18:42:16 +0100
Message-ID: <49B554F8.7090603@netzmeister-st-pauli.de> (raw)
In-Reply-To: <5165.1236618994@sss.pgh.pa.us>
References: <49B51B60.6030600@megafon.hr>
	<27649.1236616294@sss.pgh.pa.us>
	<87fxhmmygj.fsf@meuh.mnc.lan>
	<1d4e0c10903091004m758d7ea2s91e33631be81215a@mail.gmail.com>
	<5165.1236618994@sss.pgh.pa.us>


Tom Lane schrieb:
> Guillaume Smet <guillaume.smet@gmail.com> writes:
>> Unnamed prepared statements are planned after binding the values,
>> starting with 8.3, or more precisely starting with 8.3.2 as early 8.3
>> versions were partially broken on this behalf.
> 
> No, 8.2 did it too (otherwise we wouldn't have considered 8.3.0 to be
> broken...).  The thing I'm not too clear about is what "use of an
> unnamed statement" translates to for a JDBC user.
> 
> 			regards, tom lane
>
I followed another post in the PHP List. Andrew McMillan was talking 
about his experiences with udf's in Oracle and PG (--> look for subject: 
Re: [PHP] pl/php for windows). He was writing that, by using udf's, the 
planner sometimes uses strange and not performant plans. So generally I 
understood that using udf's is a good idea - compared with the work I 
have to do when I code that e.g in PHP and also compared to the better 
resulting performance with udf's. So what is your experience with using 
udf's (plpgsql)? Is there something like "use it in this case but not in 
that case"?

Your answers are very welcome ...

Cheers

Andy





view thread (26+ messages)  latest in thread

Message-ID: <49B554F8.7090603@netzmeister-st-pauli.de>
Permalink:  ../49B554F8.7090603@netzmeister-st-pauli.de/
Also on:    postgresql.org/message-id/49B554F8.7090603@netzmeister-st-pauli.de

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: a.wenk@netzmeister-st-pauli.de, tgl@sss.pgh.pa.us, guillaume.smet@gmail.com, gc@mnc.ch, mario.splivalo@megafon.hr, pgsql-jdbc@postgresql.org
  Subject: Re: [PERFORM] Query much slower when run from postgres function
  In-Reply-To: <49B554F8.7090603@netzmeister-st-pauli.de>
  References: <49B51B60.6030600@megafon.hr> <27649.1236616294@sss.pgh.pa.us> <87fxhmmygj.fsf@meuh.mnc.lan> <1d4e0c10903091004m758d7ea2s91e33631be81215a@mail.gmail.com> <5165.1236618994@sss.pgh.pa.us> <49B554F8.7090603@netzmeister-st-pauli.de>

* 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