pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedDoes standalone postfrsql have autogrowth/ manual growth on table space?
7+ messages / 4 participants
[nested] [flat]
* Does standalone postfrsql have autogrowth/ manual growth on table space?
@ 2022-10-20 17:19 Vince McMahon <sippingonesandzeros@gmail.com>
0 siblings, 1 reply; 7+ messages in thread
From: Vince McMahon @ 2022-10-20 17:19 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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?
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Does standalone postfrsql have autogrowth/ manual growth on table space?
@ 2022-10-20 17:29 Ron <ronljohnsonjr@gmail.com>
parent: Vince McMahon <sippingonesandzeros@gmail.com>
0 siblings, 2 replies; 7+ messages in thread
From: Ron @ 2022-10-20 17:29 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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.
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Does standalone postfrsql have autogrowth/ manual growth on table space?
@ 2022-10-20 17:31 Rob Sargent <robjsargent@gmail.com>
parent: Ron <ronljohnsonjr@gmail.com>
1 sibling, 1 reply; 7+ messages in thread
From: Rob Sargent @ 2022-10-20 17:31 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Does standalone postfrsql have autogrowth/ manual growth on table space?
@ 2022-10-20 17:32 Ron <ronljohnsonjr@gmail.com>
parent: Rob Sargent <robjsargent@gmail.com>
0 siblings, 0 replies; 7+ messages in thread
From: Ron @ 2022-10-20 17:32 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Does standalone postfrsql have autogrowth/ manual growth on table space?
@ 2022-10-20 17:32 Christophe Pettus <xof@thebuild.com>
parent: Ron <ronljohnsonjr@gmail.com>
1 sibling, 1 reply; 7+ messages in thread
From: Christophe Pettus @ 2022-10-20 17:32 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
> On Oct 20, 2022, at 10:29, Ron <ronljohnsonjr@gmail.com> wrote:
> There's no pre-allocation in Postgresql.
This is correct in that you can't say "please allocate 3GB for this table for me now." The number of pages that are added to the end of a file isn't always one though; it can allocate more based on recent activity.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Does standalone postfrsql have autogrowth/ manual growth on table space?
@ 2022-10-20 18:45 Vince McMahon <sippingonesandzeros@gmail.com>
parent: Christophe Pettus <xof@thebuild.com>
0 siblings, 1 reply; 7+ messages in thread
From: Vince McMahon @ 2022-10-20 18:45 UTC (permalink / raw)
To: Christophe Pettus <xof@thebuild.com>; +Cc: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org
Thanks. I guess it is time for vacuum. 😂
On Thu, Oct 20, 2022, 13:34 Christophe Pettus <xof@thebuild.com> wrote:
>
>
> > On Oct 20, 2022, at 10:29, Ron <ronljohnsonjr@gmail.com> wrote:
> > There's no pre-allocation in Postgresql.
>
> This is correct in that you can't say "please allocate 3GB for this table
> for me now." The number of pages that are added to the end of a file isn't
> always one though; it can allocate more based on recent activity.
>
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Does standalone postfrsql have autogrowth/ manual growth on table space?
@ 2022-10-20 18:48 Christophe Pettus <xof@thebuild.com>
parent: Vince McMahon <sippingonesandzeros@gmail.com>
0 siblings, 0 replies; 7+ messages in thread
From: Christophe Pettus @ 2022-10-20 18:48 UTC (permalink / raw)
To: Vince McMahon <sippingonesandzeros@gmail.com>; +Cc: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org
> On Oct 20, 2022, at 11:45, Vince McMahon <sippingonesandzeros@gmail.com> wrote:
>
> Thanks. I guess it is time for vacuum. 😂
Ironically, vacuum is the main issue. The main reason that you can't just slap a few gigabytes onto the end of a table is that the next time vacuum runs, it will happily truncate it all away.
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2022-10-20 18:48 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20 17:19 Does standalone postfrsql have autogrowth/ manual growth on table space? Vince McMahon <sippingonesandzeros@gmail.com>
2022-10-20 17:29 ` Ron <ronljohnsonjr@gmail.com>
2022-10-20 17:31 ` Rob Sargent <robjsargent@gmail.com>
2022-10-20 17:32 ` Ron <ronljohnsonjr@gmail.com>
2022-10-20 17:32 ` Christophe Pettus <xof@thebuild.com>
2022-10-20 18:45 ` Vince McMahon <sippingonesandzeros@gmail.com>
2022-10-20 18:48 ` Christophe Pettus <xof@thebuild.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox