Thread: Re: Postgres TR for missing chunk

Re: Postgres TR for missing chunk

From
M Tarkeshwar Rao
Date:
<div class="WordSection1"><p class="MsoNormal"><span style="color:#1F497D">Hello Friends,</span><p
class="MsoNormal"><spanstyle="color:#1F497D"> </span><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Can
youplease tell me the how can I track the which bugs are fixed in which release and when they will be fixed, </span><p
class="MsoNormal"><spanlang="EN-US" style="color:#1F497D">If I want to track the analysis and status of the bug raised
onPostgres. Can I get this information.</span><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span><p
class="MsoNormal"><spanlang="EN-US" style="color:#1F497D">From last few days we are struggling with following
issue:</span><pclass="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><span lang="EN-US"
style="color:#1F497D"><spanstyle="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><spanlang="EN-US" style="color:#1F497D">Additionally we found that few operations on this table is
gettingfailed like select or truncate and a more specific error is thrown as per below:-</span><p
class="MsoListParagraph"><spanlang="EN-US" style="color:red">ERROR:  missing chunk number 0 for toast value 54787 in
pg_toast_2619</span><pclass="MsoListParagraph"><span lang="EN-US" style="color:red">********** Error
**********</span><pclass="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span><p class="MsoNormal"><span
lang="EN-US"style="color:#1F497D">We done all the suggested things on Google but not able to resolve it. I want to know
howto avoid this issue?</span><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span><p
class="MsoNormal"><spanlang="EN-US" style="color:#1F497D">Can you please suggest upto when following bugs will be
resolved?</span><pclass="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span><p class="MsoNormal"><span
lang="EN-US"style="color:#1F497D">There are the known Bug on Postgres. Bugs detail are mentioned below.</span><p
class="MsoNormal"><spanlang="EN-US" style="color:#1F497D"> </span><p class="MsoNormal"><b><u><span lang="EN-US"
style="color:#1F497D;background:yellow;mso-highlight:yellow">BUG#9187: corrupt toast tables</span></u></b><b><u><span
lang="EN-US"style="color:#1F497D"></span></u></b><p class="MsoNormal"><b><u><span lang="EN-US"
style="color:#1F497D"><spanstyle="text-decoration:none"> </span></span></u></b><p class="MsoNormal"><span lang="EN-US"
style="color:#1F497D"><a
href="http://www.postgresql.org/message-id/30154.1392153590@sss.pgh.pa.us">http://www.postgresql.org/message-id/30154.1392153590@sss.pgh.pa.us</a></span><p
class="MsoNormal"><spanlang="EN-US" style="color:#1F497D"><a
href="http://www.postgresql.org/message-id/CAFj8pRAufPtTn5+ohFqPbcd1JzkErsCK51UAkHCWd8nt4osXjA@mail.gmail.com">http://www.postgresql.org/message-id/CAFj8pRAufPtTn5+ohFqPbcd1JzkErsCK51UAkHCWd8nt4osXjA@mail.gmail.com</a></span><p
class="MsoNormal"><spanlang="EN-US" style="color:#1F497D"><a
href="http://www.postgresql.org/message-id/20140211162408.2713.81446@wrigleys.postgresql.org">http://www.postgresql.org/message-id/20140211162408.2713.81446@wrigleys.postgresql.org</a></span><p
class="MsoNormal"><spanlang="EN-US" style="color:#1F497D"> </span><p class="MsoNormal"><b><u><span lang="EN-US"
style="color:#1F497D;background:yellow;mso-highlight:yellow">BUG#7819: missing chunk number 0 for toast value 1235919
inpg_toast_35328</span></u></b><b><u><span lang="EN-US" style="color:#1F497D"></span></u></b><p
class="MsoNormal"><b><u><spanlang="EN-US" style="color:#1F497D"><span
style="text-decoration:none"> </span></span></u></b><pclass="MsoNormal"><span lang="EN-US" style="color:#1F497D"><a
href="http://www.postgresql.org/message-id/C62EC84B2D3CF847899CCF4B589CCF70B20AA08F@BBMBX.backbone.local">http://www.postgresql.org/message-id/C62EC84B2D3CF847899CCF4B589CCF70B20AA08F@BBMBX.backbone.local</a></span><p
class="MsoNormal"><spanlang="EN-US" style="color:#1F497D"> </span><p class="MsoNormal"><span lang="EN-US"
style="color:#1F497D">Thanks!!</span><p class="MsoNormal"><span lang="EN-US"
style="color:#1F497D">Tarkeshwar</span></div>

Re: Postgres TR for missing chunk

From
Robert Haas
Date:
On Tue, Dec 16, 2014 at 1:02 AM, M Tarkeshwar Rao
<m.tarkeshwar.rao@ericsson.com> wrote:
> Can you please tell me the how can I track the which bugs are fixed in which
> release and when they will be fixed,

We don't have a bug tracker, but you can look at the mailing list
threads and the source code repository.

> BUG #9187: corrupt toast tables
>
> http://www.postgresql.org/message-id/30154.1392153590@sss.pgh.pa.us
> http://www.postgresql.org/message-id/CAFj8pRAufPtTn5+ohFqPbcd1JzkErsCK51UAkHCWd8nt4osXjA@mail.gmail.com
> http://www.postgresql.org/message-id/20140211162408.2713.81446@wrigleys.postgresql.org

