Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sDJeu-00Br9i-83 for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Jun 2024 08:00:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sDJer-001AXC-Ph for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Jun 2024 08:00:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sDJer-001ATU-Bh for pgsql-hackers@lists.postgresql.org; Sat, 01 Jun 2024 08:00:09 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sDJen-002wCg-OH for pgsql-hackers@postgresql.org; Sat, 01 Jun 2024 08:00:07 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2ea8fff1486so17635391fa.1 for ; Sat, 01 Jun 2024 01:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717228803; x=1717833603; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=C8248TkQpOfOP5wDNOxAHtRPJNReNXsYbCc3cW0rObY=; b=DdTR4SeNfK2DapyBtu+Nh1zSNFOKnKxk9vGFqFjtbn5GSvsoaiWMImhCoqTeRsZFQt vxuYW4oUmgL8Lj6zezDgdjt9gxPdwXU/ElRI0A0fCCe4/+ZYiFbe40hZ9MZoQvXNalUp 7lXHIuLrZLmfZzJQhbfMyuGBK8PsN6bSBMnNALyLMdCTStL5JU4oWkLm4tBC2cLMvM8R NVbHpdsSam/+YXi7kWrajFkyDYBsdo3dE5IF+IhLzFIIID7dQ1ONZxwUaI8C+0/12KVQ ZEzwA9FsQdSq0P8L/wlXUDIO6w3sosJZkuyRzhZGXpJowrohQH48HtoFnpCioNFdrxbt GdYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717228803; x=1717833603; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=C8248TkQpOfOP5wDNOxAHtRPJNReNXsYbCc3cW0rObY=; b=fVsNX8JYwwHlqefu1T9Uuvid0e8ALayJDsfz907GCWFZ8/azII4b18W21G76+wDhS0 p+w2UuNIV4iTJWN0EGzxfRxYLDTfOwP7JIEI+TOprViiQnKyF2kys1E6pzSk9O58WUHi 74UKeRwFa1+DVK6ziBH3bZKYraZc1B8VVBDsWG9naFul3lb9P+YGvgRqhkQXIMMqj8Jr tOa/xcHWkT82R+By3+zPqrmu+XYOVbJW/BF90824S2/RixgwAwhlWNv2iSoNi+bGqQaq J+JAphyE1BqrhpXgu0UyTGjM/yVVlX1RU2H278FBXfLwhD7avUW7TkajFNNf4X3jnl1b dvGA== X-Forwarded-Encrypted: i=1; AJvYcCU1SMjlPKZL8vZBTRCHurVmCY24vyDtUekvT2iKzt2OLFTtrUNpIuC4Cbz/xPegbMMZB98cTWcYftpbMMnknRWtPCUqQdUHKvPcS8d2 X-Gm-Message-State: AOJu0YyBNW6EfF8DBzrxACXMs7a3U6+imovRDVUhGGywrjcBVWuJzUTy pCBYC+1p7/kVFJrG/Lo02FKG4WNf/6TKgtHPyn5IEaWZOrTFr4ns X-Google-Smtp-Source: AGHT+IEdOKpAIyPbzR/5nTriBBP4z/Eo9lFzpJ+pRi9af2SsDzpHzWYSYgYQYI47TNxcBtP6S9QI2Q== X-Received: by 2002:a2e:bc26:0:b0:2e2:2623:36a with SMTP id 38308e7fff4ca-2ea84c0cbd4mr25222561fa.3.1717228803010; Sat, 01 Jun 2024 01:00:03 -0700 (PDT) Received: from [1.0.0.7] ([81.23.166.29]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ea91b9d983sm5182541fa.7.2024.06.01.01.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 01 Jun 2024 01:00:02 -0700 (PDT) Message-ID: Date: Sat, 1 Jun 2024 11:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: ResourceOwner refactoring Content-Language: en-US To: Heikki Linnakangas Cc: Aleksander Alekseev , "pgsql-hackers@postgresql.org" , Julien Rouhaud , Robert Haas , Peter Eisentraut , Andres Freund References: <2e10b71b-352e-b97b-1e47-658e2669cecb@iki.fi> <20221101001523.lsgmohl6fjwppbgx@awork3.anarazel.de> <9a3245db-ca03-4a47-5706-73404cfe5108@iki.fi> <20221101154251.64vyq7wy6w7aykrn@awork3.anarazel.de> <527af829-4a03-03b0-121c-46ff79c61887@iki.fi> <20230710191446.pn5ltm73t2i3xtxz@awork3.anarazel.de> <20607b96-b275-4a57-8509-29a3ed320d3f@iki.fi> <48b16f57-4204-4bd2-ab42-fb24144649c4@eisentraut.org> <9cb1277d-aee4-6511-44ee-7924676f7756@gmail.com> <599c6674-d40b-4b31-9251-c5c073ff9fdc@iki.fi> From: Alexander Lakhin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Heikki, I've stumbled upon yet another anomaly introduced with b8bff07da. Please try the following script: SELECT 'init' FROM pg_create_logical_replication_slot('slot',   'test_decoding'); CREATE TABLE tbl(t text); BEGIN; TRUNCATE table tbl; SELECT data FROM pg_logical_slot_get_changes('slot', NULL, NULL,  'include-xids', '0', 'skip-empty-xacts', '1', 'stream-changes', '1'); On b8bff07da (and the current HEAD), it ends up with: ERROR:  ResourceOwnerEnlarge called after release started But on the previous commit, I get no error:  data ------ (0 rows) Best regards, Alexander