pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
 Application Error When Accessing the Table – PostgreSQL 15.18
7+ messages / 5 participants
[nested] [flat]

*  Application Error When Accessing the Table – PostgreSQL 15.18
@ 2026-11-04 06:22 loganathan P <plogandba@gmail.com>
  2026-11-04 07:16 ` Re: Application Error When Accessing the Table – PostgreSQL 15.18 rob stone <floriparob@tpg.com.au>
  2026-11-04 07:27 ` Re: Application Error When Accessing the Table – PostgreSQL 15.18 Laurenz Albe <laurenz.albe@cybertec.at>
  2026-11-04 14:04 `  Re: Application Error When Accessing the Table– PostgreSQL 15.18 loganathan P <plogandba@gmail.com>
  0 siblings, 3 replies; 7+ messages in thread

From: loganathan P @ 2026-11-04 06:22 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org, loganathan P <plogandba@gmail.com>

Dear All,


While accessing the table through the application, I encountered the
following error.
ERROR - missing chunk number 0 for toast value 55195659 in pg_toast_171559.


Thanks,


Regards,

Loganathan P

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Application Error When Accessing the Table – PostgreSQL 15.18
  2026-11-04 06:22  Application Error When Accessing the Table – PostgreSQL 15.18 loganathan P <plogandba@gmail.com>
@ 2026-11-04 07:16 ` rob stone <floriparob@tpg.com.au>
  2 siblings, 0 replies; 7+ messages in thread

From: rob stone @ 2026-11-04 07:16 UTC (permalink / raw)
  To: loganathan P <plogandba@gmail.com>; pgsql-general@lists.postgresql.org

Hello,

On Wed, 2026-11-04 at 11:52 +0530, loganathan P wrote:
> Dear All,
> 
> 
> While accessing the table through the application, I encountered the
> following error.
> ERROR - missing chunk number 0 for toast value 55195659 in
> pg_toast_171559.
> 
> 
> Thanks,
> 
> 
> Regards,
> 
> Loganathan P


That error is usually caused by corruption.

Postgres V15. Did you create the database with checksums enabled?
It is enabled by default from V18 -- current production version.

This post might be helpful.

https://gist.github.com/supix/80f9a6111dc954cf38ee99b9dedf187a

HTH,
Robert








^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Application Error When Accessing the Table – PostgreSQL 15.18
  2026-11-04 06:22  Application Error When Accessing the Table – PostgreSQL 15.18 loganathan P <plogandba@gmail.com>
@ 2026-11-04 07:27 ` Laurenz Albe <laurenz.albe@cybertec.at>
  2026-11-04 15:03   ` Re: Application Error When Accessing the Table – PostgreSQL 15.18 Tom Lane <tgl@sss.pgh.pa.us>
  2026-11-05 02:53   `  Re: Application Error When Accessing the Table – PostgreSQL 15.18 loganathan P <plogandba@gmail.com>
  2 siblings, 2 replies; 7+ messages in thread

From: Laurenz Albe @ 2026-11-04 07:27 UTC (permalink / raw)
  To: loganathan P <plogandba@gmail.com>; pgsql-general@lists.postgresql.org

On Wed, 2026-11-04 at 11:52 +0530, loganathan P wrote:
> While accessing the table through the application, I encountered the following error.
> ERROR - missing chunk number 0 for toast value 55195659 in pg_toast_171559.

This is data corruption.

If you have a good backup, that's the easiest solution.

Other than that, identify the row that causes the error and delete it.

After you got rid of all the visible symptoms of corruption, dump
and restore the database to a newly created cluster - that will get
rid of any lurking corruption.

Yours,
Laurenz Albe






^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Application Error When Accessing the Table – PostgreSQL 15.18
  2026-11-04 06:22  Application Error When Accessing the Table – PostgreSQL 15.18 loganathan P <plogandba@gmail.com>
  2026-11-04 07:27 ` Re: Application Error When Accessing the Table – PostgreSQL 15.18 Laurenz Albe <laurenz.albe@cybertec.at>
@ 2026-11-04 15:03   ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 7+ messages in thread

From: Tom Lane @ 2026-11-04 15:03 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: loganathan P <plogandba@gmail.com>; pgsql-general@lists.postgresql.org

