Re: Speed of EXCECUTE in PL/PGSQL - Mailing list pgsql-performance

From Andrew Dunstan
Subject Re: Speed of EXCECUTE in PL/PGSQL
Date
Msg-id 5142276D.10406@dunslane.net
Whole thread Raw
In response to Speed of EXCECUTE in PL/PGSQL  (Artur Zając <azajac@ang.com.pl>)
List pgsql-performance
On 03/14/2013 03:22 PM, Artur Zając wrote:
>
> Why speed of executing (or planning) some very simple query from
> string in pl/pgsql is dependent from whole query or why “FOR r IN
> EXECUTE q” is significally slower from “FOR r IN query”?
>
>

The whole point of EXECUTE is that it's reparsed and planned each time.
You should expect it to be quite a bit slower, and avoid using EXECUTE
wherever possible.

cheers

andrew



pgsql-performance by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Speed of EXCECUTE in PL/PGSQL
Next
From: Mark Kirkwood
Date:
Subject: Re: New server setup