pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedLogging in postgres
7+ messages / 3 participants
[nested] [flat]
* Logging in postgres
@ 2002-01-26 12:30 Antony Stace <s45652001@yahoo.com>
2002-01-26 14:23 ` Re: Logging in postgres Markus Bertheau <twanger@bluetwanger.de>
0 siblings, 1 reply; 7+ messages in thread
From: Antony Stace @ 2002-01-26 12:30 UTC (permalink / raw)
To: pgsql-admin
Hi Folks
I want to log all of the inserts and delete that occur in a postgres database. Whats the easiest way to do this?
--
Cheers
Tony
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Logging in postgres
2002-01-26 12:30 Logging in postgres Antony Stace <s45652001@yahoo.com>
@ 2002-01-26 14:23 ` Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 15:12 ` Re: Logging in postgres Antony Stace <s45652001@yahoo.com>
0 siblings, 1 reply; 7+ messages in thread
From: Markus Bertheau @ 2002-01-26 14:23 UTC (permalink / raw)
To: Antony Stace <s45652001@yahoo.com>; +Cc: pgsql-admin
On Sat, 2002-01-26 at 13:30, Antony Stace wrote:
>
> Hi Folks
>
> I want to log all of the inserts and delete that occur in a postgres database. Whats the easiest way to do this?
tweak your postgresql.conf
Markus Bertheau
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Logging in postgres
2002-01-26 12:30 Logging in postgres Antony Stace <s45652001@yahoo.com>
2002-01-26 14:23 ` Re: Logging in postgres Markus Bertheau <twanger@bluetwanger.de>
@ 2002-01-26 15:12 ` Antony Stace <s45652001@yahoo.com>
2002-01-26 15:05 ` Re: Logging in postgres Markus Bertheau <twanger@bluetwanger.de>
0 siblings, 1 reply; 7+ messages in thread
From: Antony Stace @ 2002-01-26 15:12 UTC (permalink / raw)
To: Markus Bertheau <twanger@bluetwanger.de>; +Cc: pgsql-admin
Thanks for the reply Markus. I have added
log_connections = yes
log_timestamp = true
log_pid = true
syslog = 2
to my postgresql.conf file but it dosent seem to have caused any logging to occur in
/var/log/postgresql
Anything else I need to do?
> tweak your postgresql.conf
>
> Markus Bertheau
Cheers
Tony
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Logging in postgres
2002-01-26 12:30 Logging in postgres Antony Stace <s45652001@yahoo.com>
2002-01-26 14:23 ` Re: Logging in postgres Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 15:12 ` Re: Logging in postgres Antony Stace <s45652001@yahoo.com>
@ 2002-01-26 15:05 ` Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 15:51 ` Re: Logging in postgres Antony Stace <s45652001@yahoo.com>
0 siblings, 1 reply; 7+ messages in thread
From: Markus Bertheau @ 2002-01-26 15:05 UTC (permalink / raw)
To: Antony Stace <s45652001@yahoo.com>; +Cc: pgsql-admin
On Sat, 2002-01-26 at 16:12, Antony Stace wrote:
> Thanks for the reply Markus. I have added
>
> log_connections = yes
> log_timestamp = true
> log_pid = true
> syslog = 2
>
> to my postgresql.conf file but it dosent seem to have caused any logging to occur in
>
> /var/log/postgresql
>
> Anything else I need to do?
add
debug_print_query = true
Markus Bertheau
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Logging in postgres
2002-01-26 12:30 Logging in postgres Antony Stace <s45652001@yahoo.com>
2002-01-26 14:23 ` Re: Logging in postgres Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 15:12 ` Re: Logging in postgres Antony Stace <s45652001@yahoo.com>
2002-01-26 15:05 ` Re: Logging in postgres Markus Bertheau <twanger@bluetwanger.de>
@ 2002-01-26 15:51 ` Antony Stace <s45652001@yahoo.com>
2002-01-26 15:42 ` Re: Logging in postgres Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 16:57 ` Re: Logging in postgres Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 7+ messages in thread
From: Antony Stace @ 2002-01-26 15:51 UTC (permalink / raw)
To: Markus Bertheau <twanger@bluetwanger.de>; +Cc: pgsql-admin
>
> > log_connections = yes
> > log_timestamp = true
> > log_pid = true
> > syslog = 2
> >
> > to my postgresql.conf file but it dosent seem to have caused any logging to occur in
> >
> > /var/log/postgresql
> >
> > Anything else I need to do?
>
> add
>
> debug_print_query = true
>
I just added
debug_print_query
restarted postgres and then did a few queries in the database. But nothing
is being logged in /var/log/postgresql. Any ideas what else might be wrong?
Cheers
Tony
---------------------------------------------------------------------
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Logging in postgres
2002-01-26 12:30 Logging in postgres Antony Stace <s45652001@yahoo.com>
2002-01-26 14:23 ` Re: Logging in postgres Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 15:12 ` Re: Logging in postgres Antony Stace <s45652001@yahoo.com>
2002-01-26 15:05 ` Re: Logging in postgres Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 15:51 ` Re: Logging in postgres Antony Stace <s45652001@yahoo.com>
@ 2002-01-26 15:42 ` Markus Bertheau <twanger@bluetwanger.de>
1 sibling, 0 replies; 7+ messages in thread
From: Markus Bertheau @ 2002-01-26 15:42 UTC (permalink / raw)
To: Antony Stace <s45652001@yahoo.com>; +Cc: pgsql-admin
On Sat, 2002-01-26 at 16:51, Antony Stace wrote:
>
> >
> > > log_connections = yes
> > > log_timestamp = true
> > > log_pid = true
> > > syslog = 2
> > >
> > > to my postgresql.conf file but it dosent seem to have caused any logging to occur in
> > >
> > > /var/log/postgresql
> > >
> > > Anything else I need to do?
> >
> > add
> >
> > debug_print_query = true
> >
> I just added
>
> debug_print_query
>
> restarted postgres and then did a few queries in the database. But nothing
> is being logged in /var/log/postgresql. Any ideas what else might be wrong?
hmm, that is my postgresql.conf:
tcpip_socket = true
port = 5432
hostname_lookup = false
sort_mem = 128
shared_buffers = 12288 # min 16
fsync = off
deadlock_timeout = 10000
wal_buffers = 64 # min 4
wal_files = 4 # range 0-64
log_connections = true
log_timestamp = true
log_pid = true
debug_print_query = true
debug_print_rewritten = false
show_executor_stats = false
show_query_stats = false
what is different?
btw: I presume we talk about 7.1.x
Markus Bertheau
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Logging in postgres
2002-01-26 12:30 Logging in postgres Antony Stace <s45652001@yahoo.com>
2002-01-26 14:23 ` Re: Logging in postgres Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 15:12 ` Re: Logging in postgres Antony Stace <s45652001@yahoo.com>
2002-01-26 15:05 ` Re: Logging in postgres Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 15:51 ` Re: Logging in postgres Antony Stace <s45652001@yahoo.com>
@ 2002-01-26 16:57 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 7+ messages in thread
From: Tom Lane @ 2002-01-26 16:57 UTC (permalink / raw)
To: Antony Stace <s45652001@yahoo.com>; +Cc: Markus Bertheau <twanger@bluetwanger.de>; pgsql-admin
Antony Stace <s45652001@yahoo.com> writes:
> restarted postgres and then did a few queries in the database. But nothing
> is being logged in /var/log/postgresql. Any ideas what else might be wrong?
If you're not seeing any log output at all, then either:
1. Postgres is logging to postmaster's stderr but you've directed same
to /dev/null (or not where you are looking, anyway).
2. Postgres is logging to syslog, but you've configured syslog to
discard the output (or put it somewhere else than where you are
looking).
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2002-01-26 16:57 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-01-26 12:30 Logging in postgres Antony Stace <s45652001@yahoo.com>
2002-01-26 14:23 ` Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 15:12 ` Antony Stace <s45652001@yahoo.com>
2002-01-26 15:05 ` Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 15:51 ` Antony Stace <s45652001@yahoo.com>
2002-01-26 15:42 ` Markus Bertheau <twanger@bluetwanger.de>
2002-01-26 16:57 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox