Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8186647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:16:58+00:00 2026-06-07T02:16:58+00:00

I have a standard Ubuntu postgres9.1 install running continuosly, I may not stop it.

  • 0

I have a standard Ubuntu postgres9.1 install running continuosly, I may not stop it.

Nothing has been specifically configured regarding the logging target,
so there is a (rotating somehow)
logfile /var/log/postgresqlpostgresql-9.1-main.log.
I suppose, it grabs the standard output of the processes.

What I want is to configure a different file target, and, without restart,
(Sorry, no collector, no syslog … those need restarting)
but with reconfig, the new child processes used that file.

Is that possible?
Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:17:01+00:00Added an answer on June 7, 2026 at 2:17 am

    I’ve modified my previous answer because as Daniel Vérité pointed out, you can’t set the log file without using the logging_collector, the log_filename option will be ignored.

    Rotation is done through “copy-truncate”. That is logrotate makes a copy of the file and then empties the main log file.

    In this case I think you will be lucky in that the server opens up a file handle to the log and uses just that one to write to. This means that you can simply rename the file mv old_name.log new_name.log. The file handle that postgresql uses is bound to the file itself and not the name.

    This solution does come with the problem that when the server is restarted, it will create a new log file under the old name. You will need to make configuration changes so that when it restarts it continues to write to the same place.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program in C++, using the standard socket API, running on Ubuntu
I'm running Ubuntu 11.10 and have installed rvm using the standard instructions listed here
I have a mobile site running with jQuery Mobile. I want to have standard
I have a standard text input that has a blur event. The blur event
I have a standard Apache2 installation on an Ubuntu server. The default settings use
I have Ubuntu 8.04 running on a Xen based VPS server that runs on
I've installed CouchDB in Ubuntu 11.10. I have an HTTPD server running (which functions
Using mysql directly from the command line (running on Ubuntu 9.10, standard bash terminal),
I have standard source code package under Linux which requires to run ./configure make
Is it possible to have standard war deployment, which can be deployed on tomcat

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.