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-0006Sk-6R 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-0007Vo-3i for pgsql-general@arkaria.postgresql.org; Thu, 20 Oct 2022 17:32:45 +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 1olZO1-0001d1-Gr for pgsql-general@lists.postgresql.org; Thu, 20 Oct 2022 17:31:17 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1olZNy-0002Mn-LL for pgsql-general@lists.postgresql.org; Thu, 20 Oct 2022 17:31:16 +0000 Received: by mail-pg1-x532.google.com with SMTP id l6so150345pgu.7 for ; Thu, 20 Oct 2022 10:31:14 -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=uRLlwzUoipVCegodQcV1Cyr2Rav/9iLxo6xWGFVLodU=; b=OIRjOLfp2T5DoEgSXI49Uc04lVSeE+H7RjgaPTy5feNe78czMZdtPsYFESs92a5zUY lsvktHVbGXBmE+D18BVP8eVhDKE9Wg32I5o3DyzDsZXFld819F/ERGjMQsO5vw2caSiM 7AT2f6PydE2CfjFmY3lj+Ap7N5nUHbtC2FmpnWzDKqljg9vkiRJ9Q6sE7ILRt0NftUVw tCWgH33JqGiBzGLSE4IG71Bn1PtvcagvkoWNI4/zHYWUnABy/zPnfD5PebFp5LsOdlWT e5fZe2c3dtavck8dCIfULPYoEGSdw+1nL15j34aJdodZ+VOzXLH2Oyz2VZWXHq7/1plP rEKQ== 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=uRLlwzUoipVCegodQcV1Cyr2Rav/9iLxo6xWGFVLodU=; b=OZTe1zkfXvog8NAQb0i1Mz5/OEYYMYMnyrbooxjWD3vwfLrG9IbSq+6jROZdhYpCeZ S2iRU+GO2sv8bKRNiWiTVRptd9wnWbyzuvOL+chW3fnpuzx4VL3WQZBSY7k1fKPBUUDM 7311wUPf3GhzzbrwQha7lkyoccQsU+bQ0dUYGPy/LMuuiMq4/28fJIElfNgmp/5UsCDd wM0gVW016Ko2YYlX7KGMh7MSbeIZ3j9tyBml0AY7ozo3oCLl6RvfgMdt/+q9YPKyiFk2 s7cSbA9uREZwz3ivDKBpCn6V6mnqjWm+RHhgJmCi5yl9tVEbb+Tlj1EKrFCIP3oS6M6l RtwQ== X-Gm-Message-State: ACrzQf1lXosw3TkirSsotnB3HQJViIsNkmsum6/R4agk2cbv3LvRU7CK E31Uka/jWkIcZFwNbN9u1KLOpCyGFDpeHw== X-Google-Smtp-Source: AMsMyM6YOInzU6vJnhslfrYSQxC781ryKLd4MySeC/50s9JhAM5GJBEdbs+5yWlBEbTa1+Ep4Jkr/w== X-Received: by 2002:a62:5202:0:b0:562:d28e:f715 with SMTP id g2-20020a625202000000b00562d28ef715mr15099593pfb.26.1666287073251; Thu, 20 Oct 2022 10:31:13 -0700 (PDT) Received: from ?IPV6:2601:681:5a00:f790:f7ef:5f62:79f4:bcb4? ([2601:681:5a00:f790:f7ef:5f62:79f4:bcb4]) by smtp.gmail.com with ESMTPSA id n2-20020a17090a160200b00211a9866c81sm139390pja.56.2022.10.20.10.31.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Oct 2022 10:31:12 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------0nZTBR0VgSbp0EcHoTSDlZ1z" Message-ID: <98770608-86c3-ebc1-4b55-76331bdf62da@gmail.com> Date: Thu, 20 Oct 2022 11:31:11 -0600 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-CA To: pgsql-general@lists.postgresql.org References: <4829b4ef-430f-59cf-5143-b6754904ee16@gmail.com> From: Rob Sargent In-Reply-To: <4829b4ef-430f-59cf-5143-b6754904ee16@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. --------------0nZTBR0VgSbp0EcHoTSDlZ1z Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------0nZTBR0VgSbp0EcHoTSDlZ1z Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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
--------------0nZTBR0VgSbp0EcHoTSDlZ1z--