PostgreSQL logfiles taking up too much space
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Aug 2009
    Posts
    2

    Default PostgreSQL logfiles taking up too much space

    I recently noticed that the PostgreSQL logfiles are taking up a lot of space on my hard drive. A couple of days ago it was taking up around 40 GB and now its already more than 50 GB. I assume something is wrong here. What should I do? Can I just delete the logfiles in PostgreSQL > 8.2 > data > pg_log?

  2. #2
    HM Support netsrak's Avatar
    Join Date
    Feb 2009
    Location
    Germany
    Posts
    25,795

    Default

    You can delete all files in the pg_log folder.

    Fozzy has posted instructions for changing the Postgresql installation to write no log files. I can't find it in the moment. Please try to search on your own.

  3. #3
    Junior Member
    Join Date
    Aug 2009
    Posts
    2

    Default

    Ok I have got it thanks

  4. #4
    *** HM3! *** fozzy71's Avatar
    Join Date
    Jun 2005
    Location
    HM Support
    Posts
    32,810

    Default

    I did a support session the other day with a customer. He had 6 or 7 separate DBs. Most of them were older PT3 DBs. His 16gb DB had 14gb of log files.

    In case anyone needs the instructions:




    Logging:

    I would suggest you turn off logging on your new SQL installation as well as these other performance improvements - Top 10: HEM performance increase tips


    To turn off logging, follow these instructions. This is the first thing I do anytime I install SQL for someone.

    - Start > My Computer > Tools > Folder Options > View > UnCheck 'Hide Extensions for known file types' > OK

    - C:\Program Files\PostgreSQL\data\postgresql.conf > Right-Click > Open With.. > NotePad > Check 'Always use this program'

    - Scroll about half way down to ~Lines 245 - 260:

    - The last line of this block of code, for the 'logging_collector', must be changed from On to Off.

    PHP Code:
    ------------------------------------------------------------------------------
    # ERROR REPORTING AND LOGGING
    #------------------------------------------------------------------------------

    # - Where to Log -

    log_destination 'stderr'        # Valid values are combinations of
                        # stderr, csvlog, syslog and eventlog,
                        # depending on platform.  csvlog
                        # requires logging_collector to be on.

    # This is used when logging to stderr:
    logging_collector off        # Enable capturing of stderr and csvlog 
    File > Save; File > Close

    Start > Programs > PostgreSQL 8.3 > Reload Configuration.

Similar Threads

  1. Note taking in hm pissing me off..
    By akvsaq in forum Manager General
    Replies: 20
    Last Post: 05-12-2014, 09:38 PM
  2. HM taking up a lot of disk space
    By UBOXER in forum Manager General
    Replies: 31
    Last Post: 11-07-2009, 10:41 PM
  3. Replayer Note Taking
    By Lucky Stiff in forum Manager General
    Replies: 21
    Last Post: 09-14-2009, 01:08 PM
  4. PostGreSQL eats up my HD space
    By TheBoon in forum Manager General
    Replies: 1
    Last Post: 08-23-2008, 08:42 AM
  5. Note taking
    By Leonardo51 in forum Manager General
    Replies: 1
    Last Post: 08-10-2008, 06:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •