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 1tByY4-007p3r-PU for pgsql-general@arkaria.postgresql.org; Fri, 15 Nov 2024 15:47:52 +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 1tByY2-00AUom-6f for pgsql-general@arkaria.postgresql.org; Fri, 15 Nov 2024 15:47:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tByY0-00AUo4-T2 for pgsql-general@lists.postgresql.org; Fri, 15 Nov 2024 15:47:50 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tByXw-00261J-5Q for pgsql-general@lists.postgresql.org; Fri, 15 Nov 2024 15:47:48 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 119FF138042B; Fri, 15 Nov 2024 10:47:43 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Fri, 15 Nov 2024 10:47:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1731685663; x=1731772063; bh=LXgi4r/zSJCnef2F5GnDYq5f+3vaZF73Y9nSqSiygj4=; b= syWysGIo63cVuU49UoXxZ5A9b6u+7c14ryydqMakaUKJvPEQrGRoe7uUONuxLhg/ U8A831CSQoDq0p20QRZDwuduIlXZJVEn+PDO7IZh5Ao7GY+gR8lyviXFbhz5ksxG 6xjo7lHL6KraXNuQEx3RMVR7OQLp21pf5PGJNF0441jDxqzAbseY4lrMztT8SUOl xQo3t6dGdZXFCbFJujBsJm3eIewRo+qM1zFQJcXMJYZLXYR5/09TF6p5S8IvUdOS NAqAMUhwZvi+eVgrVbmEWkoIutwvohvRvdCj6WMwCsOu1qf5cQYqbBiipCTiCIuO oKIZVlqmIVnfCA3huAvUCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1731685663; x=1731772063; bh=L Xgi4r/zSJCnef2F5GnDYq5f+3vaZF73Y9nSqSiygj4=; b=arUTnpSNRocNH+WYL ePmkrgtdCuPLilKRn70IPwsm/2kH2ZUMxNx8m0uwbx8K/DX9YPLPfbrEj1cdTkNA iGGt71svGKkPHtzEDuF+PE4ujv34OlRuc9huQv94bwE6yAcjzG/ZgCrsA44P4cR9 0wfywIn11Bw37oDqFJkUepAfMPz7+ErTmkYdqpzkrAiBtRWA1CCW5M7vahMC+jDA 6y0Cdbilx5f7wMzEmjPr1j6SuScBD5ocjmf+jd1Ivs/FspQLQ6f7ZOqU50UZYLsY Jiugr0ZZI1JNQ99XKKmBfgDt7AA2c/qg/oLSZusD78iC/KR3+gemzi6JoBSGgOfE nFgIg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrvdeggdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecu hfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrg hklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepleegveekkeekueeigfdtveei leeuhfefudefteekjeffkeejueejheegheegkedtnecuffhomhgrihhnpehpohhsthhgrh gvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprh gtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehhrghrthhmrghn iedthhhomhgvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrh grlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 15 Nov 2024 10:47:42 -0500 (EST) Message-ID: <3266a0a3-4de9-4214-8c4d-dd99b9074e40@aklaver.com> Date: Fri, 15 Nov 2024 07:47:41 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: DB Files To: Andy Hartman , "pgsql-general@lists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver 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 On 11/15/24 06:27, Andy Hartman wrote: > I created a  new table (V16) and then used SimplySql to take data from > mssql to the new Postgres table. The table is 212gig in size. Myquestion > comes from the files created on the OS(Windows2022 server) I can see > lots of files with the last being: > > 2474695.143 > > They are all 1,048,576kb > > Is this normal behaviour and could I have done something to use fewer > files and larger ones? Read: https://www.postgresql.org/docs/current/storage-file-layout.html [...] "When a table or index exceeds 1 GB, it is divided into gigabyte-sized segments. The first segment's file name is the same as the filenode; subsequent segments are named filenode.1, filenode.2, etc. This arrangement avoids problems on platforms that have file size limitations. (Actually, 1 GB is just the default segment size. The segment size can be adjusted using the configuration option --with-segsize when building PostgreSQL.) In principle, free space map and visibility map forks could require multiple segments as well, though this is unlikely to happen in practice." [...] > > > This table is created in a separate tablespace on a dedicated drive on > the windows file system. > >  I'm just getting involved in this PostgreSql instance > > THanks. -- Adrian Klaver adrian.klaver@aklaver.com