RE: speeding up planning with partitions - Mailing list pgsql-hackers

From Tsunakawa, Takayuki
Subject RE: speeding up planning with partitions
Date
Msg-id 0A3221C70F24FB45833433255569204D1FB6CFCA@G01JPEXMBYT05
Whole thread Raw
In response to RE: speeding up planning with partitions  ("Imai, Yoshikazu" <imai.yoshikazu@jp.fujitsu.com>)
Responses RE: speeding up planning with partitions  ("Imai, Yoshikazu" <imai.yoshikazu@jp.fujitsu.com>)
List pgsql-hackers
Imai-san,

If the time for EXECUTE differs cleary before and after the creation of the generic plan, why don't you try to count
thefunction calls for each EXECUTE?  Although I haven't tried it, but you can probably do it with SystemTap, like
this:

probe process("your_postgres_path").function("*").call {
    /* accumulate the call count in an associative array */
}

Then, sort the functions by their call counts.  You may find some notable difference between the 5th and 7th EXECUTE.


Regards
Takayuki Tsunakawa


pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: jsonpath
Next
From: Michael Paquier
Date:
Subject: Re: A few new options for vacuumdb