From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc Mamin <M.Mamin@intershop.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: tuning a function to insert/retrieve values from a reference table
Date: Tue, 10 Jul 2007 11:41:20 -0400
Message-ID: <20267.1184082080@sss.pgh.pa.us> (raw)
In-Reply-To: <CA896D7906BF224F8A6D74A1B7E54AB301750AF6@JENMAIL01.ad.intershop.net>
References: <CA896D7906BF224F8A6D74A1B7E54AB301750AF6@JENMAIL01.ad.intershop.net>
"Marc Mamin" <M.Mamin@intershop.de> writes:
> Can I optimize this function with:
> a) remove the EXCEPTION clause (Is there an underlying lock that prevent
> concurrent inserts ?)
No.
> b) declare the function being IMMUTABLE ?
Certainly not --- it's got side-effects.
regards, tom lane
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, M.Mamin@intershop.de
Subject: Re: tuning a function to insert/retrieve values from a reference table
In-Reply-To: <20267.1184082080@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