"Tomas Vondra" <tv(at)fuzzy(dot)cz> writes:
> On 23 jen 2013, 16:00, Jon Nelson wrote:
>> After several days of running a simple query over a very large dataset
>> (more than a terabyte), I logged in to note that postgresql had
>> decided to log *billions* of log lines.
> First guess is that you enabled detailed logging in config.
I think it's trace_sort.
regards, tom lane