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 1olZPS-0006Sl-8V for pgsql-general@arkaria.postgresql.org; Thu, 20 Oct 2022 17:32:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1olZPR-0007Vp-3d for pgsql-general@arkaria.postgresql.org; Thu, 20 Oct 2022 17:32:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olZPQ-0007Ve-Oi for pgsql-general@lists.postgresql.org; Thu, 20 Oct 2022 17:32:44 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1olZPO-0002ag-ED for pgsql-general@lists.postgresql.org; Thu, 20 Oct 2022 17:32:44 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-12c8312131fso423673fac.4 for ; Thu, 20 Oct 2022 10:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=eKewAvND7tg+8XayNzwBJbPKGsxS42tYCfym9l3B15A=; b=AU5f6PDI4OIG/r816p6ypOiB9b51fVC38eyio1vOrnCHvblAs50VqnKXWXn6u3rHwD otDfnu3oo2Q4dGBYpRIGlwTAHi0/zFIiWkSzQz092Ud5Rq5TUbsWwAH0+6yObZO9lkeO ZAJnUjtO0eLi3U/9fJr3/LYBXVxbWhaEE12AypI152TVVDR8KD1TPzO6xDtUcDIyYDxw UsytfR0etL3Rby0nqfzbKyRimE97Go94hLnCcHVIjDphbG1dlTBhy/VH1JNhznwF8L7J OKX/OkpAzAEg/fDF4L5S9jw72Qv7L4qIqyWNjCdtFPKiiXI6Y4OfcF5C2fbBxSw/bdJy 0Jag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references: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=eKewAvND7tg+8XayNzwBJbPKGsxS42tYCfym9l3B15A=; b=O/ZTgALJlg9v+k54fhGWbXbhVW8KEj8FdQUJ7kvbT2fOjtt1THT3Rlct+fI2JVWEkM 8gnPM+9SzJVmyypkzs90TT8I3imrepIeTBLG7YKGL1pk2EPIOo2KXZkGI9ckgKetcunj JLzsxwL4RnqX1qQDJaCgfaWNeKefFThcMYhnJcESxbNaBNVvfb3staZMaLKw4Ce7Vo9x 8JTkdZZ2Qk149/gGoYqXrGCyY3ddbvLr6XmKk/iJswhKwPTu2muCBOkNCrxKx9kNBt9B 9pmev7IYfKgH+Tu9MruRTaNKoISTgn//NcFVZKM+A3y1yZ5P2LxSGcJTyCiUIszC5+pt QhAg== X-Gm-Message-State: ACrzQf3kYzwJys26rvmEFT2rJid1srOsM0BgrnoYseVhcHz282z8ztHb PRDRlsTFZhMZBj5aEXk80WI01QWk7Vw= X-Google-Smtp-Source: AMsMyM4VdkQwL0phbCp7xDuDSWujHG9UiIAWoU0v0cCmY9nx5whAwjEqlEeAf13cLTaWO5RwFKdYtQ== X-Received: by 2002:a05:6870:708a:b0:131:5edf:9ab8 with SMTP id v10-20020a056870708a00b001315edf9ab8mr9834365oae.214.1666287159839; Thu, 20 Oct 2022 10:32:39 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id z6-20020a056808064600b00354b1edb60fsm158780oih.32.2022.10.20.10.32.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Oct 2022 10:32:39 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------vaaeWlvuaajdhoXprWtfOKVl" Message-ID: Date: Thu, 20 Oct 2022 12:32:39 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: Does standalone postfrsql have autogrowth/ manual growth on table space? Content-Language: en-US To: pgsql-general@lists.postgresql.org References: <4829b4ef-430f-59cf-5143-b6754904ee16@gmail.com> <98770608-86c3-ebc1-4b55-76331bdf62da@gmail.com> From: Ron In-Reply-To: <98770608-86c3-ebc1-4b55-76331bdf62da@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------vaaeWlvuaajdhoXprWtfOKVl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 10/20/22 12:31, Rob Sargent wrote: > On 10/20/22 11:29, Ron wrote: >> On 10/20/22 12:19, Vince McMahon wrote: >>> In other databases, there is a way to preallocate the table space to >>> allow bulk loading of data in a well packed and continuous space. >>> >>> >>> Does psql have that auto/manual growth? >> >> There's no pre-allocation in Postgresql.  When you run CREATE TABLE, an >> (I think) 8KiB file is created; it grows as you add more data. When it >> hits 1GiB in size, another table is created. And then another and another >> and another, etc. >> > Another "file" is created, I think you mean Yes :D -- Angular momentum makes the world go 'round. --------------vaaeWlvuaajdhoXprWtfOKVl Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit On 10/20/22 12:31, Rob Sargent wrote:
On 10/20/22 11:29, Ron wrote:
On 10/20/22 12:19, Vince McMahon wrote:
In other databases, there is a way to preallocate the table space to allow bulk loading of data in a well packed and continuous space.


Does psql have that auto/manual growth?

There's no pre-allocation in Postgresql.  When you run CREATE TABLE, an (I think) 8KiB file is created; it grows as you add more data. When it hits 1GiB in size, another table is created.  And then another and another and another, etc.

Another "file" is created, I think you mean

Yes :D

--
Angular momentum makes the world go 'round.
--------------vaaeWlvuaajdhoXprWtfOKVl--