Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1749233 - by default 'log_min_duration_statement = 1000' should be configured for PostgreSQL
Summary: by default 'log_min_duration_statement = 1000' should be configured for Postg...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: 6.7.0
Assignee: Ewoud Kohl van Wijngaarden
QA Contact: Devendra Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-05 07:59 UTC by Jan Hutař
Modified: 2020-04-14 13:25 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Not needed in release notes.
Clone Of:
Environment:
Last Closed: 2020-04-14 13:25:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 27846 0 Normal Closed by default 'log_min_duration = 1000' should be configured for PostgreSQL 2020-01-28 10:00:13 UTC
Red Hat Product Errata RHSA-2020:1454 0 None None None 2020-04-14 13:25:45 UTC

Description Jan Hutař 2019-09-05 07:59:34 UTC
Description of problem:
To gather more data when checking support cases, having 'log_min_duration = 1000' in PostgreSQL config by default would be great.


Expected results:
'log_min_duration = 500' should be in PostgreSQL config file on both freshly installed and upgraded Satellite:

# grep log_min_duration /var/lib/pgsql/data/postgresql.conf


Additional info:
Tuning profiles already have 'log_min_duration = 500'
https://github.com/RedHatSatellite/satellite-support/tree/master/tuning-profiles

Note this can be also achieved via /etc/foreman-installer/custom-hiera.yaml by:

postgresql::server::config_entries:
  log_min_duration_statement: 1000

Comment 2 Ewoud Kohl van Wijngaarden 2019-09-12 16:12:50 UTC
Created redmine issue https://projects.theforeman.org/issues/27846 from this bug

Comment 3 Ewoud Kohl van Wijngaarden 2019-09-12 16:18:01 UTC
The title says 1000 but the expected result states 500. Which one should it be? In https://github.com/theforeman/foreman-installer/pull/389 I went with 1000 since that feels like a safer default to me.

Comment 4 Jan Hutař 2019-09-12 17:36:39 UTC
I'm very sorry for confusion. Make it "1000" for start.

Comment 5 Bryan Kearney 2019-09-12 20:05:00 UTC
Upstream bug assigned to ekohlvan

Comment 6 Bryan Kearney 2019-09-12 20:05:02 UTC
Upstream bug assigned to ekohlvan

Comment 12 sthirugn@redhat.com 2019-12-12 16:39:46 UTC
This can wait for 6.7.0 release, removing the 6.6.z flag.

Comment 13 Devendra Singh 2020-01-28 10:20:06 UTC
Verified this issue with 6.7 Snap 10 on the upgraded as well as freshly installed setup.

# rpm -q satellite-installer
satellite-installer-6.7.0.6-1.beta.el7sat.noarch

grep log_min_duration /var/lib/pgsql/data/postgresql.conf
   #log_min_duration_statement = -1	# -1 is disabled, 0 logs all statements
   log_min_duration_statement = 1000

Comment 16 errata-xmlrpc 2020-04-14 13:25:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1454


Note You need to log in before you can comment on or make changes to this bug.