Laurenz Albe <laurenz.albe@cybertec.at> writes:
> On Wed, 2026-11-04 at 11:52 +0530, loganathan P wrote:
>> While accessing the table through the application, I encountered the following error.
>> ERROR - missing chunk number 0 for toast value 55195659 in pg_toast_171559.

> This is data corruption.

Indeed, but you might be able to get out of it by REINDEX'ing that
toast table, especially if you recently used REINDEX CONCURRENTLY
on it.  There's a recently-fixed bug that could lead to damaged
toast indexes, though fortunately not to corruption of the tables
themselves.

			regards, tom lane






^ permalink  raw  reply  [nested|flat] 7+ messages in thread

*  Re: Application Error When Accessing the Table – PostgreSQL 15.18
  2026-11-04 06:22  Application Error When Accessing the Table – PostgreSQL 15.18 loganathan P <plogandba@gmail.com>
  2026-11-04 07:27 ` Re: Application Error When Accessing the Table – PostgreSQL 15.18 Laurenz Albe <laurenz.albe@cybertec.at>
@ 2026-11-05 02:53   ` loganathan P <plogandba@gmail.com>
  2026-11-05 03:48     `  Re: Application Error When Accessing the Table – PostgreSQL 15.18 Ron Johnson <ronljohnsonjr@gmail.com>
  1 sibling, 1 reply; 7+ messages in thread

From: loganathan P @ 2026-11-05 02:53 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-general@lists.postgresql.org; +Cc: Laurenz Albe <laurenz.albe@cybertec.at>; loganathan P <plogandba@gmail.com>

Dear All,

While attempting to delete the corrupted rows, I am encountering the
following error.

ERROR: tuple already updated by self.


Thanks.


Regards,

Loganathan P



On Wed, 4 Nov, 2026, 8:37 pm Tom Lane, <tgl@sss.pgh.pa.us> wrote:

> [image: Boxbe] <https://www.boxbe.com/overview; Tom Lane (
> tgl@sss.pgh.pa.us) is not on your Guest List
> <https://www.boxbe.com/approved-list?tc_serial=61984809141&tc_rand=2014793862&utm_source=stf&...;
> | Approve sender
> <https://www.boxbe.com/anno?tc_serial=61984809141&tc_rand=2014793862&utm_source=stf&utm_m...;
> | Approve domain
> <https://www.boxbe.com/anno?tc_serial=61984809141&tc_rand=2014793862&utm_source=stf&utm_m...;
> Laurenz Albe <laurenz.albe@cybertec.at> writes:
> > On Wed, 2026-11-04 at 11:52 +0530, loganathan P wrote:
> >> While accessing the table through the application, I encountered the
> following error.
> >> ERROR - missing chunk number 0 for toast value 55195659 in
> pg_toast_171559.
>
> > This is data corruption.
>
> Indeed, but you might be able to get out of it by REINDEX'ing that
> toast table, especially if you recently used REINDEX CONCURRENTLY
> on it.  There's a recently-fixed bug that could lead to damaged
> toast indexes, though fortunately not to corruption of the tables
> themselves.
>
>                         regards, tom lane
>

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

*  Re: Application Error When Accessing the Table – PostgreSQL 15.18
  2026-11-04 06:22  Application Error When Accessing the Table – PostgreSQL 15.18 loganathan P <plogandba@gmail.com>
  2026-11-04 07:27 ` Re: Application Error When Accessing the Table – PostgreSQL 15.18 Laurenz Albe <laurenz.albe@cybertec.at>
  2026-11-05 02:53   `  Re: Application Error When Accessing the Table – PostgreSQL 15.18 loganathan P <plogandba@gmail.com>
@ 2026-11-05 03:48     ` Ron Johnson <ronljohnsonjr@gmail.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Ron Johnson @ 2026-11-05 03:48 UTC (permalink / raw)
  To: loganathan P <plogandba@gmail.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-general@lists.postgresql.org, Laurenz Albe <laurenz.albe@cybertec.at>

Try deleting that one row.  Or exporting every row of the table *except* that
one row.  (Then recreate the table and import.)

On Wed, Nov 4, 2026 at 9:53 PM loganathan P <plogandba@gmail.com> wrote:

