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 1hqIPg-0004pP-JQ for pgsql-general@arkaria.postgresql.org; Wed, 24 Jul 2019 14:38:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hqIPf-00059N-Fj for pgsql-general@arkaria.postgresql.org; Wed, 24 Jul 2019 14:38:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqIPe-0004k5-GE for pgsql-general@lists.postgresql.org; Wed, 24 Jul 2019 14:38:39 +0000 Received: from sonic304-9.consmr.mail.bf2.yahoo.com ([74.6.128.32]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hqIPb-0000DC-9U for pgsql-general@lists.postgresql.org; Wed, 24 Jul 2019 14:38:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1563979113; bh=l/nth/nZtEZ0XO1JzFumBlB1d38ZB3lhr82OGFCsIVY=; h=Date:From:To:Subject:References:From:Subject; b=OSwh/Z2MNUFaGTdF590eSQcJBdwzjzaV9iL4h4mcQfCRJSuiIzkpwLpPTLxbfhFbelOkegeEZrTt8NLxOfd2pF5q4HoFfGrt/kPuUduU+VU1k5degY7jDUgdSd+r20HhqLh2bnD/djPqmxdO5YNpJkdkpLB1qsR9UuyOznj21CnQG/2GMEPN4KGjbfi33gW2ZuJlH+WOqTZpFYQOhb4329H1ghgy3fV/TrAUc1g3DhDTO3tubZcYyDPLMNQAKu+DO1pitaA5hNzfQ4B+TajsUmkdvA/mbLgJVIgJxxfz5YjT5Pu8I55wr6nH1vC9TDxL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J .hYBOcUC2e9uubybv2FfOPW0_Hjbw5BhdaIqx.plo_4dhEF34s1Bbv4IiabGDXPGhKjWJ7Q4s7_m z1cuzRU.VWDlarDdGdUAoxPviNMA_gTh6LqsxB0p17C9yAJp8pxQKFA9g.4gmNabv.gofpe1oNlW 5Pn6qneC4ZYJUXhouSzmVVS5celIkRcqDtGSuL6FS8Wsla5TzzP0VP6PTqtaGf_Ht3QiPc__25WP f1FKTDc0- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Wed, 24 Jul 2019 14:38:33 +0000 Date: Wed, 24 Jul 2019 14:38:20 +0000 (UTC) From: Thomas Tignor To: "pgsql-general@lists.postgresql.org" Message-ID: <531909537.157210.1563979100115@mail.yahoo.com> Subject: postgres 9.5 DB corruption MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_157209_1981164542.1563979100114" References: <531909537.157210.1563979100115.ref@mail.yahoo.com> X-Mailer: WebService/1.1.13991 YMailNorrin Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 Content-Length: 7373 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_157209_1981164542.1563979100114 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello postgres community, Writing again to see if there are insights on this issue. We have had infre= quent but recurring corruption since upgrading from postgres 9.1 to postgre= s 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 e= ncoding errors on COPY operations (invalid byte sequence for encoding "UTF8= "). More recently, they have caused segmentation faults. We were able to ta= ke 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 pr= oceed towards a solution would be much appreciated. Thanks in advance. (gdb) where #0=C2=A0 pglz_decompress (source=3Dsource@entry=3D0xa617904 "0", slen=3D813= 9, dest=3Ddest@entry=3D0x4268e028 "", rawsize=3D808452096) at pg_lzcompress= .c:745 #1=C2=A0 0x080f3079 in toast_decompress_datum (attr=3D0xa6178fc) at tuptoas= ter.c:2210 #2=C2=A0 0x080f3716 in heap_tuple_untoast_attr (attr=3D0xa6178fc) at tuptoa= ster.c:183 #3=C2=A0 0x08440955 in pg_detoast_datum_packed (datum=3D) at= fmgr.c:2270 #4=C2=A0 0x084145bf in text_to_cstring (t=3D0x7592fd2a) at varlena.c:176 #5=C2=A0 0x0843e874 in FunctionCall1Coll (flinfo=3Dflinfo@entry=3D0xa614738= , collation=3Dcollation@entry=3D0, arg1=3Darg1@entry=3D1972567338) at fmgr.= c:1297 #6=C2=A0 0x0843fef8 in OutputFunctionCall (flinfo=3D0xa614738, val=3D197256= 7338) at fmgr.c:1950 #7=C2=A0 0x080bf84b in printtup (slot=3D0xa613bf4, self=3D0xa60d714) at pri= nttup.c:359 #8=C2=A0 0x08220f9a in ExecutePlan (dest=3D0xa60d714, direction=3D, numberTuples=3D0, sendTuples=3D, operation=3DCMD_SEL= ECT, planstate=3D0xa613974, estate=3D0xa6138ec) at execMain.c:1574 #9=C2=A0 standard_ExecutorRun (queryDesc=3D0xa6134e4, direction=3DForwardSc= anDirection, count=3D0) at execMain.c:337 #10 0x08332c1b in PortalRunSelect (portal=3Dportal@entry=3D0xa6114dc, forwa= rd=3Dforward@entry=3D1 '\001', count=3D0, count@entry=3D2147483647, dest=3D= dest@entry=3D0xa60d714) at pquery.c:942 #11 0x08333fa7 in PortalRun (portal=3Dportal@entry=3D0xa6114dc, count=3Dcou= nt@entry=3D2147483647, isTopLevel=3DisTopLevel@entry=3D1 '\001', dest=3Ddes= t@entry=3D0xa60d714, altdest=3Daltdest@entry=3D0xa60d714, completionTag=3Dc= ompletionTag@entry=3D0xffd5d71c "") =C2=A0 =C2=A0 at pquery.c:786 #12 0x08330ba8 in exec_simple_query (query_string=3D0xa5f1754 "select * fro= m ams.alert_attribute_bak;") at postgres.c:1096 #13 PostgresMain (argc=3D1, argv=3D0xa53dbbc, dbname=3D0xa53daec "ams", use= rname=3D0xa53dadc "akamai") at postgres.c:4049 #14 0x080b53af in BackendRun (port=3D0xa584b78) at postmaster.c:4312 #15 BackendStartup (port=3D0xa584b78) at postmaster.c:3986 #16 ServerLoop () at postmaster.c:1705 #17 0x082d0dd7 in PostmasterMain (argc=3Dargc@entry=3D3, argv=3Dargv@entry= =3D0xa53d2a8) at postmaster.c:1313 #18 0x080b68eb in main (argc=3D3, argv=3D0xa53d2a8) at main.c:228 (gdb) Tom =C2=A0 =C2=A0:-) ------=_Part_157209_1981164542.1563979100114 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello postgres community,

Writing again to see if there are insights on this issue. We hav= e 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 t= ables, 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 col= d backup yields the following stack. Any info on a solution or how to proce= ed towards a solution would be much appreciated.

Thanks i= n advance.


(gdb) whe=
re
#0  pglz_decompress (source=3Dsource@entry=3D0xa617904 "0", slen=3D813=
9, dest=3Ddest@entry=3D0x4268e028 "", rawsize=3D808452096) at pg_lzcompress=
.c:745
#1  0x080f3079 in toast_decompress_datum (attr=3D0xa6178fc) at tuptoas=
ter.c:2210
#2  0x080f3716 in heap_tuple_untoast_attr (attr=3D0xa6178fc) at tuptoa=
ster.c:183
#3  0x08440955 in pg_detoast_datum_packed (datum=3D<optimized out&g=
t;) at fmgr.c:2270
#4  0x084145bf in text_to_cstring (t=3D0x7592fd2a) at varlena.c:176
#5  0x0843e874 in FunctionCall1Coll (flinfo=3Dflinfo@entry=3D0xa614738=
, collation=3Dcollation@entry=3D0, arg1=3Darg1@entry=3D1972567338) at fmgr.=
c:1297
#6  0x0843fef8 in OutputFunctionCall (flinfo=3D0xa614738, val=3D197256=
7338) at fmgr.c:1950
#7  0x080bf84b in printtup (slot=3D0xa613bf4, self=3D0xa60d714) at pri=
nttup.c:359
#8  0x08220f9a in ExecutePlan (dest=3D0xa60d714, direction=3D<optim=
ized out>, numberTuples=3D0, sendTuples=3D<optimized out>, operati=
on=3DCMD_SELECT, planstate=3D0xa613974, estate=3D0xa6138ec) at execMain.c:1=
574
#9  standard_ExecutorRun (queryDesc=3D0xa6134e4, direction=3DForwardSc=
anDirection, count=3D0) at execMain.c:337
#10 0x08332c1b in PortalRunSelect (portal=3Dportal@entry=3D0xa6114dc, forwa=
rd=3Dforward@entry=3D1 '\001', count=3D0, count@entry=3D2147483647, dest=3D=
dest@entry=3D0xa60d714) at pquery.c:942
#11 0x08333fa7 in PortalRun (portal=3Dportal@entry=3D0xa6114dc, count=3Dcou=
nt@entry=3D2147483647, isTopLevel=3DisTopLevel@entry=3D1 '\001', dest=3Ddes=
t@entry=3D0xa60d714, altdest=3Daltdest@entry=3D0xa60d714, completionTag=3Dc=
ompletionTag@entry=3D0xffd5d71c "")
    at pquery.c:786
#12 0x08330ba8 in exec_simple_query (query_string=3D0xa5f1754 "select * fro=
m ams.alert_attribute_bak;") at postgres.c:1096
#13 PostgresMain (argc=3D1, argv=3D0xa53dbbc, dbname=3D0xa53daec "ams", use=
rname=3D0xa53dadc "akamai") at postgres.c:4049
#14 0x080b53af in BackendRun (port=3D0xa584b78) at postmaster.c:4312
#15 BackendStartup (port=3D0xa584b78) at postmaster.c:3986
#16 ServerLoop () at postmaster.c:1705
#17 0x082d0dd7 in PostmasterMain (argc=3Dargc@entry=3D3, argv=3Dargv@entry=
=3D0xa53d2a8) at postmaster.c:1313
#18 0x080b68eb in main (argc=3D3, argv=3D0xa53d2a8) at main.c:228
(gdb)


Tom    :-)
------=_Part_157209_1981164542.1563979100114--