From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: [GENERAL] contrib/plantuner - enable PostgreSQL planner hints |
Date: | 2009-10-09 17:02:12 |
Message-ID: | 200910091702.n99H2CM27713@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Oleg Bartunov wrote:
> =# set enable_seqscan=off;
> =# set plantuner.forbid_index='id_idx2';
The genius of this module is the line above -- a more fine-grained way
to control the optimizer, with specific index disabling.
> =# explain select id from test where id=1;
> QUERY PLAN
> ----------------------------------------------------------------------
> Bitmap Heap Scan on test (cost=4.34..15.03 rows=12 width=4)
> Recheck Cond: (id = 1)
> -> Bitmap Index Scan on id_idx (cost=0.00..4.34 rows=12 width=0)
> Index Cond: (id = 1)
> (4 rows)
Are you planning to submit this as a /contrib module?
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2009-10-09 17:18:50 | Re: interface for "non-SQL people" |
Previous Message | Takeichi Kanzaki Cabrera | 2009-10-09 16:57:46 | Inheritance on foreign key |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2009-10-09 17:21:53 | Re: Hot Standby 0.2.1 |
Previous Message | Thom Brown | 2009-10-09 16:24:54 | Idle connection timeout |