Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbHeO-0008TY-PB for pgsql-general@arkaria.postgresql.org; Tue, 27 Apr 2021 06:56:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lbHeN-0005zR-Iq for pgsql-general@arkaria.postgresql.org; Tue, 27 Apr 2021 06:56:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbHeN-0005w0-68 for pgsql-general@lists.postgresql.org; Tue, 27 Apr 2021 06:56:51 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lbHeK-0000z9-0V for pgsql-general@lists.postgresql.org; Tue, 27 Apr 2021 06:56:50 +0000 Received: by mail-ed1-x52e.google.com with SMTP id c22so4983588edn.7 for ; Mon, 26 Apr 2021 23:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=sHv88tTWzxbpeVyinPxne56Q4JnyM20yoDU3EYTPTGA=; b=GpuldjV5dWPplxTVlnY7vbIl+DcyfD1blMhC7SFr5+uVHtiuVhZxg9HTpUv3yeGsrN AdqORnTwWf2VNPAN6pKgFyaPuAX4DwLnqfZuPwH1nBkYoWgmMgI8rHIz/gitEtn2H97Y Tt5UTrwH6P80SkkO2MLuKx5x281TovRrh9Cp/mAVoVuo23uqNdmycraxVmNj9QJLV1a4 ICwl9qYSZJtsArHbqYIxYlEWlSHtYcmYYpbHXn35XpwKcxRqssE36zmBqEGkEhLmTSUU 38yXJKdERS+x7/6gKZR6PNcGkZAkdfEB+BYXd9+bYM0nUHP7AMlwqkqmg6dUhVVkOPvR jI+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=sHv88tTWzxbpeVyinPxne56Q4JnyM20yoDU3EYTPTGA=; b=JnpaUnz1s96umOF6nhfRQsbiZZEBxeXjLe4CQNXClO/63OWXUorWnWQ46VlyQG2Gr1 1UqVvzW6Imk74g7Bz64ntnNFXgJLu+z5UwrQVUyKwXkjfg1KijkGAJHFipjgA5lkyM4o UcKOSywgZXWxN8UnrwRtgn69Bd1FXJIWM5ORIGjRR+WtH6U/e83/xD5uvQVZfpQrv3YN FbrEU7W9VF+7L96BN1brVKd/oFFs8l3A2g3aWNd4b6TuodBScnlitqLpGY+FdUEnwKS7 EDkRCDRkR4ll2TcNJ3AyPhlkn7olWoWxB2n/0r9bqcHe8NiDJIHYmr/KxGd/jlo4iGdi z6EQ== X-Gm-Message-State: AOAM53280j/SK6y6b8eLMdMWoFg6Hkv6pYJCPTlzLQvTp4MgxKcDKAM3 Mpw2h8mz8ww3fOgyeaACEXdzBQ== X-Google-Smtp-Source: ABdhPJzy0hW3anwfBYKIrw32ORFTjLi8FmsfGFxCsqU7vAi358TUF6M1AsiRrx68pI8vbOAYaHV1Ww== X-Received: by 2002:a05:6402:2366:: with SMTP id a6mr2653495eda.10.1619506606413; Mon, 26 Apr 2021 23:56:46 -0700 (PDT) Received: from localhost.localdomain (217-149-166-173.nat.highway.telekom.at. [217.149.166.173]) by smtp.gmail.com with ESMTPSA id r18sm12788506ejd.106.2021.04.26.23.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Apr 2021 23:56:46 -0700 (PDT) Message-ID: Subject: Re: -1/0 virtualtransaction From: Laurenz Albe To: Mike Beachy , pgsql-general@lists.postgresql.org Date: Tue, 27 Apr 2021 08:56:45 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2021-04-26 at 17:45 -0400, Mike Beachy wrote: > Does anyone have any pointers on what a virtualtransaction of '-1/0' means? > > I'm using SSI and an example is > > locktype | database | relation | page | tuple | virtualxid | transactionid | classid | objid | objsubid | virtualtransaction | pid | mode | granted | fastpath > ----------+----------+----------+---------+-------+------------+---------------+---------+-------+----------+--------------------+-----+------------+---------+---------- > page | 16384 | 468238 | 19216 | | | | | | | -1/0 | | SIReadLock | t | f > > This is incredibly hard to search for. > > I see these for page, tuple and (perhaps a clue?) one relation, and I'm seeing the page and tuple locks accumulate over time. > Eventually this results in an "out of shared memory" error. Not sure, but do you see prepared transactions in "pg_prepared_xacts"? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com