![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When I execute ps on my linux server I can see: ... 8021 ? S 2:51 \_ postgres: vt tdb 127.0.0.1(51399) idle 8037 ? S 9:35 \_ postgres: vt tdb 127.0.0.1(33643) idle 8038 ? S 9:35 \_ postgres: vt tdb 127.0.0.1(36490) idle 8629 ? S 110:02 \_ postgres: vt tdb 127.0.0.1(48856) idle 8630 ? R 213:59 \_ postgres: vt tdb 127.0.0.1(35397) SELECT 9051 ? S 8:28 \_ postgres: vt tdb 127.0.0.1(56341) idle ... How can I determine what process 8630 is doing ? what SELECT I've try loging statements but only finished queries has been loged. |
#3
| |||
| |||
|
|
Have you tried: SELECT current_query FROM pg_catalog.pg_stat_activity WHERE procpid = 8630 |

#4
| |||
| |||
|
|
When I execute ps on my linux server I can see: ... 8021 ? S 2:51 \_ postgres: vt tdb 127.0.0.1(51399) idle 8037 ? S 9:35 \_ postgres: vt tdb 127.0.0.1(33643) idle 8038 ? S 9:35 \_ postgres: vt tdb 127.0.0.1(36490) idle 8629 ? S 110:02 \_ postgres: vt tdb 127.0.0.1(48856) idle 8630 ? R 213:59 \_ postgres: vt tdb 127.0.0.1(35397) SELECT 9051 ? S 8:28 \_ postgres: vt tdb 127.0.0.1(56341) idle ... How can I determine what process 8630 is doing ? what SELECT I've try loging statements but only finished queries has been loged. |
#5
| |||
| |||
|
|
pbr napisaĆ(a): When I execute ps on my linux server I can see: ... 8021 ? S 2:51 \_ postgres: vt tdb 127.0.0.1(51399) idle 8037 ? S 9:35 \_ postgres: vt tdb 127.0.0.1(33643) idle 8038 ? S 9:35 \_ postgres: vt tdb 127.0.0.1(36490) idle 8629 ? S 110:02 \_ postgres: vt tdb 127.0.0.1(48856) idle 8630 ? R 213:59 \_ postgres: vt tdb 127.0.0.1(35397) SELECT 9051 ? S 8:28 \_ postgres: vt tdb 127.0.0.1(56341) idle ... How can I determine what process 8630 is doing ? what SELECT cienki_bolek wrote: try pg_top |
#6
| |||
| |||
|
|
pbr napisal(a): cienki_bolek wrote: try pg_top Also, ps can be coerced into showing more of the command line: ps -o "pid,cmd" The query is _not_ part of the command line. |
![]() |
| Thread Tools | |
| Display Modes | |
| |