Re: Query Stuck in running server

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Shams Khan *EXTERN*" <shams(dot)khan22(at)gmail(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Query Stuck in running server
Date: 2012-11-15 08:54:47
Message-ID: D960CB61B694CF459DCFB4B0128514C208AF0C5A@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Shams Khan wrote:
> There are few query I found at the time of monitoring below
>
> 00:54:43.574338 | 26952 | select a.actno,MAX(b.actid) as
actid,MAX(b.actname) as name,MAX(b.phone)
> as phone,MAX(b.email) as mail,MAX(a.subsno) as subs,MAX(t.pkgid
> ) as svcid,MAX(a.expirydt) as expirydt,MAX(d.domid) as
domid,MAX(d.domname) as domname from actbal a
> inner join subs s on a.subsno=s.subsno inner join packages t on
s.svcno=t.pkgno inner join account b
> on b.actno=a.actno inner join ssgdom d on b.domno=d.domno where
a.actno not in ( select a.actno from
> actbal a inner join subs s on a.actno=s.actno where s.status <= 15 and
a.expirydt > $1) and
> a.expirydt <= $2 and b.domno=$ group by a.actno order by
MAX(d.domname),MAX(b.actname)
>
> can somebody help me to understand it

Understand what? What is the problem?

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Shams Khan 2012-11-15 09:11:34 Re: Query Stuck in running server
Previous Message Lukasz Brodziak 2012-11-15 08:48:47 Re: Failed Login Attempts parameter