Re: backup server - how to disconnect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Mark,

I don't know a command in postgres to do that, but if you're running postgres on Linux try it on the command line:

for pid in `psql -A -t -c "select procpid from pg_stat_activity"`; do pg_ctl kill TERM $i; done


Best regards.

Ps: Sorry, but my english isn't so good.

--
Fabrízio de Royes Mello
Coordenador Desenvolvimento de Software
fmello@xxxxxxxxxxxxxxx
DBSeller Informática Ltda. - http://www.dbseller.com.br
(51) 3076-5101

--
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux