Re: A particular database to move to other drive

From: Abhishek Gautam <abhishekgautam009(at)gmail(dot)com>
To: Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com>
Cc: nikhil raj <nikhilraj474(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: A particular database to move to other drive
Date: 2017-11-27 09:53:45
Message-ID: C3081A36-59E7-486A-B207-E5BD0927CBE2@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

May be creating new tablespace on new drives and then changing db tablespace from default to new one.

Beware there would be physical movement of data.

Haven’t done this for whole db but should work.

Sent from iPhone

Cheers,
Abhishek Gautam

> On 27-Nov-2017, at 2:35 PM, Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com> wrote:
>
>
>
>> On Sun, Nov 26, 2017 at 1:08 AM, nikhil raj <nikhilraj474(at)gmail(dot)com> wrote:
>> Hi,
>> Any one can please help me out
>>
>> 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 .
>>
>> Thanks
>
> If we want to move a particular database from one drive to another drive for this requires downtime. There are multiple options to move a database like pg_dump & pg_restore or taking a physical copy, we may pick anyone from these options depending on the size of the database.
>
> --
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Thomas Kellerer 2017-11-27 10:15:05 Re: A particular database to move to other drive
Previous Message Stéphane KANSCHINE 2017-11-27 09:35:44 Re: A particular database to move to other drive