Server Configuration Tuning in PostgreSQL | Linux Today

Server Configuration Tuning in PostgreSQL

Written By
Web Webster
Web Webster
Oct 22, 2010

[ Thanks to Naheed
for this link. ]

“Logging

“General logging setup is important but it is somewhat outside
the scope of this article. You may need to set parameters such as
log_destination, log_directory, and log_filename to save your log
files in a way compatible with the system administrations
requirements of your environment. These will all be set to
reasonable defaults to get started with on most systems.

“On UNIX-like systems, it’s common for some of the database
logging to be set in the script that starts and stops the server,
rather than directly in the postgresql.conf file. If you instead
use the pg_ctl command to manually start the server, you may
discover that logging ends up on your screen instead. You’ll need
to look at the script that starts the server normally (commonly
/etc/init.d/postgresql) to determine what it does, if you want to
duplicate that behavior. In most cases, you just need to add
–l logfilename to the pg_ctl command line to redirect its
output to the standard location. log_line_prefix

“The default log_line_prefix is empty, which is not what you
want. A good starting value here is the following:”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.