mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
/contrib patch from Karel.
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
drop table access;
|
||||
CREATE TABLE access (host char(200), ident char(200), authuser char(200), accdate datetime, request char(500), ttime int2, status int2, bytes int4) archive = none;
|
||||
grant all on access to nobody;
|
||||
|
@ -1,12 +0,0 @@
|
||||
# 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'
|
||||
|
Reference in New Issue
Block a user