Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLvKq-0008CU-9b for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Dec 2017 18:19:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLvKo-0005e1-Mc for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Dec 2017 18:19:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eLvKo-0005dp-8l for pgsql-bugs@lists.postgresql.org; Mon, 04 Dec 2017 18:19:18 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eLvKl-0002Ky-Cj for pgsql-bugs@postgresql.org; Mon, 04 Dec 2017 18:19:17 +0000 Received: by mail-wm0-x235.google.com with SMTP id t8so7531383wmc.3 for ; Mon, 04 Dec 2017 10:19:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3Lk2gW6vIgTZK5aJ+MYTkLXxQH5sSOk65E4mO26RsbI=; b=QmSqd7fCxqkML57i5TutOX0dPcYX0vu1vukG5f1CD/9ofk1szuX28mf7jIKjteYK6s 8XhezwF4EgajZ0BvzK+uL2kt1f0y1YVw2ov1Wr/MgSIBK8V13OqADF/vzGOqJy6TlX24 HOiRUrGy1XcFz9BZJB9Ljpm/krIfATBOFq+bbLAuSV2vy3GodTo1ax1hfQQxmywsIOhI dJROROugAOqN89Z8SDt0lcUjTa889MiMVUb+Nj0AC1yqBSb/bYNe9BoUlNmTEXjZZgOb LB200pBGILFOk3/P2wx/q5k+V1Vef4F9JoA2HOd8lAelojFqBImIJFdOBeiQETWek3Zg d7Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3Lk2gW6vIgTZK5aJ+MYTkLXxQH5sSOk65E4mO26RsbI=; b=INnXqlMmk4rvCPjjRUl8gF4NMxJgkxz/4PWzGVlOYzGW9FJ6FfKISdzX0ghGZDIQE2 3Xs1R/t3DApxehl/jKzi3jSVT2pDhYexvZrqXxhEpBdi7MiOjNB+/qrxAswZTllAK7K0 4Tpwt5/f8utQ15TfRJNUud0XW6u55G1p86voboTzRQjpPtWyZ4MYw3ywy433ElbBhKNL Dxiut2GOpAFhSkPHwA/rrJnEhZ5RBBnHQKudCVf83YK4dH1pPbX+1QyXSUr0EQZs+mHP xNn2D+Z598913HHDUwIdjpTUK6GvUcAcXThD0ZpezNET33Hq5wd8Ctu0IQOXaz6xboOj d9Xw== X-Gm-Message-State: AKGB3mKlxcJLSnxuC/n44mY7EjhY+kIM42kF9O2Sn7Pr/yPItgZn9GkX sesLtKhvRK1nc/q6q+eQ+F1L6/D9tq7YmdyCwyJY+bUABVQQGR2FXSXTv5Ho+ZwVNdHLrPKEJMQ mkY64gX6NXHw0l2UwPWgBFJy0FSjbr3+Z0i/ECvSKoYZQm53cmAbW3V9UnxbLIicfWcgHrDhSTI 4KZj8c X-Google-Smtp-Source: AGs4zMb4jioFpfslOltJzQgs+XGlfHK8zUux1Q0sBRqMCoQ3cdRKfLy3yCcK2nmnXz4UH0AO6WJTpg== X-Received: by 10.28.183.132 with SMTP id h126mr4146421wmf.76.1512411552687; Mon, 04 Dec 2017 10:19:12 -0800 (PST) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id r14sm12986186wra.71.2017.12.04.10.19.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Dec 2017 10:19:11 -0800 (PST) Subject: Re: BUG #14940: Duplicated records inspite of primary key and unique constraint To: =?UTF-8?B?0KHQtdGA0LPQtdC5INCQLiDQpNGA0L7Qu9C+0LI=?= , Alvaro Herrera Cc: pgsql-bugs@postgresql.org References: <20171201171513.if4pd67kh5sl7u53@alvherre.pgsql> <023c1715-3a10-1a4d-6efd-ccb8823fdfb8@smetarik.ru> <2e9f0483-f084-53e9-e80b-bf112f9a6053@2ndquadrant.com> <4dc917b7-6edb-01d5-1c91-27ad7e9f12da@2ndquadrant.com> <0a05427a-aeb4-05f7-f0c6-1c5052b9f557@smetarik.ru> From: Tomas Vondra Message-ID: Date: Mon, 4 Dec 2017 19:19:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <0a05427a-aeb4-05f7-f0c6-1c5052b9f557@smetarik.ru> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/04/2017 05:06 PM, Сергей А. Фролов wrote: > I have scanned all pages for tran numbers 370881,370882,364507 . > > It looks like 364507 is the number of restore transaction. > > Is it possible that  370881,370882 are the numbers of failed maintenance > jobs like vacuum or rindex? > I don't think any of those operations create new rows in the heap. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services