Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqIyf-00063d-DX for pgsql-general@arkaria.postgresql.org; Wed, 24 Jul 2019 15:14:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hqIye-0005EL-8X for pgsql-general@arkaria.postgresql.org; Wed, 24 Jul 2019 15:14:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqIyd-0005DV-Uq for pgsql-general@lists.postgresql.org; Wed, 24 Jul 2019 15:14:47 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqIyb-0002uE-4V for pgsql-general@lists.postgresql.org; Wed, 24 Jul 2019 15:14:46 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E9214220A7; Wed, 24 Jul 2019 11:14:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 24 Jul 2019 11:14:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=3 pArgru2AA0CL/UKQ2JFdeJQ2+8IOTB+uA6soPSjYTw=; b=RQTC4CE+/HDWFOj+K CtBLyVDkP11jqv3az+7lB462t5qBUAggvBQoXCV7LZi4//AC8u0HIjOkcd2LpQT1 6DKtAXUohQUDHfX8r94BzX1GD40gaVj/lE6/ExS1LKBOobPMPeUtwIUIboyCzuqV BAR8NNd08NGLUbCTBJ9pYzB6p+V19sozlYvb7cuYNeA9Db+K80vspuu7Hv/u+sVZ nJudSeq4F3Q8aiUWq6kh8HKabO2cfidb24bItCjT+8nDhlzPjbLkoBcwRfYxYc0T adjVLoZcXezgWR1Suk1vwpAK/WlqEyARR61YOQtVyWgmLXvAPhiRtkVDqdIlqBSg qTe3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=3pArgru2AA0CL/UKQ2JFdeJQ2+8IOTB+uA6soPSjY Tw=; b=mIyHVO2wMTihH1QBPQSS8Dl84ScOA9w2i4udTVYb4V6ODcGDxR9j8bmwy Gj5o9eZ81MOlZhJrrf3AzSI6CD/xgv4IVp2mtU20l85DxxCOYH3EK2AQfI6nMKGF 0sjlOrf6dQryZU7D3OjpBVpF2xOPJRW+C/qvUZdhagcytgGJaHwZ5YQ/WcX8oR6h E7y7DAazJvq6+rewfGsklUQuDlJ1Vsjcz8qWCSRrEDEPNJrUKlaXWrslhoud/5O6 GVgIznyDCMHqYddidYKCHxAG1AtxSGPUMCK3z8UfodXK/Ith5j9J8ps+9H1vPjw0 MYfaVQIB+gsVcAZ99h6A2K8y842Lw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrkedtgdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecukfhppeejuddrvdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhho mheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 1F4968005C; Wed, 24 Jul 2019 11:14:43 -0400 (EDT) Subject: Re: postgres 9.5 DB corruption To: Thomas Tignor , "pgsql-general@lists.postgresql.org" References: <531909537.157210.1563979100115.ref@mail.yahoo.com> <531909537.157210.1563979100115@mail.yahoo.com> From: Adrian Klaver Message-ID: <1cd46144-9b6d-499c-b241-e11d8f84c958@aklaver.com> Date: Wed, 24 Jul 2019 08:14:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <531909537.157210.1563979100115@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/24/19 7:38 AM, Thomas Tignor wrote: > Hello postgres community, > > Writing again to see if there are insights on this issue. We have had > infrequent but recurring corruption since upgrading from postgres 9.1 to > postgres 9.5. We are presently on 9.5.16. Our DB-facing app continually > performs a mixture of DML, primarily inserts and updates on two specific > tables, with no single op being suspect. In the past, corruption events > have produced encoding errors on COPY operations (invalid byte sequence > for encoding "UTF8"). More recently, they have caused segmentation > faults. We were able to take a cold backup after a recent event. > SELECTing the corrupted data on our cold backup yields the following > stack. Any info on a solution or how to proceed towards a solution would > be much appreciated. > > Thanks in advance. > In my previous post when I referred to table schema I mean that to include associated schema like triggers, constraints, etc. Basically what is returned by \d in psql. > Tom    :-) -- Adrian Klaver adrian.klaver@aklaver.com