Re: A particular database to move to other drive

From: nikhil raj <nikhilraj474(at)gmail(dot)com>
To: Devrim Gündüz <devrim(at)gunduz(dot)org>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: A particular database to move to other drive
Date: 2017-11-27 10:53:44
Message-ID: CAG1ps1zyN9mzThpKkXabeVwC00P8ZZJ2BSVqETh7Kkfumgq1Eg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks a lot.

On Nov 27, 2017 3:49 PM, "Devrim Gündüz" <devrim(at)gunduz(dot)org> wrote:

>
> Hi,
>
> On Sun, 2017-11-26 at 01:08 +0530, nikhil raj wrote:
> > I want to move a database to 'Y drive' because the size of that database
> is
> > large about so can I move only that database to because I got an alert of
> > low space is there any way
> > Currently it is on F drive I want to move to Y drive .
>
> First, create a new tablespace on Y drive:
>
> https://www.postgresql.org/docs/current/static/sql-createtablespace.html
>
> Then, move the database to that tablespace:
>
> ALTER DATABASE dbname SET TABLESPACE to new_tablespace_name;
>
> Regards,
> --
> Devrim Gündüz
> EnterpriseDB: https://www.enterprisedb.com
> PostgreSQL Consultant, Red Hat Certified Engineer
> Twitter: @DevrimGunduz , @DevrimGunduzTR

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message nikhil raj 2017-11-27 10:54:33 Re: A particular database to move to other drive
Previous Message Azimuddin Mohammed 2017-11-27 10:28:53 Moving hadoop metadata from Oracle to Postgres