3

Today I installed PostgreSQL to work with. When I was reading the documentation, I found there can be more than one data directory present. Is it more than one data directory for single installation ? Or I understood wrongly ?

In my installation, data directory is in

C:\Program Files\PostgreSQL\8.3\data

if it can be more than one data directory for single installation, how will be the directory structure ?

2 Answers 2

5

I think you mean a tablespace, please check the manual: CREATE TABLESPACE

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

Comments

4

There can be only one data directory for each PostgreSQL cluster. A cluster is a postmaster listening on a port, managing several databases from a single data directory. You can have multiple clusters by starting multiple postmasters with pg_ctl or via a system service, each listening on a different port and using a different data dir.

If you have multiple clusters on a machine you have multiple data directories. It's unusual to need to do this, but it is possible.

It would be immensely helpful if you'd link to the documents you're talking about when asking questions about them.

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.