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 1sJHNm-0043dj-Bm for pgsql-general@arkaria.postgresql.org; Mon, 17 Jun 2024 18:47:10 +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 1sJHNi-002keo-2d for pgsql-general@arkaria.postgresql.org; Mon, 17 Jun 2024 18:47:06 +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 1sJHNh-002kcC-NP for pgsql-general@lists.postgresql.org; Mon, 17 Jun 2024 18:47:06 +0000 Received: from mail-vs1-xe2f.google.com ([2607:f8b0:4864:20::e2f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sJHNg-001n5l-6I for pgsql-general@lists.postgresql.org; Mon, 17 Jun 2024 18:47:05 +0000 Received: by mail-vs1-xe2f.google.com with SMTP id ada2fe7eead31-48d72c72079so1288376137.3 for ; Mon, 17 Jun 2024 11:47:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718650023; x=1719254823; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=VKKx2ilw07N+dMDb+f00eD8BU6/SdxmsGwqn8bxzje0=; b=PYSzxfLNHXR9tBeFy/F0JJzb3J9AHIjuuXKHgie0yTTFqcl/GeU+EF0NcokDMKo7u8 2372A46dw7LsdCt4O3yETCxDIY+XCzl2ZpUXnT1NJZAg/bgSrm8X9g3j0Ttq4injSarb n+dOXt0eCn+5Rqnr7QlKx8mOkI1VG8pViwZqwG9UHmkV3xPM3gMRvONlGfnjgP6EEqqv Ln3RnMb+ecAlgKmbcM3sgx7s7nbBfxN6vWVk3Yrrwb9O+X+3F+h/bg3XkclQnC4rWEJ3 kDDMe3Mtd3NZie3sKROGD0yMfiKFk0s2Sdi6HpFyq9uYl5RsL4ZBVXMsznkHO19dc2ee LSbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718650023; x=1719254823; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VKKx2ilw07N+dMDb+f00eD8BU6/SdxmsGwqn8bxzje0=; b=kAXPKj7FUh4/mF7vyKp/SB4PZmbcSf7smwL6/h7QCC3U9sz8wAQxr0pog/TXjcjDkE cXoW6uP7IW1XCjucTCiLv00om19gMSjaQQqjPSkH3MTIUu7HTEK8xBPEOZxwHByybFSR /0dvhj3UgR2GEiMNmM6rhOEWLdZ3tMpjlc4D9kdq2sQdDajFnCKbemKTz21ARvAfS+Ju VXY9HU4z9q/VGEiJ4HbQ5ZBhVZTXvT/6XRrhLFnZbHIv62D1VDJoL9U1nKxo7xEknAty ENWMdxzTFwyINnvOlrEfTIIKHsuSa6xKWuxGKS0n1YqZr/utD18l2qnR/jVPIHMTo9Ki Dhkg== X-Gm-Message-State: AOJu0Yw983hQHxHkZ4MDfKernvGNN6oMb4SyTwbyVjQdtHbQVPQtc9Sr 8gCluw/pqbDNTXCJMhyY3dDoox6RrlfzRaLI21VH9zeSkNFhCoD+P3PBIMJxSRpNtzy5xPwj2Vh meKzgbMRTJCVb7G0mkSMn0lmjNVh3LUXcBaeTXg== X-Google-Smtp-Source: AGHT+IFIvYpqcsXK0SR7TcTTodbTA3tLfljUnTDeASHCOdbdJfxJJl3jwqzv2NJrc5IlDgDNlQ9UqFtznnPOAD6kpyY= X-Received: by 2002:a05:6102:3546:b0:48d:8795:df41 with SMTP id ada2fe7eead31-48dae33da67mr9175951137.3.1718650022921; Mon, 17 Jun 2024 11:47:02 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0J/QuNGC0LDQutC+0LI=?= Date: Mon, 17 Jun 2024 21:46:51 +0300 Message-ID: Subject: To: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000001c0fae061b1a6494" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001c0fae061b1a6494 Content-Type: text/plain; charset="UTF-8" In libpq, in the code of the lo_import function, for each piece of a file of 8KB in size, lo_write is called, which greatly slows down the work of lo_import because lo_write sends a request and waits for a response. The size of 8KB is specified in define LO_BUFSIZE which changed from 1KB to 8KB 24 years ago. Why not increase the buffer size? --0000000000001c0fae061b1a6494 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In libpq, in the code of the lo_import function, for each= piece of a file of 8KB in size, lo_write is called, which greatly slows do= wn the work of lo_import because lo_write sends a request and waits for a r= esponse.=C2=A0 The size of 8KB is specified in define LO_BUFSIZE which chan= ged from 1KB to 8KB 24 years ago.=C2=A0
Why not increase t= he buffer size?
--0000000000001c0fae061b1a6494--