"Thomas Reiss" <thomas(dot)reiss(at)interieur(dot)gouv(dot)fr> writes:
> I set the following :
> log_destination = 'csvlog'
> logging_collector = on
> log_filename = 'postgresql-%u'
> At server start, PostgreSQL creates a file called "postgresql-2" (for today)
> and a file "postgresql-2.csv".
This is not a bug.
> File "postgresql-2" is empty and never used again, whereas
> "postgresql-2.csv" contains the logs.
The fact that you didn't observe anything being put into it doesn't
mean that will never happen.
regards, tom lane