Re: "COPY TO stdout" statements occurrence in log files

From: Maciek Sakrejda <msakrejda(at)truviso(dot)com>
To: Fernando Mertins <fernando(dot)mertins(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: "COPY TO stdout" statements occurrence in log files
Date: 2011-01-14 20:27:02
Message-ID: AANLkTikF_tSo0EyDCWf5qkmPbuKdHe1Mi-+0O3Fvrq9u@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
msakrejda(at)truviso(dot)com
www.truviso.com

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Nikolas Everett 2011-01-14 21:17:28 Best way to get the latest revision from a table
Previous Message Jon Nelson 2011-01-14 20:11:11 Re: queries with lots of UNIONed relations