Gathering some of the threads, here's what I see: 1. There is some demand for per database logging. Doing that is rather beyond the scope of what I intended - in fact what I intended was to enable sensible log splitting out of band. I'll even write a perl script to do it for you if you like :-)
2. There is a suggestion of custom log formats, beyond the current on/off flags used, similar to Apache's logging mechanism. Of course, there are some problems - web logs cover one thing - http transactions. Even there, custom logging has led people to grief, and led to the common logging format that web log analysers usually use. And Pg logs cover various kinds of events. Some don't have a sensible db name, for example (like server startup logs messages). Writing code that would allow administrators to specify the log format almost arbitrarily, or even just to order the fields arbitrarily, would be quite a bit of work, and I suspect a constant source of irritating bugs, and I have no interest in doing the work. There are far more valuable things that need to be done. 3. There is debate about field delimiters in the logs. Currently, timestamp when used is a fixed length field at the start of the record, and pid when used is inside [ ]. This is complicated in the case of dbname by the facts that a) dbnames can be almost anything and b) not all records will have a (sensible) dbname to report. I chose [ ] originally to conform to what was done with pid, but now I'm leaning towards something else - too many M$ people have used [ ] in db work for years, so it is likely to crop up in names somehow. Maybe < > or | | - whatever seems least liketo to occur inside a dbname. I want to logs to be readable as well as parseable, or I'd use something like ^ or ~ or `. The other reason to move away from [ ] is that Tom (quite reasonably) wants to keep the char count down, and that would let me drop the "db:" prefix, so the fixed overhead would be 3 chars per line instead of 6 (if you count the trailing space). The bottom line for me is to get the info needed in the logs, and then make them look pretty, split them, or whatever, out of band - that isn't (and shouldn't, IMNSHO) be the server's job. andrew ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match