Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 7629EC83CB2 for ; Tue, 10 Jul 2012 17:31:42 -0300 (ADT) Received: from 30.55.colo.spiretech.net ([69.168.55.30] helo=lists.commandprompt.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Soh5x-0005Yl-64 for pgsql-admin@postgresql.org; Tue, 10 Jul 2012 20:31:41 +0000 Received: from [192.168.1.5] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 56D9D37A; Tue, 10 Jul 2012 13:31:28 -0700 (PDT) Received: from [192.168.1.5] ([68.118.161.194] helo=[192.168.1.5]) by assp.commandprompt.com with ESMTPS(AES256-SHA) (2.1.1); 10 Jul 2012 13:31:28 -0700 Message-ID: <4FFC911C.4010107@commandprompt.com> Date: Tue, 10 Jul 2012 13:31:24 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: "Arnold, Sandra" CC: "pgsql-admin@postgresql.org" Subject: Re: What happens when PostgreSQL fails to log to SYSLOG References: <54E5385D47A89542BC678F5426799F3905261D424F@OSTIEX01.osti.gov> In-Reply-To: <54E5385D47A89542BC678F5426799F3905261D424F@OSTIEX01.osti.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Assp-Version: 2.1.1(11364) on assp.commandprompt.com X-Assp-Client-SSL: yes X-Assp-ID: assp.commandprompt.com m1-52288-10590 X-Assp-Envelope-From: jd@commandprompt.com X-Assp-Intended-For: ArnoldS@osti.gov X-Assp-Original-Subject: Re: [ADMIN] What happens when PostgreSQL fails to log to SYSLOG X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/32 X-Sequence-Number: 39749 On 07/10/2012 01:08 PM, Arnold, Sandra wrote: > I am trying to find out what PostgreSQL does when it cannot write to its > SYSLOG file, whether it is permissions or the file system where the log > resides is full is the problem. PostgreSQL doesn't write to a SYSLOG file. It sends it to the syslog daemon. (if you are indeed using syslog) > Does PostgreSQL stall, does it rollback > the transaction it cannot log to the SYSLOG, or does it continue on as > if there is not an issue? This is a non-issue in terms of transactions and operations. > I am writing Security controls and since I am > using the SYSLOG for auditing purposes and I need to document what > happens in case there was a failure in writing to the SYSLOG. For > instance, Oracle rollbacks any transactions that are being audited it > cannot write to its audit logs. Just want to know what PostgreSQL does. > You should probably look at tablelog for auditing. It automates it. Syslog is not really a good way to handle that. Sincerely, Joshua D. Drake -- Command Prompt, Inc. - http://www.commandprompt.com/ PostgreSQL Support, Training, Professional Services and Development The PostgreSQL Conference - http://www.postgresqlconference.org/ @cmdpromptinc - @postgresconf - 509-416-6579