Re: Help: unfixable/undead error - missing chunk number 0 for toast value 413511 in pg_toast_25477

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have run this with success several times.  I modified it to be intuitive. There may be a typo or two but have a look at this:

DO $f$

DECLARE

    baddata TEXT;

    badid INT;

BEGIN

FOR badid IN SELECT id FROM badtable LOOP

    BEGIN

        SELECT badcolumn

        INTO columndata

        FROM badtable where id = badid;

    EXCEPTION

        WHEN OTHERS THEN

            RAISE NOTICE 'Data for ID % is corrupt', badid;

            CONTINUE;

    END;

END LOOP;

END;

$f$




On Wed, Jan 25, 2017 at 1:30 PM, Maris Jansons <maris@xxxxxxxxxx> wrote:
Hello,
> A couple things you can try.
> 1. reindex your toast table.
> 2. write a loop that ..

I already have done both, did not help, check the original message for details.

Best Regards,
Maris.




--
Thanks,

Jorge Torralba
----------------------------

Note: This communication may contain privileged or other confidential information. If you are not the intended recipient, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this email in error and delete the copy you received. Thank You.

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux