Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v8QYS-000Qmz-NA for pgsql-general@arkaria.postgresql.org; Mon, 13 Oct 2025 21:58:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v8QYQ-008dbo-Hk for pgsql-general@arkaria.postgresql.org; Mon, 13 Oct 2025 21:58:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v8QYQ-008dbT-6a for pgsql-general@lists.postgresql.org; Mon, 13 Oct 2025 21:58:07 +0000 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v8QYP-001bI8-1M for pgsql-general@postgresql.org; Mon, 13 Oct 2025 21:58:06 +0000 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-373b7e07182so2804069fac.0 for ; Mon, 13 Oct 2025 14:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760392684; x=1760997484; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=OSJGLOncKiHajv4ih8VCOR5T+n8j/DGR7PwWZr2oWyo=; b=cd4+rvhNR2fc4qo5LYY/kJY9IFZYFO77RD4pcAxNJMEnyFjar7Qeav9VIxWZKqVkU2 zTnI5OOHaJEJ4jIIJgHpWKjA6YW+nATZUHHLcnxvuUv0Wbb83NOHO1mZAHkbeyd4nEbg QFzJeCZMgFXyg1neqkltJUEwK9mFSI/GaJRDOhQKwEEob+/dvsE+GdgbnzvEgkV8CKSG 3u2mAa7+A8FWI/Zv9Tx0rYa5hiCHfCKCwKoiS0arJo6abSTMs4m7iMm2WHJrhuhl7QFx q/n2scU36osz6dEcEUM5L2d47qPQdsg1yvgW7TaEqIomv22tIZ1jesXtq3SvRhbu03YO ItRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760392684; x=1760997484; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OSJGLOncKiHajv4ih8VCOR5T+n8j/DGR7PwWZr2oWyo=; b=GwPNbl2k/tz8TiTZ28ynlkVfJ0VARtuF4G502+gos2PyaQpsZ+gzTKI3ryyzc5fqvn dd63p2F8W2KVestGHIzIUU/GVrHwB1M1NbJPFzwE68pV2cdriwTL4c9IEkCcFdkoc7ap 6AuXCip8pv2MyRG7eR1LtrO0OJTJe8ku9+lC4jUWv8BuEMBghCAqXynKbl19++dWM5i+ I3AMSKRp4ZZozY0k2NJZ7JRqUB5GZu9CObv08dVUdDJoO+pYX2aj3rlljrqBbyFk+kHG Zj/XRKFbhBW37Fhdr7OLU1Mhp+VBV8CN12YLiqclCG2Igk1G7h/uvj12BkJVIDuwrZP5 HpaA== X-Gm-Message-State: AOJu0YyrlUnYOnl/FRzgAdC0SvxhYopWTQLOrGSAFR/aRB6uFe6iuSCU BsW0ilpx8yQe+fxVn/tzjclWuaVxcTScK8FhDtsY67YAoeHJKd60mVGf6vPk9j+Tgy4MmtU5Q+E 0x44VHx5KVwF0Cm86AkdsnUUMLVKauyfiHEtQ X-Gm-Gg: ASbGncu6AK6MJLeFNvFrnjVc4yj5FA+acBzKi98YNmd/wmPTyGcmTFU0GCG/M0Ghrvv Cn5GfGWlZ/Xpin3n8scLHTHwjYxdgDDPu7xKB8HNPDUeIurHewcPlz8AXcG49/NfdffxydILWD0 ETwT0ltBViMOgGGLSP1d2/oMKv23/LEFsIo18rO8a8FOo8+WngmnDN285s7STIMeNs0D/PFLp32 30nSexLeEEZkI7PHxvsjGBSFy9Zm9m64ljCQztqVoIYU5Z/1A== X-Google-Smtp-Source: AGHT+IF/MqxYbDIcpMdP8zZuNeWwnv3waTdcLDVZD5y608V1yWhXQHWPcHtM0DLSLOSMqPxEvZyDzYcmq3F3f1hbcrs= X-Received: by 2002:a05:6870:15c7:b0:375:db59:20e3 with SMTP id 586e51a60fabf-3c0f9c7b01bmr9524504fac.34.1760392684215; Mon, 13 Oct 2025 14:58:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Mon, 13 Oct 2025 17:57:53 -0400 X-Gm-Features: AS18NWBr-MNPdMx_wGNndUQnQiZgq8gVYQkd7RhwxKWxu7JfQn4-zmkqqWSQy8c Message-ID: Subject: Re: Database in another drive To: pgsql-general Content-Type: multipart/alternative; boundary="0000000000009ba3290641115cc6" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000009ba3290641115cc6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 13, 2025 at 4:19=E2=80=AFPM Arbol One wro= te: > Is there a way to either create the database or save the data in another > drive? > > I am using Win11, not my choice since 1998, and, not surprisingly, the > WinOS had a crash; > I've been using Windows on (local, telecommuting) corporate PCs for 25 years. Never has the hardware crashed or Windows become so corrupted that C: needed to be wiped? > I lost all kinds of information including PostgreSQL (postgres > (PostgreSQL) 18.0), its databases, tables, data, etc., what a nightmare! > Where are your backups? Why don't you have backups? > To not have this happen again, I'd like to create the databases in the E: > drive or have the tables stored in that drive, please note that I am not > talking about backing the data in the E: drive, but to actually have the > databases in the E: drive. Can this be done and is it practical to do thi= s? > Of course. The same way you created them on C:. Either with a GUI or command prompt. mkdir E:\PosgreSQL\data initdb -k -D E:\PosgreSQL\data --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --0000000000009ba3290641115cc6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Oct 13, 2025 at 4:19=E2=80=AFPM A= rbol One <arbolone@hotmail.ca= > wrote:
Is there a way to either create the database or save the data in=C2=A0another drive?

I am using Win11, not my choice since 1998, and, not surprisingly, the= WinOS had a crash;

I'= ;ve been using Windows on (local, telecommuting) corporate PCs for 25 years= .=C2=A0 Never has the hardware crashed or Windows become so corrupted that = C: needed to be wiped?
=C2=A0
=
I lost all kinds of information including PostgreSQL (p= ostgres (PostgreSQL) 18.0), its databases, tables, data, etc., what a nightmare!

Where are your back= ups?=C2=A0 Why don't you have backups?
=C2=A0
To not have this happen again, I'd like to create the databases in the = E: drive or have the tables stored in that drive, please note that I am not= talking about backing the data in the E: drive, but to actually have the d= atabases in the E: drive. Can this be done and is it practical to do this?
=C2=A0
Of course.=C2=A0 The same way you created them on = C:.=C2=A0 Either with a GUI or command prompt.
mkdir E:\PosgreSQL= \data
initdb -k -D=C2=A0 E:\PosgreSQL\data

--
<= div dir=3D"ltr" class=3D"gmail_signature">
Death to <Red= acted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
--0000000000009ba3290641115cc6--