Re: Change "recycled transaction log" from LOG to DEBUG1 - Mailing list pgsql-patches

From Tom Lane
Subject Re: Change "recycled transaction log" from LOG to DEBUG1
Date
Msg-id 4187.1094439931@sss.pgh.pa.us
Whole thread Raw
In response to Re: Change "recycled transaction log" from LOG to DEBUG1  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-patches
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> May as well downgrade the CLOG message as well then.

Agreed.  I've applied the attached extended patch.

            regards, tom lane

*** src/backend/access/transam/slru.c.orig    Sun Aug 29 09:54:52 2004
--- src/backend/access/transam/slru.c    Sun Sep  5 23:01:57 2004
***************
*** 944,950 ****
                  if (doDeletions)
                  {
                      snprintf(path, MAXPGPATH, "%s/%s", ctl->Dir, clde->d_name);
!                     ereport(LOG,
                              (errmsg("removing file \"%s\"", path)));
                      unlink(path);
                  }
--- 944,950 ----
                  if (doDeletions)
                  {
                      snprintf(path, MAXPGPATH, "%s/%s", ctl->Dir, clde->d_name);
!                     ereport(DEBUG1,
                              (errmsg("removing file \"%s\"", path)));
                      unlink(path);
                  }
*** src/backend/access/transam/xlog.c.orig    Sun Aug 29 22:57:29 2004
--- src/backend/access/transam/xlog.c    Sun Sep  5 23:01:58 2004
***************
*** 2154,2167 ****
                                             true, XLOGfileslop,
                                             true))
                  {
!                     ereport(LOG,
                            (errmsg("recycled transaction log file \"%s\"",
                                    xlde->d_name)));
                  }
                  else
                  {
                      /* No need for any more future segments... */
!                     ereport(LOG,
                            (errmsg("removing transaction log file \"%s\"",
                                    xlde->d_name)));
                      unlink(path);
--- 2154,2167 ----
                                             true, XLOGfileslop,
                                             true))
                  {
!                     ereport(DEBUG1,
                            (errmsg("recycled transaction log file \"%s\"",
                                    xlde->d_name)));
                  }
                  else
                  {
                      /* No need for any more future segments... */
!                     ereport(DEBUG1,
                            (errmsg("removing transaction log file \"%s\"",
                                    xlde->d_name)));
                      unlink(path);

pgsql-patches by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: Change "recycled transaction log" from LOG to DEBUG1
Next
From: Weiping
Date:
Subject: fix for pg_dump (caused by array output syntax changes)