Skip site navigation (1) Skip section navigation (2)

Pre-Allocate tablespace on disk

From: Chris Ruprecht <chris(at)ruprecht(dot)org>
To: pgsql-admin(at)postgresql(dot)org
Subject: Pre-Allocate tablespace on disk
Date: 2010-11-15 19:42:46
Message-ID: 9CB65F11-6FA4-48D5-BCC5-B3F694659965@ruprecht.org (view raw or flat)
Thread:
Lists: pgsql-admin
Hello,

I was wondering if there is a way to pre-allocate tablespace on disk before adding data and indexes.
My understanding is:
PG writes data into files sequentially. If more space is needed, disk space is requested from the OS and if there is space, the OS will give PG a file system block and PG will write data/indexes until that block is full and so on.
Other database that I have worked with before and that I'm still working with, allow you to pre-allocate disk space so you get huge chunks of contiguous space at one, which has major impacts on database performance.

Can this be done with PG at all? If not, is this planned for any time in the future?

best regards,
chris
-- 
chris ruprecht
database grunt and bit pusher extraordinaíre 


Responses

pgsql-admin by date

Next:From: Guillaume LelargeDate: 2010-11-15 20:58:31
Subject: Re: Pre-Allocate tablespace on disk
Previous:From: Chris BrowneDate: 2010-11-15 16:36:02
Subject: Re: GUI ERD/ERM tools?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group