1

I have, in oracle, this following sql command to create a tablespace with initial size:

CREATE TABLESPACE tb1 DATAFILE 'file.f' SIZE 10M AUTOEXTEND ON;

I didn't find the same sql command for Postgresql.

According to my research there is't a possibility to set this field in postgres.

I need to set it because it increases the performance of my application.

0

1 Answer 1

4

In short: you can't

The way Oracle stores data is completely different to the way Postgres does it. Postgres doesn't store everything in a single (tablespace) file the way Oracle does it.

A tablespace is not a file as in Oracle it's just a directory where Postgres stores the files for tables located in that tablespace. And because it's just a directory "pointer", there is no initial size you can specify.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.