pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergey Konoplev <gray.ru@gmail.com>
To: Eduardo Sá dos Reis <eduardoreis@pjf.mg.gov.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to disconnect users
Date: Mon, 12 Apr 2010 17:04:44 +0400
Message-ID: <g2oc3a7de1f1004120604o1cd958a7o8d67b52674106c03@mail.gmail.com> (raw)
In-Reply-To: <D887A3507A6746039F4A53BF1F8D61F6@PJF123067>
References: <1A57E5A7-AEB8-412B-B3A7-D52768F2FCF7@geysirit.dk>
	<EF75DFD93ED8426DBD604A45461B8A9E@PJF123067>
	<4BBDA7AC0200002500030589@gw.wicourts.gov>
	<D887A3507A6746039F4A53BF1F8D61F6@PJF123067>

2010/4/12 Eduardo Sá dos Reis <eduardoreis@pjf.mg.gov.br>:
> 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

-- 
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



view thread (3+ messages)  latest in thread

Message-ID: <g2oc3a7de1f1004120604o1cd958a7o8d67b52674106c03@mail.gmail.com>
Permalink:  ../g2oc3a7de1f1004120604o1cd958a7o8d67b52674106c03@mail.gmail.com/
Also on:    postgresql.org/message-id/g2oc3a7de1f1004120604o1cd958a7o8d67b52674106c03@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: gray.ru@gmail.com, eduardoreis@pjf.mg.gov.br
  Subject: Re: how to disconnect users
  In-Reply-To: <g2oc3a7de1f1004120604o1cd958a7o8d67b52674106c03@mail.gmail.com>
  References: <1A57E5A7-AEB8-412B-B3A7-D52768F2FCF7@geysirit.dk> <EF75DFD93ED8426DBD604A45461B8A9E@PJF123067> <4BBDA7AC0200002500030589@gw.wicourts.gov> <D887A3507A6746039F4A53BF1F8D61F6@PJF123067> <g2oc3a7de1f1004120604o1cd958a7o8d67b52674106c03@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox