From: | Joao Miguel Ferreira <joao(dot)miguel(dot)c(dot)ferreira(at)gmail(dot)com> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
Cc: | pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: pg_dumpall and tablespaces |
Date: | 2021-02-02 17:07:08 |
Message-ID: | CALyyT7SZx8r70sXHXBpCg8ZmRan1eCckhnsE+02+65ke26u=dA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Feb 2, 2021 at 4:52 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:
> On 2/2/21 8:43 AM, Joao Miguel Ferreira wrote:
>
> > I got 2 problems concerning tablespaces:
> > a) during the restore step I get lots of errors about the necessity to
> > have root permissions to re-create the tablespaces and
> > b) the tablespaces paths on the dump file are bound to the MAC
> > filesystem (/Users/..../pg/....). I would need to re-write that path to
> > my home folder or '/var/lib/....'
> >
Do you want to maintain tablespaces on the dev machine?
>
> If not from here:
>
> https://www.postgresql.org/docs/12/app-pg-dumpall.html
>
> --no-tablespaces
>
> Do not output commands to create tablespaces nor select tablespaces
> for objects. With this option, all objects will be created in whichever
> tablespace is the default during restore.
>
>
> This would have to be done when the pg_dumpall is run.
>
That's great. I really do not need the tablespaces for dev. I will try that
thank you
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-02-02 17:08:19 | Re: pg_dumpall and tablespaces |
Previous Message | Andrus | 2021-02-02 17:05:54 | Re: permission denied for large object 200936761 |