> Dear All,
>
> While attempting to delete the corrupted rows, I am encountering the
> following error.
>
> ERROR: tuple already updated by self.
>
>
> Thanks.
>
>
> Regards,
>
> Loganathan P
>
>
>
> On Wed, 4 Nov, 2026, 8:37 pm Tom Lane, <tgl@sss.pgh.pa.us> wrote:
>
>> [image: Boxbe] <https://www.boxbe.com/overview; Tom Lane (
>> tgl@sss.pgh.pa.us) is not on your Guest List
>> <https://www.boxbe.com/approved-list?tc_serial=61984809141&tc_rand=2014793862&utm_source=stf&...;
>> | Approve sender
>> <https://www.boxbe.com/anno?tc_serial=61984809141&tc_rand=2014793862&utm_source=stf&utm_m...;
>> | Approve domain
>> <https://www.boxbe.com/anno?tc_serial=61984809141&tc_rand=2014793862&utm_source=stf&utm_m...;
>> Laurenz Albe <laurenz.albe@cybertec.at> writes:
>> > On Wed, 2026-11-04 at 11:52 +0530, loganathan P wrote:
>> >> While accessing the table through the application, I encountered the
>> following error.
>> >> ERROR - missing chunk number 0 for toast value 55195659 in
>> pg_toast_171559.
>>
>> > This is data corruption.
>>
>> Indeed, but you might be able to get out of it by REINDEX'ing that
>> toast table, especially if you recently used REINDEX CONCURRENTLY
>> on it.  There's a recently-fixed bug that could lead to damaged
>> toast indexes, though fortunately not to corruption of the tables
>> themselves.
>>
>>                         regards, tom lane
>>
>

-- 
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

*  Re: Application Error When Accessing the Table– PostgreSQL 15.18
  2026-11-04 06:22  Application Error When Accessing the Table – PostgreSQL 15.18 loganathan P <plogandba@gmail.com>
@ 2026-11-04 14:04 ` loganathan P <plogandba@gmail.com>
  2 siblings, 0 replies; 7+ messages in thread

From: loganathan P @ 2026-11-04 14:04 UTC (permalink / raw)
  To: rob stone <floriparob@tpg.com.au>; +Cc: pgsql-general@lists.postgresql.org

Dear All,

Postgres V15. Did you create the database with checksums enabled?

Answer :- No, the database was not created with data checksums enabled.
Please let me know what the next steps are for recovering the corrupted
table without backup.


Thanks.


Regards,
Loganathan P





On Wed, Nov 4, 2026 at 12:59 PM rob stone <floriparob@tpg.com.au> wrote:

> [image: Boxbe] <https://www.boxbe.com/overview; rob stone (
> floriparob@tpg.com.au) is not on your Guest List
> <https://www.boxbe.com/approved-list?tc_serial=61984369953&tc_rand=852181494&utm_source=stf&a...;
> | Approve sender
> <https://www.boxbe.com/anno?tc_serial=61984369953&tc_rand=852181494&utm_source=stf&utm_me...;
> | Approve domain
> <https://www.boxbe.com/anno?tc_serial=61984369953&tc_rand=852181494&utm_source=stf&utm_me...;
> Hello,
>
> On Wed, 2026-11-04 at 11:52 +0530, loganathan P wrote:
> > Dear All,
> >
> >
> > While accessing the table through the application, I encountered the
> > following error.
> > ERROR - missing chunk number 0 for toast value 55195659 in
> > pg_toast_171559.
> >
> >
> > Thanks,
> >
> >
> > Regards,
> >
> > Loganathan P
>
>
> That error is usually caused by corruption.
>
> Postgres V15. Did you create the database with checksums enabled?
> It is enabled by default from V18 -- current production version.
>
> This post might be helpful.
>
> https://gist.github.com/supix/80f9a6111dc954cf38ee99b9dedf187a
>
> HTH,
> Robert
>
>
>

^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2026-11-05 03:48 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 06:22  Application Error When Accessing the Table – PostgreSQL 15.18 loganathan P <plogandba@gmail.com>
2026-11-04 07:16 ` rob stone <floriparob@tpg.com.au>
2026-11-04 07:27 ` Laurenz Albe <laurenz.albe@cybertec.at>
2026-11-04 15:03   ` Tom Lane <tgl@sss.pgh.pa.us>
2026-11-05 02:53   ` loganathan P <plogandba@gmail.com>
2026-11-05 03:48     ` Ron Johnson <ronljohnsonjr@gmail.com>
2026-11-04 14:04 `  Re: Application Error When Accessing the Table– PostgreSQL 15.18 loganathan P <plogandba@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox