From: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Object movement
Date: Wed, 16 Feb 2022 09:40:29 +0100
Message-ID: <2e2cd935-30ee-f795-735a-9b66090f4e0a@jakobs.com> (raw)
In-Reply-To: <CALfOM6KDj0v=54-pYscZt27a8nDibf7BwJ5RQsSKCMgnUObxTw@mail.gmail.com>
References: <CALfOM6KDj0v=54-pYscZt27a8nDibf7BwJ5RQsSKCMgnUObxTw@mail.gmail.com>
Am 16.02.22 um 09:36 schrieb Daulat:
> Hello,
>
> How can we move the object (tables etc.) of one database from another
> tablespace in postgres?
>
> Thanks
Move an object to a new tablespace:
ALTER objectName SET TABLESPACE newTablespace
You cannot move an object to a new database. You would have to re-create
it there.
--
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
Attachments:
OpenPGP_signature (application/pgp-signature, 202B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: holger@jakobs.com, pgsql-admin@lists.postgresql.org
Subject: Re: Object movement
In-Reply-To: <2e2cd935-30ee-f795-735a-9b66090f4e0a@jakobs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox