Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2h7K-0005Oi-Px for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Jan 2014 12:59:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W2h7K-0005PZ-6w for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Jan 2014 12:59:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2h7J-0005PS-8R for pgsql-bugs@postgresql.org; Mon, 13 Jan 2014 12:59:45 +0000 Received: from smtprelay0084.b.hostedemail.com ([64.98.42.84] helo=smtprelay.b.hostedemail.com) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2h7E-00027G-ME for pgsql-bugs@postgresql.org; Mon, 13 Jan 2014 12:59:44 +0000 Received: from filter.hostedemail.com (b-bigip1 [10.5.19.254]) by smtprelay06.b.hostedemail.com (Postfix) with ESMTP id ED8278D24B; Mon, 13 Jan 2014 12:59:38 +0000 (UTC) X-Session-Marker: 616C76686572726540616C76682E6E6F2D69702E6F7267 X-Spam-Summary: 50, 0, 0, , d41d8cd98f00b204, alvherre@alvh.no-ip.org, :::, RULES_HIT:41:152:355:379:599:800:960:967:973:988:989:1260:1277:1311:1312:1313:1314:1345:1359:1431:1437:1515:1516:1518:1519:1534:1543:1593:1594:1595:1596:1711:1730:1747:1777:1792:2198:2199:2393:2525:2553:2561:2564:2682:2685:2693:2827:2859:2892:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3355:3865:3866:3867:3868:3870:3871:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4605:4659:5007:6119:6238:6261:7903:8603:8957:9025:9121:9164:9207:10004:10400:10848:11026:11232:11256:11257:11658:11783:11914:12296:12438:12517:12519:12555:12740:12742:13141:13161:13229:13230:13618:13870:13894:13895:13904:21067, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:fn, MSBL:0, DNSBL:none, Custom_rules:0:0:0 X-HE-Tag: store27_8e557a603324c X-Filterd-Recvd-Size: 4366 Received: from eldon.alvh.no-ip.org (pc-211-245-160-190.cm.vtr.net [190.160.245.211]) (Authenticated sender: alvherre@alvh.no-ip.org) by omf03.b.hostedemail.com (Postfix) with ESMTPA; Mon, 13 Jan 2014 12:59:38 +0000 (UTC) Received: by eldon.alvh.no-ip.org (Postfix, from userid 1000) id 997EA1FC9; Mon, 13 Jan 2014 09:59:36 -0300 (CLST) Date: Mon, 13 Jan 2014 09:59:36 -0300 From: Alvaro Herrera To: =?utf-8?B?0JTQvNC40YLRgNC40Lkg0KHQsNGA0LDRhNCw0L3QvdC40LrQvtCy?= Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8757: Dublicate rows, broken primary key. Message-ID: <20140113125936.GZ6840@eldon.alvh.no-ip.org> References: <20140109153811.GO6840@eldon.alvh.no-ip.org> <1389284879.512714999@f373.i.mail.ru> <1389609332.992957009@f432.i.mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1389609332.992957009@f432.i.mail.ru> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Дмитрий Сарафанников wrote: > Hey ? I need the answer or some information. The first thing I would check is whether the values are present in the table and not the index, or are they missing altogether. Please try searching for them with enable_indexscan and enable_bitmapscan both set to OFF. This should force a sequential scan and will tell you if the values are completely missing from the table, or just missing in the index. If missing from the table, I would suspect a tqual.c problem, perhaps related to multixacts, as you see to have some use of them. > > Четверг, 9 января 2014, 20:27 +04:00 от Дмитрий Сарафанников : > >pg_control version number: 937 > >Catalog version number: 201306121 > >Database system identifier: 5965523135297743807 > >Database cluster state: in production > >pg_control last modified: Thu 09 Jan 2014 04:23:43 PM UTC > >Latest checkpoint location: 263C/A2B28550 > >Prior checkpoint location: 263C/9AC7F608 > >Latest checkpoint's REDO location: 263C/9EC81058 > >Latest checkpoint's REDO WAL file: 000000010000263C0000009E > >Latest checkpoint's TimeLineID: 1 > >Latest checkpoint's PrevTimeLineID: 1 > >Latest checkpoint's full_page_writes: on > >Latest checkpoint's NextXID: 0/3917877569 > >Latest checkpoint's NextOID: 148656505 > >Latest checkpoint's NextMultiXactId: 3400755 > >Latest checkpoint's NextMultiOffset: 505332 > >Latest checkpoint's oldestXID: 3718614222 > >Latest checkpoint's oldestXID's DB: 16435 > >Latest checkpoint's oldestActiveXID: 3917877507 > >Latest checkpoint's oldestMultiXid: 3188075 > >Latest checkpoint's oldestMulti's DB: 0 > >Time of latest checkpoint: Thu 09 Jan 2014 04:21:13 PM UTC > >Fake LSN counter for unlogged rels: 0/1 > >Minimum recovery ending location: 0/0 > >Min recovery ending loc's timeline: 0 > >Backup start location: 0/0 > >Backup end location: 0/0 > >End-of-backup record required: no > >Current wal_level setting: hot_standby > >Current max_connections setting: 200 > >Current max_prepared_xacts setting: 0 > >Current max_locks_per_xact setting: 64 > >Maximum data alignment: 8 > >Database block size: 8192 > >Blocks per segment of large relation: 131072 > >WAL block size: 8192 > >Bytes per WAL segment: 16777216 > >Maximum length of identifiers: 64 > >Maximum columns in an index: 32 > >Maximum size of a TOAST chunk: 1996 > >Date/time type storage: 64-bit integers > >Float4 argument passing: by value > >Float8 argument passing: by value > >Data page checksum version: 0 > > > > > >And, we noticed, that updates on rows where id_blog = 26 executes more longer then updates on other rows of this table. > >Четверг, 9 января 2014, 12:38 -03:00 от Alvaro Herrera : > >> > >> > >>Can you please share the output of pg_controldata? > >> > >>-- > >>Álvaro Herrera http://www.2ndQuadrant.com/ > >>PostgreSQL Development, 24x7 Support, Training & Services > > > > > >-- > >Дмитрий Сарафанников > > > -- > Дмитрий Сарафанников -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs