Re: PREPARE / EXECUTE - Mailing list pgsql-hackers

From Zeugswetter Andreas SB SD
Subject Re: PREPARE / EXECUTE
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA4961ED1@m0114.s-mxs.net
Whole thread Raw
In response to PREPARE / EXECUTE  (Hans-Jürgen Schönig <postgres@cybertec.at>)
Responses Re: PREPARE / EXECUTE  (Neil Conway <neilc@samurai.com>)
List pgsql-hackers
> The idea is not to have it accross multiple backends and having it in
> sync with the tables in the database. This is not the point.
> My problem is that I have seen many performance critical applications
> sending just a few complex queries to the server. The problem is: If you
> have many queries where the relation "time planner"/"time executor" is
> very high (eg. complex joins with just one value as the result).

The standard approach to such a scenario would imho be to write stored procedures
for the complex queries (e.g. plpgsql) and use that from the client.
Maybe even eliminate a few ping pongs between client and server.

Andreas


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 'epoch'::timestamp and Daylight Savings
Next
From: Neil Conway
Date:
Subject: Re: PREPARE / EXECUTE