Re: Duplicating data folder without tablespace, for read access

Поиск
Список
Период
Сортировка
От Peter J. Holzer
Тема Re: Duplicating data folder without tablespace, for read access
Дата
Msg-id 20180814182809.2qjtc7oeyshdy4lr@hjp.at
обсуждение исходный текст
Ответ на Duplicating data folder without tablespace, for read access  (Jack Cushman <jcushman@gmail.com>)
Список pgsql-general
On 2018-08-14 11:57:38 -0400, Jack Cushman wrote:
> I have a large database of text, with a 600GB table and a 100GB table connected
> by a join table. They both see occasional updates throughout the week. Once a
> week I want to "cut a release," meaning I will clone just the 100GB table and
> copy it to a "release" server for read-only web access.
>
> My procedure would be:
>
> - keep the 600GB table on a separate tablespace
> - cleanly stop postgres on both servers
> - copy the data folder to the release server
> - delete pg_tblspc/* on the release server
> - start postgres on both servers

If you copy the whole database anyway before deleting the tablespace:

Why don't you just drop the 600 GB table on the release server?

        hp

--
   _  | Peter J. Holzer    | we build much bigger, better disasters now
|_|_) |                    | because we have much more sophisticated
| |   | hjp@hjp.at         | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: pg_basebackup failed to read a file
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: pg_basebackup failed to read a file