From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Hans-Juergen Schoenig <hs(at)cybertec(dot)at>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>, Michael Meskes <meskes(at)postgresql(dot)org>, Zoltan Boszormenyi <zb(at)cybertec(dot)at> |
Subject: | Re: patch to implement ECPG side tracing / tracking ... |
Date: | 2010-01-13 22:05:06 |
Message-ID: | 603c8f071001131405p782e5353pf34f7d133c9f93fb@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Jan 13, 2010 at 4:42 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Hans-Juergen Schoenig <hs(at)cybertec(dot)at> writes:
>> Michael Meskes wrote:
>>> Before looking into it in detail I think we should first figure out if this
>>> feature really has a benefit.
>
>> the use cases for this thing are quite simple: we are currently porting
>> hundreds (!) of complex Informix terminal applications to PostgreSQL.
>> [ and need to optimize them ]
>
> What you didn't explain is why you need client-side tracing rather than
> using the rather extensive facilities that already exist server-side.
> In particular, have you looked at CVS tip contrib/auto_explain? It
> seems like you are duplicating a lot of what that can do. If that needs
> some additional features, you could work on that. From the big picture
> standpoint I think it makes a lot more sense to add instrumentation
> server-side than client-side. Any features you add client-side are only
> available to ecpg users, and you have to cope with ensuring there's a
> way to collect the data out of the application (which may be running in
> an environment where that's hard).
The OP might even want to think about just turning on
log_min_duration_statement for all queries. auto_explain might even
be more than is needed.
...Robert
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2010-01-13 22:13:05 | Re: Incrementally Updated Backups and restartpoints |
Previous Message | Robert Haas | 2010-01-13 22:03:33 | Re: primary key display in psql |