Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 618716325ED for ; Mon, 12 Apr 2010 10:05:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 11244-05 for ; Mon, 12 Apr 2010 13:05:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by mail.postgresql.org (Postfix) with ESMTP id C0334635627 for ; Mon, 12 Apr 2010 10:05:06 -0300 (ADT) Received: by wwi17 with SMTP id 17so2130617wwi.19 for ; Mon, 12 Apr 2010 06:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:received:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=bGXPZH/gZBTqHmKEUvevpZwo99eUUrNq8o5pjqQZJXA=; b=KAPwGGFaqV4EMcXsheKHMhvqFnrT+E7wr2cWRWXjXaFsYYzP/S+2ByIX6LjkS+9+wg 9mVXsUZ1at+dl0QZhNTJX4Xi/bxHvVrC1DncauiZ/33lZXiC+VxY9PBsJrZtAv0wRpHB drz2XEJ9lN8GEO8b6FFoMf63q4lITEwvtrjEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=BZ0kzDDKimxhSewoNY7+QMjdtau70lshfD6EST089iIBdKMSJfZ0HTpmH3vvsQJE85 xnuTyIYWxHww4ulwd933wVMq4ul82JUD47UA7RdFGdLkaRFc/zgC52pEke1rJ3hsqQv1 uEPWIh9QL3Es0eu5JHE+doi01smBS8HHrtAfw= MIME-Version: 1.0 Received: by 10.216.233.205 with HTTP; Mon, 12 Apr 2010 06:04:44 -0700 (PDT) In-Reply-To: References: <1A57E5A7-AEB8-412B-B3A7-D52768F2FCF7@geysirit.dk> <4BBDA7AC0200002500030589@gw.wicourts.gov> From: Sergey Konoplev Date: Mon, 12 Apr 2010 17:04:44 +0400 Received: by 10.216.180.82 with SMTP id i60mr2340201wem.107.1271077504409; Mon, 12 Apr 2010 06:05:04 -0700 (PDT) Message-ID: Subject: Re: how to disconnect users To: =?ISO-8859-1?Q?Eduardo_S=E1_dos_Reis?= Cc: pgsql-admin@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201004/137 X-Sequence-Number: 34231 2010/4/12 Eduardo S=E1 dos Reis : > I need to disconnect user in my database without creating inconsistencies= . > What command should I use. If you are using 8.4 then you can do pg_terminate_backend(pid) function. For more info read http://www.postgresql.org/docs/8.4/interactive/functions-admin.html --=20 Sergey Konoplev Blog: http://gray-hemp.blogspot.com / Linkedin: http://ru.linkedin.com/in/grayhemp / JID/GTalk: gray.ru@gmail.com / Skype: gray-hemp / ICQ: 29353802