pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <ronljohnsonjr@gmail.com>
Cc: Dmitry O Litvintsev <litvinse@fnal.gov>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: something weird happened - can select by column value although column value exist
Date: Thu, 11 Oct 2018 17:03:08 -0400
Message-ID: <24100.1539291788@sss.pgh.pa.us> (raw)
In-Reply-To: <0e111ff0-3a39-f22b-f823-1934e9db0732@gmail.com>
References: <MWHPR09MB2047549C4493DB590341194CB9E10@MWHPR09MB2047.namprd09.prod.outlook.com>
	<0e111ff0-3a39-f22b-f823-1934e9db0732@gmail.com>

Ron <ronljohnsonjr@gmail.com> writes:
> On 10/11/2018 03:17 PM, Dmitry O Litvintsev wrote:
>> Today the following happened:
>> < 2018-10-11 13:31:52.587 CDT >ERROR:  insert or update on table "file" violates foreign key constraint "$1"
>> < 2018-10-11 13:31:52.587 CDT >DETAIL:  Key (volume)=(155303) is not present in table "volume".
>> [ but it is present ]
>>
>> What is this? Version 9.3.9,. running on Linux RH6.

> Index corruption?  Maybe rebuild the FK.

Yeah, I'd suspect index corruption as well, particularly seeing that this
is a three-year-old point release in a branch that had more than its share
of data corruption issues.  My suggestion is first update to 9.3.latest,
then reindex.

BTW, 9.3.x will be EOL next month, so you should be thinking about getting
onto a later release branch ...

			regards, tom lane




view thread (3+ messages)

Message-ID: <24100.1539291788@sss.pgh.pa.us>
Permalink:  ../24100.1539291788@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24100.1539291788@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com, litvinse@fnal.gov
  Subject: Re: something weird happened - can select by column value although column value exist
  In-Reply-To: <24100.1539291788@sss.pgh.pa.us>
  References: <MWHPR09MB2047549C4493DB590341194CB9E10@MWHPR09MB2047.namprd09.prod.outlook.com> <0e111ff0-3a39-f22b-f823-1934e9db0732@gmail.com> <24100.1539291788@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox