Re: [9.3 bug fix] backends emit hundreds of messages when statistics file is inaccessible

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "MauMau" <maumau307(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [9.3 bug fix] backends emit hundreds of messages when statistics file is inaccessible
Date: 2013-07-08 13:08:57
Message-ID: 27433.1373288937@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"MauMau" <maumau307(at)gmail(dot)com> writes:
> I've found a bug in PostgreSQL 9.3 beta 2 which is related to statistics
> collection which emits excesssive amount of error messages. Please find
> attached the patch to fix this. I confirmed this problem occurs in
> PostgreSQL 9.2, too. Could you backport this?

It's not apparent that this is a good idea, let alone a bug fix.

> If the directory specified by stats_temp_directory becomes inaccessible to
> postgres, enormous amount of WARNING messages are output.

Well, yeah, because all of that functionality just broke. Not warning
about it doesn't seem like a good idea. AFAICT, your patch would result
in the situation not being remarked on anywhere except in the postmaster
log.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2013-07-08 13:54:26 Re: Review: Patch to compute Max LSN of Data Pages
Previous Message Ants Aasma 2013-07-08 12:53:46 Re: XLogInsert scaling, revisited