Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 02939637392 for ; Tue, 24 Mar 2009 19:53:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 44467-07 for ; Tue, 24 Mar 2009 19:53:28 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mail.postgresql.org (Postfix) with ESMTP id A37B46369A9 for ; Tue, 24 Mar 2009 19:53:27 -0300 (ADT) Received: by yw-out-2324.google.com with SMTP id 3so1852292ywj.73 for ; Tue, 24 Mar 2009 15:53:26 -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 :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=FL4FOhVZ0iyK1rb5PAd4EV4W0rBIC5lUvqoAUsfme7U=; b=Uzd7a69eEZkP7dszpUJVZilnAV0acgwNB3W0q4BpDSrD4JLoINCNFTv05nMr3wfP3f wqdzsTrHo9/chFnK5HfKL8MKbdGr2HqsOpb3f6YvqD2udNjQ08Ij8ntx5KjauzJ5y+I8 znS4dRge5Ng2SZEllw6p/loXJid4bh2IJeqOc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KVpm7UCIsVYHJbDJYiqCszgUiAqmSR25R45ncOZgcPw91HRwHxqLG8KmqLL7/z8bRG x6B7xXO/fUzzvMZvFVpiLCdIZDzV6W9utuNhFr7p0NCk/tMHd2m+URSdURRNEbC8MFcP 2gBo2weHwVQOdSTsQa1b1SItGbOk0es2neqjs= MIME-Version: 1.0 Received: by 10.100.41.9 with SMTP id o9mr3931071ano.85.1237935206254; Tue, 24 Mar 2009 15:53:26 -0700 (PDT) In-Reply-To: <232B5217AD58584C87019E8933556D11011EE37A03@redmx2.esri.com> References: <7844.217.117.29.29.1237475481.squirrel@fmf.vgtu.lt> <49C267D1.5040909@gmail.com> <232B5217AD58584C87019E8933556D11011EE37A03@redmx2.esri.com> Date: Tue, 24 Mar 2009 16:53:26 -0600 Message-ID: Subject: Re: logging a single user session From: Scott Marlowe To: Kasia Tuszynska Cc: "pgsql-admin@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/220 X-Sequence-Number: 31720 On Tue, Mar 24, 2009 at 11:43 AM, Kasia Tuszynska wrote: > Hi Everybody, > I am convinced that this question has been posted on either the novice or admin forum but I can not find the answer - so sorry for the repeat. > > I would like to log (or trace) the output from a single user session, what parameters in the postgresql.conf do I set to what to achieve that? I think you can do it from a psql prompt: alter user smarlowe set log_statement='ddl'; where you could replace ddl with none, ddl, mod, all if I remember correctly.