P. 1
Administration Pgsql

Administration Pgsql

|Views: 132|Likes:
Published by Dariusz Tutaj

More info:

Published by: Dariusz Tutaj on Jun 02, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/15/2013

pdf

text

original

$ ps -f -Upostgres
PID TT STAT

TIME COMMAND

9874 ?? I

0:00.07 postgres test [local] idle in transaction (postmaster)

9835 ?? S

0:00.05 postgres test [local] UPDATE waiting (postmaster)

10295 ?? S

0:00.05 postgres test [local] DELETE waiting (postmaster)

test=> SELECT * FROM pg_locks;
relation | database | transaction | pid |

mode

| granted

----------+----------+-------------+------+------------------+---------
17143 | 17142 |

| 9173 | AccessShareLock | t

17143 | 17142 |

| 9173 | RowExclusiveLock | t

|

|

472 | 9380 | ExclusiveLock | t

|

|

468 | 9338 | ShareLock

| f

|

|

470 | 9338 | ExclusiveLock | t

16759 | 17142 |

| 9380 | AccessShareLock | t

17143 | 17142 |

| 9338 | AccessShareLock | t

17143 | 17142 |

| 9338 | RowExclusiveLock | t

|

|

468 | 9173 | ExclusiveLock | t

(9 rows)

Mastering, PostgreSQL Administration 90/109

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->