Re: PREPARE / EXECUTE - Mailing list pgsql-hackers

From Bruno Wolff III
Subject Re: PREPARE / EXECUTE
Date
Msg-id 20021023162042.GA7032@wolff.to
Whole thread Raw
In response to Re: PREPARE / EXECUTE  (Hans-Jürgen Schönig <postgres@cybertec.at>)
Responses Re: PREPARE / EXECUTE
List pgsql-hackers
On Wed, Oct 23, 2002 at 18:04:01 +0200, Hans-Jürgen Schönig <postgres@cybertec.at> wrote:
> 
> An example:
> I have a join across 10 tables  + 2 subselects across 4 tables
> on the machine I use for testing:
>    planner: 12 seconds
>    executor: 1 second
> 
> The application will stay the same forever.
> I could be 10 times faster if there was a way to load the execution plan 
> into the backend.

One option you have is to explicitly give the join order. You can look at
explain to see what order the joins are done in and then rewrite the sql
to force them to be done in that order. This should keep things simple
for the planner.


pgsql-hackers by date:

Previous
From: Nicolae Mihalache
Date:
Subject: Re: crashes with postgresql 7.2.1 on IRIX 6.5
Next
From: Tom Lane
Date:
Subject: Re: PREPARE / EXECUTE