From: Jim C. Nasby <jim@nasby.net>
To: Joshua D. Drake <jd@commandprompt.com>
Cc: Tobias Brox <tobias@nordicbet.com>
Cc: Chris Browne <cbbrowne@acm.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Simple join optimized badly?
Date: Tue, 10 Oct 2006 09:02:22 -0500
Message-ID: <20061010140222.GA72517@nasby.net> (raw)
In-Reply-To: <452AD005.1090101@commandprompt.com>
References: <20061009213303.GA19144@oppetid.no>
<20061009223030.GW72517@nasby.net>
<452AD005.1090101@commandprompt.com>
On Mon, Oct 09, 2006 at 03:41:09PM -0700, Joshua D. Drake wrote:
> >
> > One of the big problems with doing set enable_...=off is that there's no
> > way to embed that into something like a view, so you're almost forced
> > into putting into the application code itself, which makes matters even
> > worse. If you could hint this within a query (maybe even on a per-table
> > level), you could at least encapsulate that into a view.
>
> You can easily pass multiple statements within a single exec() or push
> it into an SPF.
Unless I'm missing something, putting multiple statements in a single
exec means you're messing with the application code. And you can't
update a SRF (also means messing with the application code). Though, I
suppose you could update a view that pulled from an SRF...
--
Jim Nasby jim@nasby.net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)
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: jim@nasby.net, jd@commandprompt.com, tobias@nordicbet.com, cbbrowne@acm.org
Subject: Re: Simple join optimized badly?
In-Reply-To: <20061010140222.GA72517@nasby.net>
* 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