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 1tByaN-007q3K-Mb for pgsql-general@arkaria.postgresql.org; Fri, 15 Nov 2024 15:50:15 +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 1tByaL-00AdWW-2h for pgsql-general@arkaria.postgresql.org; Fri, 15 Nov 2024 15:50:13 +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 1tByaK-00AdWI-OO for pgsql-general@lists.postgresql.org; Fri, 15 Nov 2024 15:50:13 +0000 Received: from mail-yb1-xb36.google.com ([2607:f8b0:4864:20::b36]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tByaH-00262d-8H for pgsql-general@lists.postgresql.org; Fri, 15 Nov 2024 15:50:12 +0000 Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-e383bbcef9dso582465276.3 for ; Fri, 15 Nov 2024 07:50:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731685809; x=1732290609; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=H2Mel6o6zQJQhLBXiAeXlZ5rKJdPl7725kmSPKkrCkg=; b=nW5jRUDb3cv3cPjtl2fjoloS+u+U8GDwsGZ12uh8HFZzdEDW8Va81lDCeP84MMgM4x jOx1PpQjuM6Ri2qMYlBy4f2NumHd1rCntxcrUJ4CrAoAN3G9sdVenpPncRI/mlbIRtiG I5dUH+fNAZqyW07oCYHPXO0s1iJP0fmor44r01kbT4QLH8M7UZbnhuJt6kqTE2kakixC wePTXJ0pDkugj4CBoe5gDnAkuOhtzvtJYObqs4VvNttRQh3Ue3SylZF9ayuhS3Ibgwod y/Z6d4Cka/IhOS4X39pKqJeREaobP63vZAK8vfMttNFPjRtzKLN3T/ipsItAQb5sj2Zo u62g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731685809; x=1732290609; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=H2Mel6o6zQJQhLBXiAeXlZ5rKJdPl7725kmSPKkrCkg=; b=maKtsj/xqpFvxXyy4tR56a5IyZh8KHBLzU5bWJSogAIs7RnXvywc8cvqdBZboxqMr2 mZKN+JsUaloGxyoLP9LdqaldZpu3f6hB1SpOyTSwY7buOxIu7ckZ4gm110L9N1/eV7Ih W5ssQCj37zaVNRqtinvOU+n5AiLwZf1fkru+lbAOXVw3Sfh2C7vbupFFw/4r6xNF68D5 J59yCRWtHRB7VzXUJnI7qbMVqu44SsiBIB/hXkD+hLIO8MyAghQw9Mtyt9ffVPbauSbw idVnx10AqKWs9QeiFhuNSkBRTV0Pitc9xsM3YmCEZfK/gWCL2ipN4whOm3YdIUxRUWNH EBVw== X-Gm-Message-State: AOJu0YwbEhuTsmdiAvUgklxLFg2abRpgN1m22XaJOEizrhQ5mM0963fC o4fXABsq3nLNH+E4MLCMmiZLX9wAyctrSx2ZB0TWssmPTB843UDq7CuA2ANC690I6in3O5i8R37 1eA+TkmkkdwO8W5xVh53huj69CIE= X-Google-Smtp-Source: AGHT+IFjcSRQFKn20HiMILf/Rl1kXhyyTVFbDwdoZzmwT4bDbB/imB0E2AdLMmvX8qMpnaxWVLZxePeF0aiIFSqePaE= X-Received: by 2002:a05:6902:18c7:b0:e30:cc34:af1f with SMTP id 3f1490d57ef6-e3825d34cf6mr2384622276.2.1731685808178; Fri, 15 Nov 2024 07:50:08 -0800 (PST) MIME-Version: 1.0 References: <3266a0a3-4de9-4214-8c4d-dd99b9074e40@aklaver.com> In-Reply-To: <3266a0a3-4de9-4214-8c4d-dd99b9074e40@aklaver.com> From: Andy Hartman Date: Fri, 15 Nov 2024 10:49:57 -0500 Message-ID: Subject: Re: DB Files To: Adrian Klaver Cc: "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000758fac0626f58565" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000758fac0626f58565 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks... I just found that myself... so normal behavior then... On Fri, Nov 15, 2024 at 10:47=E2=80=AFAM Adrian Klaver wrote: > 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. Myquestio= n > > 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 > > --000000000000758fac0626f58565 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks... I just found that myself... so normal behavior t= hen...

On Fri, Nov 15, 2024 at 10:47=E2=80=AFAM Adrian Klaver <adrian.klaver@aklaver.com> wrote:=
On 11/15/24 06:= 27, Andy Hartman wrote:
> I created a=C2=A0 new table (V16) and then used SimplySql to take data= from
> mssql=C2=A0to the new Postgres table. The table is 212gig in size. Myq= uestion
> comes from the files created on the OS(Windows2022 server) I can see <= br> > 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/curr= ent/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=C2=A0tablespace on a dedicated=C2= =A0drive on
> the windows file system.
>
>=C2=A0 =C2=A0I'm just getting involved in this PostgreSql instance<= br> >
> THanks.

--
Adrian Klaver
adrian.klave= r@aklaver.com

--000000000000758fac0626f58565--