There's not enough information in that bug report for us to be certain
whether it's a hardware issue or a bug, so I wouldn't expect any
further action on that particular report.

> BUG #7819: missing chunk number 0 for toast value 1235919 in pg_toast_35328
>
> http://www.postgresql.org/message-id/C62EC84B2D3CF847899CCF4B589CCF70B20AA08F@BBMBX.backbone.local

I don't think this has been fixed, but it's probably unlikely to
account for your issue.  It seems that errors due to this problem
would be transient, and you'd have to be doing something strange, like
increasing vacuum_defer_cleanup_age on the fly.  If you're seeing the
same error on the same TOAST table and TOAST value repeatedly, there's
something else going on.  More details might help us figure out what.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Re: Postgres TR for missing chunk

From
Jaime Casanova
Date:
<p dir="ltr"><br /> El dic 16, 2014 1:02 AM, "M Tarkeshwar Rao" <<a
href="mailto:m.tarkeshwar.rao@ericsson.com">m.tarkeshwar.rao@ericsson.com</a>>escribió:<br /> ><br /> > Hello
Friends,<br/> ><br /> >  <br /> ><br /> > Can you please tell me the how can I track the which bugs are
fixedin which release and when they will be fixed,<br /> ><br /> > If I want to track the analysis and status of
thebug raised on Postgres. Can I get this information.<br /> ><br /> >  <p dir="ltr">You can look for bug reports
in<a href="mailto:pgsql-bugs@postgresql.org">pgsql-bugs@postgresql.org</a><br /><p dir="ltr">><br /> > From last
fewdays we are struggling with following issue:<br /> ><br /> > 1.       Additionally we found that few
operationson this table is getting failed like select or truncate and a more specific error is thrown as per below:-<br
/>><br /> > ERROR:  missing chunk number 0 for toast value 54787 in pg_toast_2619<br /> ><br /> >
**********Error **********<br /> ><br /> >  <p dir="ltr">You know, that toast table name ringed a bell.<p
dir="ltr">Lookat this thread maybe this is your problem, and if it is then is already fixed and you should update.<p
dir="ltr"><a
href="http://www.postgresql.org/message-id/12138.1336019219@sss.pgh.pa.us">http://www.postgresql.org/message-id/12138.1336019219@sss.pgh.pa.us</a><p
dir="ltr">Btw,when giving a bug report you should start but saying your PostgreSQL's version and explain what you did
basedon Google's "wisdom"<br /><p dir="ltr">--<br /> Jaime Casanova<br /> 2ndQuadrant Consultant<br /> Your PostgreSQL
partner

Re: Postgres TR for missing chunk

From
Tom Lane
Date:
Jaime Casanova <jaime@2ndquadrant.com> writes:
> You know, that toast table name ringed a bell.
> Look at this thread maybe this is your problem, and if it is then is
> already fixed and you should update.
> http://www.postgresql.org/message-id/12138.1336019219@sss.pgh.pa.us

That was about transient failures though, not persistent ones,
which is what the OP seems to be claiming he's getting.

> Btw, when giving a bug report you should start but saying your PostgreSQL's
> version and explain what you did based on Google's "wisdom"

Yeah.
        regards, tom lane



Re: Postgres TR for missing chunk

From
M Tarkeshwar Rao
Date:
Hello friends,

Thanks for your useful inputs.

We are facing this issue and want to analyse this through logging.
can you please share a sample Postgres config file to enable max logging with syslog support?

What should be the debug level so that I can capture the failure information?

Regards
Tarkeshwar

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: 16 December 2014 22:25
To: Jaime Casanova
Cc: M Tarkeshwar Rao; PostgreSQL-development
Subject: Re: [HACKERS] Postgres TR for missing chunk

Jaime Casanova <jaime@2ndquadrant.com> writes:
> You know, that toast table name ringed a bell.
> Look at this thread maybe this is your problem, and if it is then is
> already fixed and you should update.
> http://www.postgresql.org/message-id/12138.1336019219@sss.pgh.pa.us

That was about transient failures though, not persistent ones, which is what the OP seems to be claiming he's getting.

> Btw, when giving a bug report you should start but saying your
> PostgreSQL's version and explain what you did based on Google's "wisdom"

Yeah.
        regards, tom lane



Re: Postgres TR for missing chunk

From
Robert Haas
Date:
On Fri, Dec 19, 2014 at 4:18 AM, M Tarkeshwar Rao
<m.tarkeshwar.rao@ericsson.com> wrote:
> We are facing this issue and want to analyse this through logging.
> can you please share a sample Postgres config file to enable max logging with syslog support?
>
> What should be the debug level so that I can capture the failure information?

I don't think that cranking up the debug level is going to help you
here.  Instead, you should tell us what you did that ended up causing
this error, especially if it is a reproducible series of steps,
because then we might be able to identify the cause, and/or fix it.

It is worth noting that one possible explanation for this is that your
database is corrupted.  That can happen for a variety of reasons, as I
explained in one of my blog posts:

http://rhaas.blogspot.com/2012/03/why-is-my-database-corrupted.html

You should check and make sure that none of those causes sound like
things that could have happened in your case.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company