mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
script to list who's attached to the db
This commit is contained in:
parent
82dc986c79
commit
302ac9d55c
1 changed files with 7 additions and 0 deletions
7
xwords4/relay/scripts/list-psql-users.sh
Executable file
7
xwords4/relay/scripts/list-psql-users.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Show pids of processes holding onto the xwgames DB in some way
|
||||
|
||||
# from http://newstrib.com/main.asp?SectionID=2&SubSectionID=27&ArticleID=26068
|
||||
|
||||
echo "select pg_class.relname,pg_locks.* from pg_class,pg_locks where pg_class.relfilenode=pg_locks.relation;" | psql xwgames
|
Loading…
Reference in a new issue