mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-09 08:10:09 +08:00
85fe4cc17d
From: Terry Mackintosh <terry@terrym.com>
13 lines
597 B
Plaintext
13 lines
597 B
Plaintext
# This is mostly the same as the default, except for no square brakets around
|
|
# the time or the extra timezone info, also added the download time, 3rd from
|
|
# the end, number of seconds.
|
|
|
|
LogFormat "insert into access values ( '%h', '%l', '%u', '%{%d/%b/%Y:%H:%M:%S}t', '%r', %T, %s, %b );"
|
|
|
|
|
|
# The above format ALMOST eleminates the need to use sed, except that I noticed
|
|
# that when a frameset page is called, then the bytes transfered is '-', which
|
|
# will choke the insert, so replaced it with '-1'.
|
|
|
|
TransferLog '| su -c "sed \"s/, - );$/, -1 );/\" | /usr/local/pgsql/bin/psql www_log" nobody'
|