Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n02pf-00013H-8f for pgsql-general@arkaria.postgresql.org; Wed, 22 Dec 2021 14:43:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n02pe-0002Bk-59 for pgsql-general@arkaria.postgresql.org; Wed, 22 Dec 2021 14:43:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n02pd-0002Ba-Pe for pgsql-general@lists.postgresql.org; Wed, 22 Dec 2021 14:43:05 +0000 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n02pb-0000Au-9b for pgsql-general@lists.postgresql.org; Wed, 22 Dec 2021 14:43:04 +0000 Received: by mail-oi1-x235.google.com with SMTP id bk14so4231563oib.7 for ; Wed, 22 Dec 2021 06:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=PSEWYysVZdfDp+zOwjeRJ84jMbDId145NFwqE1Akf8Y=; b=iZyoQSmlUEAPymr+iq52TTHjiNHBI2kQQO35MzmqlgOyOtx3eLxaMhJlG6t/4TAMoo GUukzVlNgpcFephdosz24z2j4SCtkr61lhKrxyHHB+AiX+6U44Ud4ojAY0nFUxCTS3w3 eOjtWuC3DN/u6XgOhD0VZIP5sRJ1Ybg1M4yQyYuPmQX3nBtCaO/SunQF099Wf00z73ic EqfP3pMMOXPuSPlj9IAvblQN5rAAAEKCMmg8OI2W0sS7x8vsRH5AEL+eQot9aBFER46z 0LmHaiz/kxXTgjDFElCaYopFwQj6hAMfaHHr0UjpfYttFLmig8qXoW5LfmFX6OR4yJ8I ceYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=PSEWYysVZdfDp+zOwjeRJ84jMbDId145NFwqE1Akf8Y=; b=z+/6rTjduM8ah6GXnt4WvciAEEhOOV/OQB+lM5+aiON/UalAMyTrtua1Lgmt8T84lp /faslHdoU4DmXsw4CqzIVsJUFXyeF5hnKZtRlgHCEeeENh9SREM/mSV8+n5C5VqgiYCj dRWxpWALR/C2hTSNxoWDFmEqUSGDKVklzVQ+EYdrvYlVMwx4o8tW7sM7MzKf9VPiQyz1 jar5tO6bW/S8dn3GOFyvTwy+d/PfFytRvRKk77aprv28MHhkwLPXabd7lVzHe8oXtIrU 9BQvY+U8/c/LouRlDozjGacEeAZ9ZUJTFUHxuj7cMolIGVwWEDtVN0j95gpbRKy2EC4B fcgA== X-Gm-Message-State: AOAM531m6eDc9j2RiWHIuOrXuoHDl9C8Zapy9TyYR7fpfYcY5mVkp/s2 PXccpWzNKfiHBd61fUwGx5jP+geesbs= X-Google-Smtp-Source: ABdhPJzg7WH1Zjw1J+VBryCMFnk6JYoZuOrUIWZJ0nMkHzGRbIPWtyyZwsWQY5FR6DgTI1vmaaDhww== X-Received: by 2002:a05:6808:d4d:: with SMTP id w13mr936750oik.85.1640184182149; Wed, 22 Dec 2021 06:43:02 -0800 (PST) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id bf17sm407354oib.27.2021.12.22.06.43.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Dec 2021 06:43:01 -0800 (PST) Subject: Re: Postgresql crashing during pg_dump To: pgsql-general@lists.postgresql.org References: <237409.1640184030@sss.pgh.pa.us> From: Ron Message-ID: <2330a009-51ee-9552-b1c6-809b49d0efac@gmail.com> Date: Wed, 22 Dec 2021 08:43:00 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <237409.1640184030@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/22/21 8:40 AM, Tom Lane wrote: > Paulo Silva writes: >> I have a huge table with 141456059 records on a PostgreSQL 10.18 database. >> When I try to do a pg_dump on that table, postgresql gives a segfault, >> displaying this message: >> 2021-12-22 14:08:03.437 UTC [15267] LOG: server process (PID 25854) was >> terminated by signal 11: Segmentation fault > What this sounds like is corrupt data somewhere in that table. > > There's some advice about dealing with such cases here: > > https://wiki.postgresql.org/wiki/Corruption > > If this is extremely valuable data, you might prefer to hire somebody > who specializes in data recovery, rather than trying to handle it > yourself. I'd still follow the wiki page's "first response" advice, > ie take a physical backup ASAP. COPY the table in PK ranges to narrow down the offending record? -- Angular momentum makes the world go 'round.