Re: Alternate Datafile Location

From: Sam Stearns <sam(dot)stearns(at)dat(dot)com>
To: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Alternate Datafile Location
Date: 2024-08-29 23:40:12
Message-ID: CAN6TVjm_ri4B5TRjuu-w3=OWoFPb+9Me1_zma8uDi0p4CTyALg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

[postgres(at)thiludbapql01 ~]$ createdb baptest -D /PGDATA
createdb: error: database creation failed: ERROR: tablespace "/PGDATA"
does not exist
[postgres(at)thiludbapql01 ~]$

The directory /PGDATA exists.

[postgres(at)thiludbapql01 ~]$ df -h /PGDATA
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/pgdatavg-pgdatavol 2.3T 28K 2.2T 1% /PGDATA
[postgres(at)thiludbapql01 ~]$

On Fri, Aug 30, 2024 at 9:03 AM Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
wrote:

> > On Aug 29, 2024, at 5:29 PM, Sam Stearns <sam(dot)stearns(at)dat(dot)com> wrote:
> >
> > That's fine as long as we can create databases with datafile storage on
> an alternate filesystem. I don't see anywhere in the documentation how to
> do that.
>
> -D <directory>

--

*Samuel Stearns*
Lead Database Administrator
*c:* 971 762 6879 | *o:* 503 672 5115 | DAT.com
[image: DAT]
<https://www.dat.com/?utm_medium=email&utm_source=DAT_email_signature_link>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message David G. Johnston 2024-08-29 23:44:14 Re: Alternate Datafile Location
Previous Message Scott Ribe 2024-08-29 23:33:06 Re: Alternate Datafile Location