\c <database> alter table all in tablespace tbs1 set tablespace tbs2;
select schemaname,tablename,tablespace,tableowner from pg_tables where tablespace=' tbs2';
On Wed, Feb 16, 2022 at 2:10 PM Holger Jakobs <holger@jakobs.com> wrote:
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.
From:
Marco DE BOOIJ Date: Subject:
Re: pg_upgrade from Postgresql-12 to Postgresql-13 fails with "Creating dump of database schemas postgres *failure*"
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
✖
By continuing to browse this website, you agree to the use of cookies. Go to Privacy Policy.