Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQdZh-0007jH-4a for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Jun 2018 18:54:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fQdZf-0000oz-HW for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Jun 2018 18:54:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQdYM-00032M-Lw for pgsql-bugs@lists.postgresql.org; Wed, 06 Jun 2018 18:53:02 +0000 Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fQdYH-0001eg-AV for pgsql-bugs@lists.postgresql.org; Wed, 06 Jun 2018 18:53:01 +0000 Received: by mail-qk0-x234.google.com with SMTP id q70-v6so4663889qke.1 for ; Wed, 06 Jun 2018 11:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=kbV6a7OtxndRvyPBRk0ArWv+TuEXktYk35bZDTyX6QY=; b=ZGlCzMDL3KbAuBFK0InOzyhs3+hr4bJ5ray0U4DhLfsX2EFxegE+uO8koRP3isFtXU 1IshpzkRoaoj4XoBvccfFIxmGnL1Lt/tnrdLPszf3+013epmAC5Q3yK9YAAvCRmCyj2U oSSQSXpQypvVEjd5Y1MuJNDYKbR5QRAoWzD1UF3qTCyu94bKdu8x/JmiGRQ6/xTRXaGo kKAd+8JAYpVy6PEPMrMn5/NN7fywS5y6w3UwwyyezigMYcUg3UibYh3Uaxc5wTL9m9jM IMdrtAVcomo6nWVxio1RIwuD9w9j/fhU6k7mAwtmxiW4fKR/Lfh4ePBfM2AP0ZURFMaY 1+QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=kbV6a7OtxndRvyPBRk0ArWv+TuEXktYk35bZDTyX6QY=; b=i/AhXlH/+zi9HfwTsYa10oSQ+E7x6+CweFp5G2VwrKVG4n63HIRsHW8CO0RcukdM9G onxSNNMKwnxyBDpz+xYAHFaSQjqQJ+9DAXm6gEEjX8JU7bBKlS6plUNQcVNvMSIpjc4j xL3uSuhJtyzjsQLgLapewZCzEIu7o8QSah+UYfQUf0cyxJtGUfrrHZUIxtd5/nQtbmY0 6h4osCNQtIkcuKcTo1dqw4oHGfALv513GUBvs8auRACfd251VqOp4KiOsrUpxl5r4oL+ rIWgH0KxQToeDCGWOJZtikMhU6zT92ViOHqpOqCbkZyQFkQbFBFfV5Ht/utU4R6afCI7 vjSQ== X-Gm-Message-State: APt69E0Bzf4vqyEZTFRZipNADnrr42ueVKOuJiRClF0uU3TY8MWrObw0 e/yE4NA5nPBQi/FdjMtzEpHIbg== X-Google-Smtp-Source: ADUXVKLI9C3etBZWIQ6g6jnmAWS3Wr1FFcNshw5+SFruqMPLvdcC7kGEr6gHy8Ur2s5hgK0l2A7YWw== X-Received: by 2002:a37:85c5:: with SMTP id h188-v6mr3843782qkd.40.1528311174963; Wed, 06 Jun 2018 11:52:54 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id m128-v6sm12223432qkd.33.2018.06.06.11.52.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Jun 2018 11:52:54 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 1D676D63; Wed, 6 Jun 2018 14:52:52 -0400 (-04) Date: Wed, 6 Jun 2018 14:52:52 -0400 From: Alvaro Herrera To: joanaliang_05@126.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15221: Could not open file "pg_subtrans/0013" Message-ID: <20180606185252.abncl7f7utu2j7k3@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <152774888851.26724.14798732262740273682@wrigleys.postgresql.org> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-May-31, PG Bug reporting form wrote: > we're using postgresql 10.2, postgresql is deployed in a docker image. it > works well for some time. but one day we met errors when we test with load. > In logs, we found below errors: > > 2018-05-28T10:08:38.487336192Z 2018-05-28 10:08:38.487 UTC [110] ERROR: > could not access status of transaction 0 > 2018-05-28T10:08:38.487348231Z 2018-05-28 10:08:38.487 UTC [110] DETAIL: > Could not open file "pg_subtrans/0013": Invalid argument. While reviewing this bug report a few days ago I noticed that there was one place that would report "could not open file" on a failure to lseek(), because a wrong enum value used as function indicator was set. It could not possibly be involved in this report, because that code is only used by multixact.c and commit_ts.c in branch 10. Nevertheless, I applied a patch to fix that. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services