Sv: RE: Transactions - Mailing list pgsql-general

From Andreas Joseph Krogh
Subject Sv: RE: Transactions
Date
Msg-id VisenaEmail.7.5f9cc306e7db9b59.16a018e2ee0@tc7-visena
Whole thread Raw
In response to RE: Transactions  (Karl Martin Skoldebrand <KS0C77263@TechMahindra.com>)
List pgsql-general
På tirsdag 09. april 2019 kl. 11:56:28, skrev Karl Martin Skoldebrand <KS0C77263@TechMahindra.com>:

How much impact on performance and disk space would this or

set log_min_duration_statement=0

have?

 

I have no idea as to how common this is, or when it happens, so it would need to run until this reported again (or some reasonable time if it doesn’t happen).

Well, the answer here is of course "it depends"...
If you have lots of activity the logs will fill up quite quickly, but you can easily test this in production and just turn off logging again by setting it to 'none' and reload settings (no need to restart).
 
You can also only log modifications by setting
log_statement = 'mod'
 
Also watch out for triggers modifying stuff.
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
 
Attachment

pgsql-general by date:

Previous
From: Karl Martin Skoldebrand
Date:
Subject: RE: Transactions
Next
From: Achilleas Mantzios
Date:
Subject: Re: Transactions