Re: surprising behavior or nothing to see here?

From: Ben Chobot <bench(at)silentmedia(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: surprising behavior or nothing to see here?
Date: 2012-10-03 18:55:06
Message-ID: 5EE26B0F-8386-4301-BFC5-0FA02E71F84B@silentmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Oct 3, 2012, at 11:50 AM, Tom Lane wrote:

> Ben Chobot <bench(at)silentmedia(dot)com> writes:
>> 4. What might cause autovacuum analyze to make an index perform worse immediately, when a manual vacuum analyze does not have the same affect? And I'm not talking about changing things so the planner doesn't use the index, but rather, having the index actually take longer.
>
> Dunno about the replication angle, but would this have been a GIN index?
> I'm wondering about possible interference with flushing of its
> pending-insert queue (the FASTUPDATE stuff).

Nope, btree:

create index get_delayed_jobs_index on delayed_jobs (priority, run_at) tablespace data1 where locked_at is null and queue='queue' and next_in_strand=true;

There are half a dozen other indices on this table too (that weren't applicable to the long query) but they're all btrees.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Moshe Jacobson 2012-10-03 19:14:08 Re: What's faster? BEGIN ... EXCEPTION or CREATE TEMP TABLE IF NOT EXISTS?
Previous Message Wolf Schwurack 2012-10-03 18:50:51 Re: [Pgbouncer-general] Again, problem with pgbouncer