Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9eHc-004Y08-Kj for pgsql-admin@arkaria.postgresql.org; Fri, 17 Oct 2025 06:49:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v9eHa-000GhE-R2 for pgsql-admin@arkaria.postgresql.org; Fri, 17 Oct 2025 06:49:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9eHa-000Gh5-EP for pgsql-admin@lists.postgresql.org; Fri, 17 Oct 2025 06:49:45 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v9eHW-002fRg-2s for pgsql-admin@postgresql.org; Fri, 17 Oct 2025 06:49:44 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-634b774f135so2689421a12.2 for ; Thu, 16 Oct 2025 23:49:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1760683781; x=1761288581; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=+6OkrUr5j8zPWN/V+tyWNjh7QlE8QMXw33fBG4gnpds=; b=Mltk6B3PfwQTpGes/mN/5iouIjOK7iIZfC1osN2rDIxLN8fX4wWCCBC8pwfD4g0uhQ pyuX1IzY7jw7sQicMMZz23nXrR80vu4nTc6jsE7K3fB3Pck3b4iFGglOPdkQKFRn3y/e uoN5jo1y7rhoa4ieYFoEczkiNiUPDNzqYgEC+/MiMsxNCR54zm6QQO2fXwnrXZY2Wq2F vNe1S+hYmOg0+vld7XZpa3ibgTdqEQC5f/X0PoZEPShklq+I4iiZspH6KeR2jYOqRmIB UqQtN6t7A83LAzjEJp99vrYQNqAd7IG0IB6WiMIWe24DXZoRmmF4HDHg6fg5NzeGFcTa PfMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760683781; x=1761288581; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=+6OkrUr5j8zPWN/V+tyWNjh7QlE8QMXw33fBG4gnpds=; b=Ub8NWkLOSJvdNIjDXXj3rjiC7DsVgLNeMAIzFJJnLNHk9sDL9S88nOYzR8JoGhcuXz iWdGuNDdxzy/0IjXIq9ItmZkzvngCBxEssHQ3a37/8qqeQeiaVtTs10FU7tQrbLIgR9M uGj6hRJwVGe6OEuhSDjsV86K2JM6ZXfYvJ6ac43fCynCFiBsvG47hGkHqg1GzIHPEZQ2 bIEzZr+sbovn/1rvoGHAS/NcmUt7hDx+ixPHxXIhpzUTJdgisyYiREFJ4WmcUy1BnG7u Qjg7+PoU2Mu/pvecVggx4zxY+jk2rGSmpcyHmanp2uy860n1Cl4SQcDVFLoesk169BcK Wu1w== X-Forwarded-Encrypted: i=1; AJvYcCUadGRT72yIlMnIggcrq1z2MQFzrYloUa9IGhiipTKbiC83VrJ7+BSUM9JwzsqPBuBh6rC/Z4d4dhCjig==@postgresql.org X-Gm-Message-State: AOJu0YwdDZ/wKHcmOwQ93/A9YvOMuBdtFav0DtnZ8tXy7800pTWdwnEN 6kYqR9VAqmYVejX6S3/N4u3H3xj0N4aDjvlP0/wj7KFTSRoOq3NSKq/kCCaZE6WviIk= X-Gm-Gg: ASbGncvYJRBBOv/jp6FQLn/9pKghrvga2fD1+767YhAa5vi9EZGBMXxcccvtD7Drpg4 c1zZhP9SaQs1W/opNTAo5fz+gKjtoGkhaHbpCx4yMvBlGa1yaZhpgZxAALOXh3rg90w0cS7Odr+ PGdzw0yzjBj/u26qQCmWEyie51iF/Zwai8PPzLKy2e2ZZR8+L1JqoJnW7RLGcDfqU+vDk8aKlR2 gyWfFtY2ti2I5bYAh9wBdLRO8+IKO2ziQEJcoYB32G7FwBFGBLcmf2gDOriqhOyHP/kS49h/inE TERIIfWR1ts+Xgc1BdxYSbtL9CrHDHMeHnFI9gGENQ5PJjS5ouaFseQbm1nuKOkqC6dUZdz7oeK ZFGCiBDAtv2KhojPsfca6zVDg5bkWxG9tf0KTTbucZ8p/CcMnkIxWVa4Q55e0vWKMFmDlv15n9g yAvjQXbCk/uU5ug7NugP4vSeCw/C+i4TFMmwzNvc95 X-Google-Smtp-Source: AGHT+IEC5heemOOLbinepVRsnca1dRqKb9RwQT5VTTRrM55VT1jKUE9yrJFguuGAvOXPM2SmZL2EkQ== X-Received: by 2002:a17:907:2d09:b0:b40:6e13:1a7f with SMTP id a640c23a62f3a-b6474b3140amr314184066b.27.1760683781339; Thu, 16 Oct 2025 23:49:41 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:70:67ae:d15b:e7de:415c:f77f]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b5ccd6b9596sm740240966b.80.2025.10.16.23.49.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Oct 2025 23:49:41 -0700 (PDT) Message-ID: <69fea2cba0daafb07ec78ffb3b24b3d38f01cd2e.camel@cybertec.at> Subject: Re: postgres server crash with "Segmentation fault" From: Laurenz Albe To: Ishan Arunkumar Joshi , "pgsql-admin@postgresql.org" Date: Fri, 17 Oct 2025 08:49:40 +0200 In-Reply-To: <1bef483a9e134bb595d3b25a35ac0e16@netcracker.com> References: <1bef483a9e134bb595d3b25a35ac0e16@netcracker.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-10-16 at 11:07 +0000, Ishan Arunkumar Joshi wrote: > We are using PG16.9 in Patroni Postgres setup in production. Last night w= e have face > an issue [various data corruption errors] > > We had to drop the table =E2=80=9Cimpacted_table=E2=80=9D from database o= nce the database is up. >=20 > however we are not able to identify exact root cause behind =E2=80=9Csegm= entation fault=E2=80=9D > error for this table and need expert advice to find the root case and als= o need > suggestions to prevention steps. By dropping the table, you have probably destroyed the evidence needed for = that. If you have a file system backup of the corrupted state, an expert might be= able to identify probable causes. One prevention step would have been to run the latest minor release (curren= tly 16.10). Other than that, make sure that you have a good backup that is occasionally= tested and make sure that the backup is monitored (I have seen cases where the bac= kup was a daily pg_dump, and only when the corruption surfaced, people realized that = the pg_dump had been failing for the exact same reason...). Yours, Laurenz Albe