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 1rVpP7-001YjZ-15 for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Feb 2024 09:00:09 +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 1rVpP5-00BhUh-VP for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Feb 2024 09:00:07 +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 1rVpP5-00BhUU-Lm for pgsql-hackers@lists.postgresql.org; Fri, 02 Feb 2024 09:00:07 +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 1rVpP2-004fhn-Ts for pgsql-hackers@postgresql.org; Fri, 02 Feb 2024 09:00:06 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2d073b54359so20625611fa.0 for ; Fri, 02 Feb 2024 01:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706864403; x=1707469203; 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=dm87LikVV/5wIo1eJGqpDn8OYEiCe/elIKkBe14QUTQ=; b=khoCWs0fEUtq9FIBZz2byXCEcwEvebX/LVKWl928dOObPzgJElR2O9BTXsgonsV2sM AYahTNdT+abcUwENwJCdz+l9sE9L6oUgOqMPGZXhhMTDVuzdjSCALAsVzTbO4y7KKDTy WpbNHVLfLhEWW8dGgQ+cpku2mSxhppGUBGcKgByNEsrsPBvVbK1LyLbWCGQurguEarbu eZeGfxGAtzC/FbzkJiZ8hhdSQnk89FAReGeSiI6qhOIaahjS2CQN0Uj9Y8LoJc833onf dkmH/vQQ2jdBPGmLMGfVx79OMgeOvSel97zRnmDUaN0jnZ4v79g63s4AW89hszQpFleJ fweA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706864403; x=1707469203; 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=dm87LikVV/5wIo1eJGqpDn8OYEiCe/elIKkBe14QUTQ=; b=Jh+kIZKXjCPUSMLVlt7aHLLK0MEAWr3Bj4AEsDCc3jywfWGY10kzb+mwo5zdC4fZqR Xqdtiq/dLikPblGUkajYzs/uB9+nx6zIhjy0jXIAD933A+saJOXRnywsIS4s0yzyk/QD 21Old4uWzZkD6qetPrM9UUB6y8NMptYK4ydxOd11nLO/dK7oTytmHVM3pymz+JBjfwkj m2r5homk4BhQ+lqKe8uN7+Pe+oM6ZPXocEIMvF5vxAjxmqAGkfJNb+lKMQjywe/U7bz6 0PYC1cnc2DFUSBGCB2aAY0X4y3l34dKlpgwsWKnkCqXYdImGC4LW/thfNsHuxrUan72i 4Ylw== X-Gm-Message-State: AOJu0YxI6qu7gbb9SP6roP9kXQ7xiInun5hQzEhRu8qKSyc7qhIj/5Za Yd8PopJd1YVu3bJNSPOEUwmmvfMD922sGh3mKTKbmCWaUn+46Mx0 X-Google-Smtp-Source: AGHT+IFjo6ocFnnRjMQV9/aYm7w54nrUeli05o+/THreJGjx3QpWm/80+y8MH4+VA86SHtdV+xArwQ== X-Received: by 2002:a2e:a607:0:b0:2d0:73dd:d125 with SMTP id v7-20020a2ea607000000b002d073ddd125mr2770678ljp.3.1706864403039; Fri, 02 Feb 2024 01:00:03 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVYN1H210c9yB4vPwstUeH3kQiWNNdLbhHq7BCwqg+PQVoJQgtZ9sgJtzsetdnOXNascmv1ZnzDmlwirYvlkFgHF0r34HpHO/Iy5RG5TOIjFHP80ak0L4eJG95L1LS5lK6Du3x3jjlM3TNrXqE14I7p7OR7ClcOTIcfqXXoBe5YlXupsw/r8RvEpPTxSWovGabpXHHkpwc1ub4JL94kHxkSEQ== Received: from [1.0.0.7] ([91.185.77.50]) by smtp.gmail.com with ESMTPSA id by19-20020a05651c1a1300b002cca6703b13sm209138ljb.99.2024.02.02.01.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Feb 2024 01:00:02 -0800 (PST) Message-ID: Date: Fri, 2 Feb 2024 12: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: <599c6674-d40b-4b31-9251-c5c073ff9fdc@iki.fi> 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, 08.11.2023 14:37, Heikki Linnakangas wrote: > > Fixed these, and pushed. Thanks everyone for reviewing! > Please try the following script: mkdir /tmp/50m sudo mount -t tmpfs -o size=50M tmpfs /tmp/50m export PGDATA=/tmp/50m/tmpdb initdb pg_ctl -l server.log start cat << 'EOF' | psql CREATE TEMP TABLE t (a name, b name, c name, d name); INSERT INTO t SELECT 'a', 'b', 'c', 'd' FROM generate_series(1, 1000) g; COPY t TO '/tmp/t.data'; SELECT 'COPY t FROM ''/tmp/t.data''' FROM generate_series(1, 100) \gexec EOF which produces an unexpected error, a warning, and an assertion failure, starting from b8bff07da: .. COPY 1000 ERROR:  could not extend file "base/5/t2_16386" with FileFallocate(): No space left on device HINT:  Check free disk space. CONTEXT:  COPY t, line 1000 ERROR:  ResourceOwnerRemember called but array was full CONTEXT:  COPY t, line 1000 WARNING:  local buffer refcount leak: [-499] (rel=base/5/t2_16386, blockNum=1483, flags=0x2000000, refcount=0 1) server closed the connection unexpectedly         This probably means the server terminated abnormally         before or while processing the request. connection to server was lost 2024-02-02 08:29:24.434 UTC [2052831] LOG:  server process (PID 2052839) was terminated by signal 6: Aborted server.log contains: TRAP: failed Assert("RefCountErrors == 0"), File: "localbuf.c", Line: 804, PID: 2052839 Best regards, Alexander