Re: Creating a new database in pgadmin

From: Thom Brown <thombrown(at)gmail(dot)com>
To: javib <javier(dot)burgos(at)ricoh(dot)es>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: Creating a new database in pgadmin
Date: 2010-03-17 11:16:27
Message-ID: bddc86151003170416g135349fm2db560d9eed5a521@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On 17 March 2010 11:10, javib <javier(dot)burgos(at)ricoh(dot)es> wrote:

>
> Hello,
> I would like to create a database in a different hard drive than the one in
> which pgadmin is installed. I've been looking through the options of
> pgadmin
> and I haven't seen anything. The reason I'm doing this is because this new
> database I'm going to create will be huge and I need lots of space.
> Can anyone help me with this issue??
>
> Thanks in advance.
> Best regards
> --
>
>
You will need to create a new tablespace onto the other hard drive then
create the database using that tablespace:

For example:

CREATE TABLESPACE new_space LOCATION '/media/otherdrive';

CREATE DATABASE new_db TABLESPACE new_space;

Regards

Thom

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Guillaume Lelarge 2010-03-17 11:29:30 Re: pgAdmin III v1.10.2 released
Previous Message javib 2010-03-17 11:10:11 Creating a new database in pgadmin