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 1hqhUW-0000zl-QX for pgsql-general@arkaria.postgresql.org; Thu, 25 Jul 2019 17:25:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hqhUV-00027Q-Lv for pgsql-general@arkaria.postgresql.org; Thu, 25 Jul 2019 17:25:19 +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 1hqhUU-00027J-TS for pgsql-general@lists.postgresql.org; Thu, 25 Jul 2019 17:25:19 +0000 Received: from sonic303-2.consmr.mail.bf2.yahoo.com ([74.6.131.41]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hqhUR-000606-TZ for pgsql-general@lists.postgresql.org; Thu, 25 Jul 2019 17:25:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1564075514; bh=3+sDwPuBgjJYZZnVas+NlSKG1tB53RcSc59f1+F8X6g=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=HbfxGG30F+EIPi45H83zRwsNLlA/50eOFCnaiJIkC2DSbu15c7vJYlt5FC6oNQzCboU71FwW8MvgoyMA3F6z8Y6ahEs46pEjkR3I08wl6RpP9w99jvg9syKZOuEyZ64Mo2O/QJNjCHeptD6bSS2LhRD09E7NRtmz3NyzBr1UbwEkOQQLiKXeWjhsG44VEa+/6bjJOQaDVKDPDGb0Y1GCLdyi2uZBzOnPn1MKYxGXwQcaYzVCDlpKQ6QykHafoJnPcwKCYHrBpbqIofzV1kbGrhL4XizyWfAIwcnIESsKVwOiR/Fmm4H5pzQvB8JyvpkcVAuWdcRB9zYODMMlpNufOg== X-YMail-OSG: NzaJhekVM1lwoiOg9OA.puYKWwEE5gW27AGMJkezK0nj2RHqq_2zYRyo7LFNNAD tjEOqDIWJDPgbyYQXtiR6FzDRs_uzlPwCvqLeuPuiaoZ3sA7bugJdocDnHr2G5hLqWp8EEJCNcM. AUFkuKwaUlYfQNVQNkM6Y_3LLS9g3mYsp0Kxm4O5NIDS2enL64obnfxPS0fA9N9N4zi_Yj2QPFgG p4wOJlvxdZokSXuFn09p3PQuXfPL4ZyLiw4s1nGKRyeg6usiVntkiUV3mO8FBZlHCUcUrThNBYgy WDEx.Fl2B8Fbx6nHloYQD0vTd9eZDEzurmt0AjM_BR1qaLuqViYzFibfYjh1bfd0CgFlHVmeGvWW IYPQ3qUOyL258zH5zuCSnptPAiX4P7kn87WHLeBHI4IPknqdFuZM_2rCA6ebc9_yGZaN.Ln6PlYQ 61eSe4IArWnFVgJPYdYagEg_4JbVS5sfcoGSzq7OCol0VDf2SDDEU9Y6TMTJywThNa_7IaJFpOHt qeN9js2ZoqC3al9JJ5gQJa4ei1M9v3ys1CRVcotIGzc3WRVzni3edfWb3GxIwlZTavHEt4b5zjQj 3UcvdEQQw_0wDdFcWRUksm0dd9LfihwsPYk9PihtZg8mZPE2RmTMRpyqTG.r.0R7GG.O1mjJbyET EgfRiyVwSRxDjh4hVVaYvmt5ymaC7ZCzmKe1dB49cGnjyxUs_3GwKgJu5plm_Mo6TkkRdZMNzNhC DvC1JULAgtgcMQW2IqAsZ7LVjquTAPGTTrIhkCimaOxxIe7xXq1vSbIUK6ymidWinNxbR8pm7X1i dZe1jkmUQtAMhXEHfyYOSfXHY3XfMRev0Fu2JncdKSOrIVdN_Z5mZfHSIwbOzig.OTWIOdY.QXM6 42QVirCnHXGVeAqpRk8gwpA_6aYk1noMHkKCsOsDLjXfj9pWUH3C.RRTH03o_SZXSOStZOsC9poi si0v9RS4DyFP8I2k5usQ6Zqibd4cP9WylJjeQKlDxzdSdFpUP9fQwz8iSYoldiQM6v94NjY76n3Q jwqU5DSV0nv70JqsnqWuaEJpq6f_o_1ZKTfdYBcULdJQw5HkliNisaM6x2IhsjDhfUCUPeU_F7DU ccj5NtrC6BQWiJ0bprkzvsMW32dODlQgsbSPeO4TwUg1aMnA..4DlT7koHLl5OL5TGT4kLlvamqZ NI8Ow02sKVjw6TgHwMeHKqK7vEbeqj8YMSxdS5eRUYBJ6jtuVNhT7AO8vNMyZ_zTniEmytrumC7V 614LDa_EMl1dahTISDA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.bf2.yahoo.com with HTTP; Thu, 25 Jul 2019 17:25:14 +0000 Date: Thu, 25 Jul 2019 17:24:28 +0000 (UTC) From: Thomas Tignor To: "pgsql-general@lists.postgresql.org" , Adrian Klaver Message-ID: <394260845.571649.1564075468642@mail.yahoo.com> In-Reply-To: <1cd46144-9b6d-499c-b241-e11d8f84c958@aklaver.com> References: <531909537.157210.1563979100115.ref@mail.yahoo.com> <531909537.157210.1563979100115@mail.yahoo.com> <1cd46144-9b6d-499c-b241-e11d8f84c958@aklaver.com> Subject: Re: postgres 9.5 DB corruption MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_571648_2072219055.1564075468637" 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: 40533 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_571648_2072219055.1564075468637 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Adrian,Thanks for responding. Below is the schema data for the tables wh= ere we always see corruption. You'll notice they have triggers for a postgr= es extension called Slony-I which provides replication service. It's not cl= ear if/how that's a factor, though. ams=3D# \d ams.alert_instance =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0= Table "ams.alert_instance" =C2=A0=C2=A0 =C2=A0 =C2=A0=C2=A0Column=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0|=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0Type=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| Modifiers=C2=A0 ---------------------+--------------------------------+----------- =C2=A0alert_instance_id=C2=A0=C2=A0=C2=A0| integer=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| not null =C2=A0alert_definition_id | integer=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| not null =C2=A0alert_instance_key=C2=A0=C2=A0| character varying(500)=C2=A0=C2=A0 = =C2=A0 =C2=A0 =C2=A0=C2=A0| not null =C2=A0start_active_date=C2=A0=C2=A0=C2=A0| timestamp(0) without time zone |= not null =C2=A0stop_active_date=C2=A0 =C2=A0=C2=A0| timestamp(0) without time zone |= =C2=A0 =C2=A0active=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| smallin= t=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0=C2=A0| not null =C2=A0acknowledged=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| smallint=C2=A0=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0= | not null =C2=A0ack_clear_time=C2=A0 =C2=A0 =C2=A0=C2=A0| timestamp(0) without time z= one |=C2=A0 =C2=A0user_set_clear_time | smallint=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0|=C2=A0 =C2=A0category_id=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| integer=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0| not null =C2=A0condition_start=C2=A0=C2=A0 =C2=A0=C2=A0| timestamp(0) without time z= one | not null =C2=A0unack_reason=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| character varying(1)= =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0|=C2=A0 =C2=A0viewer_visible=C2=A0 =C2=A0 =C2=A0=C2=A0| smallint=C2=A0=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| not = null Indexes: =C2=A0 =C2=A0=C2=A0"pk_alert_instance" PRIMARY KEY, btree (alert_instance_i= d), tablespace "tbls5" =C2=A0 =C2=A0=C2=A0"idx_alert_inst_1" btree (alert_instance_key, alert_defi= nition_id, alert_instance_id, active, acknowledged, ack_clear_time), tables= pace "tbls5" =C2=A0 =C2=A0=C2=A0"idx_alert_inst_cat_id" btree (category_id), tablespace = "tbls5" =C2=A0 =C2=A0=C2=A0"idx_alert_inst_def_id" btree (alert_definition_id), tab= lespace "tbls5" Check constraints: =C2=A0 =C2=A0=C2=A0"ck_alert_inst_acked" CHECK (acknowledged =3D 0 OR ackno= wledged =3D 1) =C2=A0 =C2=A0=C2=A0"ck_alert_inst_active" CHECK (active =3D 0 OR active =3D= 1) =C2=A0 =C2=A0=C2=A0"ck_alert_inst_set_cl_tm" CHECK (user_set_clear_time =3D= 0 OR user_set_clear_time =3D 1) =C2=A0 =C2=A0=C2=A0"ck_alert_inst_viewer_vis" CHECK (viewer_visible =3D 0 O= R viewer_visible =3D 1) Foreign-key constraints: =C2=A0 =C2=A0=C2=A0"fk_alert_inst_cat_id" FOREIGN KEY (category_id) REFEREN= CES ams.category(category_id) =C2=A0 =C2=A0=C2=A0"fk_alert_inst_def_id" FOREIGN KEY (alert_definition_id)= REFERENCES ams.alert_definition(alert_definition_id) =C2=A0 =C2=A0=C2=A0"fk_alert_inst_unack_reason" FOREIGN KEY (unack_reason) = REFERENCES ams.unack_reason(unack_reason) Referenced by: =C2=A0 =C2=A0=C2=A0TABLE "ams.alert_attribute" CONSTRAINT "fk_alert_attr_in= stance_id" FOREIGN KEY (alert_instance_id) REFERENCES ams.alert_instance(al= ert_instance_id) ON DELETE CASCADE Triggers: =C2=A0 =C2=A0=C2=A0_ams_cluster_logtrigger AFTER INSERT OR DELETE OR UPDATE= ON ams.alert_instance FOR EACH ROW EXECUTE PROCEDURE _ams_cluster.logtrigg= er('_ams_cluster', '1', 'k') =C2=A0 =C2=A0=C2=A0_ams_cluster_truncatetrigger BEFORE TRUNCATE ON ams.aler= t_instance FOR EACH STATEMENT EXECUTE PROCEDURE _ams_cluster.log_truncate('= 1') Disabled user triggers: =C2=A0 =C2=A0=C2=A0_ams_cluster_denyaccess BEFORE INSERT OR DELETE OR UPDAT= E ON ams.alert_instance FOR EACH ROW EXECUTE PROCEDURE _ams_cluster.denyacc= ess('_ams_cluster') =C2=A0 =C2=A0=C2=A0_ams_cluster_truncatedeny BEFORE TRUNCATE ON ams.alert_i= nstance FOR EACH STATEMENT EXECUTE PROCEDURE _ams_cluster.deny_truncate() =C2=A0 ams=3D#=C2=A0 ams=3D# \d ams.alert_attribute =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0Table "ams.aler= t_attribute" =C2=A0 =C2=A0 =C2=A0=C2=A0Column=C2=A0=C2=A0 =C2=A0 =C2=A0=C2=A0|=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0=C2=A0Type=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0| Modifiers=C2=A0 -------------------+-------------------------+----------- =C2=A0alert_instance_id | integer=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0=C2=A0| not null =C2=A0name=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| character= varying(200)=C2=A0=C2=A0| not null =C2=A0data_type=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| smallint=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| not null =C2=A0value=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0| character= varying(2000) |=C2=A0 Indexes: =C2=A0 =C2=A0=C2=A0"pk_alert_attributes" PRIMARY KEY, btree (alert_instance= _id, name), tablespace "tbls5" =C2=A0 =C2=A0=C2=A0"idx_alert_attr_name" btree (name) Foreign-key constraints: =C2=A0 =C2=A0=C2=A0"fk_alert_attr_instance_id" FOREIGN KEY (alert_instance_= id) REFERENCES ams.alert_instance(alert_instance_id) ON DELETE CASCADE Triggers: =C2=A0 =C2=A0=C2=A0_ams_cluster_logtrigger AFTER INSERT OR DELETE OR UPDATE= ON ams.alert_attribute FOR EACH ROW EXECUTE PROCEDURE _ams_cluster.logtrig= ger('_ams_cluster', '2', 'kk') =C2=A0 =C2=A0=C2=A0_ams_cluster_truncatetrigger BEFORE TRUNCATE ON ams.aler= t_attribute FOR EACH STATEMENT EXECUTE PROCEDURE _ams_cluster.log_truncate(= '2') Disabled user triggers: =C2=A0 =C2=A0=C2=A0_ams_cluster_denyaccess BEFORE INSERT OR DELETE OR UPDAT= E ON ams.alert_attribute FOR EACH ROW EXECUTE PROCEDURE _ams_cluster.denyac= cess('_ams_cluster') =C2=A0 =C2=A0=C2=A0_ams_cluster_truncatedeny BEFORE TRUNCATE ON ams.alert_a= ttribute FOR EACH STATEMENT EXECUTE PROCEDURE _ams_cluster.deny_truncate() =C2=A0 ams=3D#=C2=A0 Tom =C2=A0 =C2=A0:-)=20 On Wednesday, July 24, 2019, 11:15:04 AM EDT, Adrian Klaver wrote: =20 =20 On 7/24/19 7:38 AM, Thomas Tignor wrote: > Hello postgres community, >=20 > Writing again to see if there are insights on this issue. We have had=20 > infrequent but recurring corruption since upgrading from postgres 9.1 to= =20 > postgres 9.5. We are presently on 9.5.16. Our DB-facing app continually= =20 > performs a mixture of DML, primarily inserts and updates on two specific= =20 > tables, with no single op being suspect. In the past, corruption events= =20 > have produced encoding errors on COPY operations (invalid byte sequence= =20 > for encoding "UTF8"). More recently, they have caused segmentation=20 > faults. We were able to take a cold backup after a recent event.=20 > SELECTing the corrupted data on our cold backup yields the following=20 > stack. Any info on a solution or how to proceed towards a solution would= =20 > be much appreciated. >=20 > Thanks in advance. >=20 In my previous post when I referred to table schema I mean that to=20 include associated schema like triggers, constraints, etc. Basically=20 what is returned by \d in psql. > Tom =C2=A0 =C2=A0:-) --=20 Adrian Klaver adrian.klaver@aklaver.com =20 ------=_Part_571648_2072219055.1564075468637 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Adrian,
Thanks for responding. Below is the schema data = for the tables where we always see corruption. You'll notice they have trig= gers for a postgres extension called Slony-I which provides replication ser= vice. It's not clear if/how that's a factor, though.

ams=3D# \d ams.alert_instance

   = ;                 Table "ams.alert_instance"

       Column   = ;     |              Type              | Modifiers <= /span>

---------------------+----= ----------------------------+-----------

 alert_instance_id <= /span>  | integer                  &nb= sp;     | not null

 alert_definition_id | integer              &nb= sp;         | not null

 alert_instance_key  | character varying= (500) <= span class=3D"ydp5e10c938apple-converted-space">       =  | not null

 star= t_active_date =   | timestamp(0) without time zone | not null

 stop_active_date    | timestamp(0) without= time zone | <= /span>

 <= /span>active              | smallint &n= bsp;                    <= span class=3D"ydp5e10c938Apple-converted-space"> | not null

 ackno= wledged   = ;     | smallint                 &n= bsp;     | not null

 ack_clear_time      | timestamp(0) without= time zone | <= /span>

 <= /span>user_set_clear_time | smallint            =           | 

 category_id =    = ;     | integer            &nbs= p;           | not null

 condition_start     | timestamp(0) without= time zone | not null

 unack_reason      &nb= sp; | character varying(1)           = | 

<= p class=3D"ydp5e10c938p1" style=3D"margin: 0in 0in 0.0001pt; background-col= or: rgb(227, 227, 227); font-size: 10pt; font-family: Menlo; color: rgb(0, = 0, 0);"> viewer_visible      | smallint<= span class=3D"ydp5e10c938Apple-converted-space">          = ;             | not nu= ll

Indexes:

    "pk_alert_instance" PRIMARY KEY, btree (alert_instance_id),= tablespace "tbls5"

   =  "idx_alert_inst_1" btree = (alert_instance_key, alert_definition_id, alert_instance_id, active, acknow= ledged, ack_clear_time), tablespace "tbls5"

    = "idx_alert_inst_cat_id" btree (category_id), tablespace "tbls5"

<= p class=3D"ydp5e10c938p1" style=3D"margin: 0in 0in 0.0001pt; background-col= or: rgb(227, 227, 227); font-size: 10pt; font-family: Menlo; color: rgb(0, = 0, 0);">    "idx_alert_inst_def_id" btree (alert_definition_id), tab= lespace "tbls5"

Check cons= traints:

    "ck_alert_inst_acked" CHECK (acknowl= edged =3D 0 OR acknowledged =3D 1)

    "ck_alert_= inst_active" CHECK (active =3D 0 OR active =3D 1)

    "ck_alert_inst_set_cl_tm" CHECK (user_set_clear_time =3D 0 OR user_set= _clear_time =3D 1)

   &= nbsp;"ck_alert_inst_viewer_vis"= CHECK (viewer_visible =3D 0 OR viewer_visible =3D 1)

Foreign-key constraints:

    "fk_alert_inst_cat_id" FOREIGN KEY (category_id) REFERENCES ams.cat= egory(category_id)

   &= nbsp;"fk_alert_inst_def_id" FOR= EIGN KEY (alert_definition_id) REFERENCES ams.alert_definition(alert_defini= tion_id)

    "fk_alert_inst_unack_reason" FOREIGN= KEY (unack_reason) REFERENCES ams.unack_reason(unack_reason)

Referenced by:

    TABLE "ams.alert_attribute" CONSTRAINT "fk_alert_attr_instance_id" FO= REIGN KEY (alert_instance_id) REFERENCES ams.alert_instance(alert_instance_= id) ON DELETE CASCADE

Trig= gers:

&= nbsp;   <= /span>_ams_cluster_logtrigger AFTER INSERT OR= DELETE OR UPDATE ON ams.alert_instance FOR EACH ROW EXECUTE PROCEDURE _ams= _cluster.logtrigger('_ams_cluster', '1', 'k')

    _ams_cluster_truncatetrigger BEFORE TRUNCATE ON ams.alert_instance FOR EAC= H STATEMENT EXECUTE PROCEDURE _ams_cluster.log_truncate('1')

Disabled user triggers:

    _ams_cluster_denyaccess BEFORE INSERT OR DELETE OR UPDATE ON = ams.alert_instance FOR EACH ROW EXECUTE PROCEDURE _ams_cluster.denyaccess('= _ams_cluster')

    = ;_ams_cluster_truncatedeny BEFO= RE TRUNCATE ON ams.alert_instance FOR EACH STATEMENT EXECUTE PROCEDURE _ams= _cluster.deny_truncate()

 

ams=3D# 

ams=3D# \d a= ms.alert_attribute

               Table "ams.alert_attribute"

      Column =      = ; |          Type           | Modifiers 

------= -------------+-------------------------+-----------

 alert_instance_id | integer                 | not null

 name        &n= bsp;     | character varying(200)  | not null

 data_type         | smallint  =               | n= ot null

 value             | character varying(2000) | 

Inde= xes:

&n= bsp;   "pk_alert_attributes" PRIMARY KEY, btree= (alert_instance_id, name), tablespace "tbls5"

    "idx_alert_attr_name" btree (name)

Foreign-key constraints:

    "fk_alert= _attr_instance_id" FOREIGN KEY (alert_instance_id) REFERENCES ams.alert_ins= tance(alert_instance_id) ON DELETE CASCADE

Triggers:

    _ams_cluster_log= trigger AFTER INSERT OR DELETE OR UPDATE ON ams.alert_attribute FOR EACH RO= W EXECUTE PROCEDURE _ams_cluster.logtrigger('_ams_cluster', '2', 'kk')

  &nbs= p; _ams_cluster_truncatetrigger BEFORE TRUNCATE ON a= ms.alert_attribute FOR EACH STATEMENT EXECUTE PROCEDURE _ams_cluster.log_tr= uncate('2')

Disabled user = triggers:

    _ams_cluster_denyaccess BEFORE INSE= RT OR DELETE OR UPDATE ON ams.alert_attribute FOR EACH ROW EXECUTE PROCEDUR= E _ams_cluster.denyaccess('_ams_cluster')

    _am= s_cluster_truncatedeny BEFORE TRUNCATE ON ams.alert_attribute FOR EACH STAT= EMENT EXECUTE PROCEDURE _ams_cluster.deny_truncate()

&nb= sp;

ams=3D# 


Tom    :-)


=20
=20
On Wednesday, July 24, 2019, 11:15:04 AM EDT, Adrian Kl= aver <adrian.klaver@aklaver.com> wrote:


On 7/24/19 7:38 AM, Thomas Tignor wro= te:
> Hello postgres community,
>=
> Writing again to see if there are insights on this= issue. We have had
> infrequent but recurring corrup= tion 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 encodi= ng 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 bac= kup yields the following
> stack. Any info on a solut= ion or how to proceed towards a solution would
> be m= uch appreciated.
>
> Thanks in a= dvance.
>

In my = previous post when I referred to table schema I mean that to
include associated schema like triggers, constraints, etc. Basically <= br clear=3D"none">what is returned by \d in psql.


> Tom    :-)


--
Adrian Klaver
adrian.klaver@aklaver.com


=
------=_Part_571648_2072219055.1564075468637--