Re: excution time for plpgsql function and subfunction

From: Igor Neyman <ineyman(at)perceptron(dot)com>
To: Rémi Cura <remi(dot)cura(at)gmail(dot)com>, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: excution time for plpgsql function and subfunction
Date: 2014-01-10 15:28:55
Message-ID: A76B25F2823E954C9E45E32FA49D70EC5B42C643@mail.corp.perceptron.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Rémi Cura
Sent: Friday, January 10, 2014 4:10 AM
To: PostgreSQL General
Subject: [GENERAL] excution time for plpgsql function and subfunction

Hey List,
kind of a simple question :

I'm using the postgis_topology extension,
and I'm trying to figure where the slowness comes from when importing data.
It involves plpgsql function calling other plpgsql functions, insert, update, etc etc.

I know I can use explain analyze for one querry, but I don't know how to get details of how much time takes each sub-function called by a main function.

Thus it is very difficult to guess where is the bottleneck.
Thanks ,cheers,

Rémi-C 

You could use auto_explain module to get info you are looking for. It'll be logged in pg_log.
Read about it in the docs:

http://www.postgresql.org/docs/9.2/static/auto-explain.html

Regards,
Igor Neyman

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2014-01-10 15:39:04 Re: SQL State XX000 : XML namespace issue
Previous Message Amit Langote 2014-01-10 14:32:45 Re: How to specify/mock the statistic data of tables in PostgreSQL