Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 115E71337B94 for ; Fri, 14 Jan 2011 18:25:36 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 78931-01 for ; Fri, 14 Jan 2011 22:25:29 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id A80F81337B8A for ; Fri, 14 Jan 2011 18:25:28 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id p0EMPSo9045409 for ; Fri, 14 Jan 2011 18:25:28 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id p0EM8255010493 for pgsql-performance@postgresql.org; Fri, 14 Jan 2011 18:08:02 -0400 (AST) (envelope-from news) From: Chris Browne X-Newsgroups: pgsql.performance Subject: Re: "COPY TO stdout" statements occurrence in log files Date: Fri, 14 Jan 2011 16:19:42 -0500 Organization: cbbrowne Computing Inc Lines: 24 Message-ID: <8739ovdvyp.fsf@cbbrowne.afilias-int.info> References: Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:pTvD3AAQmbVqvo/SmCbAhIJPvJc= To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/107 X-Sequence-Number: 41894 msakrejda@truviso.com (Maciek Sakrejda) writes: >> Is this normal? I'm afraid because my application doesn't run this kind of >> statement, so how can I know what is doing these commands? Maybe pg_dump? > > I think pg_dump is likely, yes, if you have that scheduled. I don't > think anything in the log file will identify it as pg_dump explicitly > (I believe as far as the server is concerned, pg_dump is just another > client), but if you're concerned about this, you can add the client > pid (%p) to log_line_prefix in postgresql.conf, log the pg_dump pid > through whatever mechanism manages that, and compare. That's an option... More are possible... 1. Our DBAs have been known to create users specifically for doing backups ("dumpy"). It doesn't seem like a *huge* proliferation of users to have some 'utility' user names for common processes. 2. In 9.1, there will be a new answer, as there's a GUC to indicate the "application_name". -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook