Re: Is there an easy and safe way to migrate a database to a new tablespace?
В списке pgsql-admin по дате отправления:
| От | Aldor |
|---|---|
| Тема | Re: Is there an easy and safe way to migrate a database to a new tablespace? |
| Дата | |
| Msg-id | fj3cum$2qg8$1@news.hub.org обсуждение исходный текст |
| Ответ на | Re: Is there an easy and safe way to migrate a database to a new tablespace? ("Scott Marlowe" <scott.marlowe@gmail.com>) |
| Список | pgsql-admin |
Get the oid of your old tablespace: select oid from pg_tablespace where spcname = '[OLDTABLESPACE]'; Get your tables from the old tablespace: select select relname from pg_class where pc.reltablespace = [TABLESPACEOID] ----optional---- and relkind = 'r' ; With "ALTER TABLE [TABLE] SET TABLESPACE [TABLESPACENAME];" you can move your tables to the new destination. Scott Marlowe wrote: > On Nov 26, 2007 3:05 PM, David Young <randomfire@gmail.com> wrote: >> Hi, >> >> I recently converted to using a postgresql engine that support tablespaces. >> There's a database that I would like to move to a new tablespace for >> performance reasons. What is the safe and correct way of doing this? The >> documentation is a bit sketchy on this.
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера