Re: Where can I get the number of plans that considered by Planner?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: 纪晓曦 <sheepjxx(at)gmail(dot)com>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Where can I get the number of plans that considered by Planner?
Date: 2009-10-12 14:06:33
Message-ID: 7203.1255356393@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?UTF-8?B?57qq5pmT5pum?= <sheepjxx(at)gmail(dot)com> writes:
> Is it a reasonable idea to add a counter to set_cheapest?

You can try it but I think you'll find it's not terribly useful.
That will effectively just give you a count of the number of join
combinations that were considered (plus the number of base relations).

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-10-12 14:08:08 Re: Dumping without Postgis functions
Previous Message utsav 2009-10-12 14:04:40 ERROR: simple_heap_delete: tuple already updated by self