We're in the process of optimizing a Django powered website and therefore we're anaylsing PostgreSQL logs - looking for long running queries that may be tuned in some way.
We stumbled upon a certain type of (sometimes extremely) long running queries, which we cannot find the source for. They look like this:
COPY public.my_table_name (id, field1, field2, field3, ...) TO stdout;
What could be the cause of these queries? They are rather rare, but they can run up to a minute! Is this something internal of PostgreSQL? Does Django itself trigger them?
stdout, but that output may be piped into some other program or some network channel. Have you been hacked?