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 1v8PIP-0005FQ-W8 for pgsql-general@arkaria.postgresql.org; Mon, 13 Oct 2025 20:37:29 +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 1v8PIN-0083zo-Px for pgsql-general@arkaria.postgresql.org; Mon, 13 Oct 2025 20:37:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v8PIN-0083zg-FL for pgsql-general@lists.postgresql.org; Mon, 13 Oct 2025 20:37:28 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v8PHv-001zYq-1J for pgsql-general@postgresql.org; Mon, 13 Oct 2025 20:37:28 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-57da66e0dc9so4655763e87.0 for ; Mon, 13 Oct 2025 13:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760387818; x=1760992618; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vwY+rjZNI4hBki0nsIaH7oaT5BNUSMip2RpTKfU67kM=; b=kfLnR+e5s1Z+3Im0MfNl9I2oezt/CnubWb81+We+5UxwJjUiK+lRFgA25AF31PeODd snoomyCbDJEMrgV5GZqHD37Foj266Ut3MAkyXwyd2jhCQoCMuz+swH41lOEW5MyDq4IR RNmOvoewjZa0Q6W8Ixi8qTHjPEqDnAtfEkToAZb2F94VKTpm1tSVshlHhPWwcpljDRI9 iQguTigUqQLFrgQ4+3tShEkjaUo2r9BkyQVJdwejqjB9AGxROzmM6K2RxDU/IydvNUzq 7yIrKV+/cY7sqkx3sigMOM5l1PL2zXpivOHpdjWV2HKNaemf9o1jcV6ukw2G8keBu3Uz LsyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760387818; x=1760992618; h=cc: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=vwY+rjZNI4hBki0nsIaH7oaT5BNUSMip2RpTKfU67kM=; b=EiNELPDncE/h5/8B5bA4JgbThrJoaGghyJiJ6v4W9zW29g1VwfRhTHo+aerqsmYj+m /eI+dGzofNNC2UShjqtURQ3tT84b2HZQdijhDrGTvZmNs6O6wQxDdeylJAd22v19W/LS qYv+dYGHaS52hZJYOOerY17xMtvJZFzKL4TJv8qVNOKmKgapBdTOKl1usELbs1v/XJIE nBtgXbfcSmQJZrVvF32ZRU6zFfqOTB97fF2T9DJQghMNaZCKgUx1y80NCy427OftimxJ M8u0OfCOWdJLxQLq0qjzveO+/ypUexsfoYMXpLJ5wgr2AhFO6VXzOcX72LXJeO5qk/yl yuYQ== X-Gm-Message-State: AOJu0Yw7UNWQCPRmlHkVAJiMKSJtLKv83MOOmV8ZfRi5S5EVJ/ltIxQN Q1a+/isIFgKkKemBY/qLADeNeVheQKLB18M8Kd0hmp0JvxTCZUNWh4Ay4jjJWFo0ab0n180D5y4 06BcFOGAbDWmgCYKoszb+l9MbzmQA938Y5YKr X-Gm-Gg: ASbGnctt8M3R1JjCKnMPfC4lpCZ5lZGRUoRMc/2YXFGRaKiMGUfk/qlfX+y6Y7oIQ/w ITgo3VN2s+OpCG4wrWKdxGED25TrlraSLhlbs1/hmvD6a7GC0JHRNeLmt8dgKKFZoys/G5fUCLJ K1uGtcA2XA685W26Z0IdQbLst4PKhlaO9XiZuSVgHjhJOY2UU2zbDkMBSNrk7PZvGqRh5d69FkV cV7x/FcB5W+3FTaK8XTPmK1rD0= X-Google-Smtp-Source: AGHT+IGpEjBotu50avGRrVEAi2ufjhUkWvg5251DIXN2QE0rXOSqjCwVE3GNWSRaySiRJneYk81DSG5HJBkuyV9/wA4= X-Received: by 2002:a05:6512:b05:b0:57e:e3bf:114a with SMTP id 2adb3069b0e04-5906dc12366mr7099225e87.4.1760387818135; Mon, 13 Oct 2025 13:36:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tim Gerber Date: Mon, 13 Oct 2025 15:36:46 -0500 X-Gm-Features: AS18NWDDd_FpLpcdYJkab582X35KHng8O7T75Ctdo23kwWYsBQJV8F2GcCmbxho Message-ID: Subject: Re: Database in another drive To: Arbol One Cc: PostGreSQL MailingList Content-Type: multipart/alternative; boundary="0000000000009124e60641103a60" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000009124e60641103a60 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes, you can either set the default tablespace to the desired drive or create a tablespace on the E: drive and specify the db objects to use it. Best to look at: https://www.postgresql.org/docs/current/manage-ag-tablespaces.html Best Regards, Tim On Mon, Oct 13, 2025 at 3: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 lost all kinds of information including PostgreSQL (= postgres > (PostgreSQL) 18.0), its databases, tables, data, etc., what a nightmare! > 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? > > > > > > > --0000000000009124e60641103a60 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, you can either set the default tablespace to the desi= red drive or create a tablespace on the E: drive and specify the db objects= to use it.=C2=A0 Best to look at:=C2=A0=C2=A0https://www.postgresql.or= g/docs/current/manage-ag-tablespaces.html

Best Regar= ds,
Tim

On Mon, Oct 13, 2025 at 3:19= =E2=80=AFPM Arbol One <arbolone@h= otmail.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 lost all kinds of information including PostgreSQL (<= span style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color= :rgb(0,0,0)">postgres (PostgreSQL) 18.0), its databases, tables, data, etc., what a nightmare!
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?






--0000000000009124e60641103a60--