RE: A particular database to move to other drive

From: "Runge, Steven" <Steven(dot)Runge(at)mastercard(dot)com>
To: Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com>, nikhil raj <nikhilraj474(at)gmail(dot)com>
Cc: "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 16:19:19
Message-ID: d399731db4444bcd8c672b90334ddc4a@STL3MSX05.corp.mastercard.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I believe you could use pg_repack to move your database to a new tablespace on your Y drive without downtime (minimal locking).

Steve Runge
Consultant
Database Engineering

from: Shreeyansh Dba [mailto:shreeyansh2014(at)gmail(dot)com]
Sent: Monday, November 27, 2017 3:05 AM
To: nikhil raj <nikhilraj474(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: A particular database to move to other drive

On Sun, Nov 26, 2017 at 1:08 AM, nikhil raj <nikhilraj474(at)gmail(dot)com<mailto: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.

--
[http://www.shreeyansh.com]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.shreeyansh.com&d=DwMFaQ&c=uc5ZRXl8dGLM1RMQwf7xTCjRqXF0jmCF6SP0bDlmMmY&r=6TjGLEUj-XyWOT_FcPLbnVOHiGF1bcehHRW8CXtvcjw&m=mg2c2FsEFp4y6B6PNLw1UHyhGwNKFLD4m33oXGAYZ2U&s=muTufGHfsOxfARAaMt_xJGS1Nx9KupTqt-Mxuwk8bRA&e=>
CONFIDENTIALITY NOTICE This e-mail message and any attachments are only for the use of the intended recipient and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, any disclosure, distribution or other use of this e-mail message or attachments is prohibited. If you have received this e-mail message in error, please delete and notify the sender immediately. Thank you.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Günce Kaya 2017-11-28 09:17:00 Barman WAL size issue
Previous Message scott ribe 2017-11-27 13:22:25 Re: Clear FS caches after postgresql stops