Re: [PERFORM] How to ENABLE SQL capturing???

2007-08-13 Thread Jonathan Ellis
On 8/10/07, Joshua D. Drake <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > smiley2211 wrote: > > Jeff, > > > > You are CORRECT...my queries were going to /var/log/messages...had to get > > the Linux Admin to grant me READ access to the file... > > You may want to a

Re: [PERFORM] Premature view materialization in 8.2?

2007-04-06 Thread Jonathan Ellis
On 4/6/07, Tom Lane <[EMAIL PROTECTED]> wrote: > The problem seems to be that clan_members_v contains a call to an > expensive function: I'll bet that the function is marked VOLATILE. 8.2 is more conservative about optimizing away volatile functions than previous releases. If it has no side ef

Re: [PERFORM] Premature view materialization in 8.2?

2007-04-06 Thread Jonathan Ellis
On 4/6/07, Tom Lane <[EMAIL PROTECTED]> wrote: "Jonathan Ellis" <[EMAIL PROTECTED]> writes: > I can do that... you don't think the fact I mentioned, that > redefining the view to leave out the expensive function fixes the > problem, is relevant? Hm, I&

Re: [PERFORM] Premature view materialization in 8.2?

2007-04-06 Thread Jonathan Ellis
On 4/6/07, Tom Lane <[EMAIL PROTECTED]> wrote: "Jonathan Ellis" <[EMAIL PROTECTED]> writes: > On 4/6/07, Tom Lane <[EMAIL PROTECTED]> wrote: >> Yeah, it sure is the same plan, and 8.2 seems to be a tad faster right >> up to the hash join on user_id. I

Re: [PERFORM] Premature view materialization in 8.2?

2007-04-06 Thread Jonathan Ellis
On 4/6/07, Tom Lane <[EMAIL PROTECTED]> wrote: "Jonathan Ellis" <[EMAIL PROTECTED]> writes: > On 4/5/07, Tom Lane <[EMAIL PROTECTED]> wrote: >>> Is this a regression, or a "feature" of 8.2? >> >> Hard to say without EXPLAIN ANALYZE

Re: [PERFORM] Premature view materialization in 8.2?

2007-04-05 Thread Jonathan Ellis
On 4/5/07, Tom Lane <[EMAIL PROTECTED]> wrote: "Jonathan Ellis" <[EMAIL PROTECTED]> writes: > I have a query hitting a view that takes 0.15s on 8.1 but 6s on 8.2.3: > ... > Is this a regression, or a "feature" of 8.2? Hard to say without EXPLAIN ANALYZ

[PERFORM] Premature view materialization in 8.2?

2007-04-05 Thread Jonathan Ellis
I have a query hitting a view that takes 0.15s on 8.1 but 6s on 8.2.3: select party_id from clan_members_v cm, clans c where cm.clan_id = c.id and c.type = 'standard' The problem seems to be that clan_members_v contains a call to an expensive function: create or replace view clan_member