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 1tuH7Q-006zed-Hm for pgsql-general@arkaria.postgresql.org; Mon, 17 Mar 2025 20:31:28 +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 1tuH7P-001XyI-6A for pgsql-general@arkaria.postgresql.org; Mon, 17 Mar 2025 20:31:27 +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 1tuH6o-001Ra3-C1 for pgsql-general@lists.postgresql.org; Mon, 17 Mar 2025 20:30:50 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tuH6k-003QxS-1t for pgsql-general@postgresql.org; Mon, 17 Mar 2025 20:30:50 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-ac2902f7c2aso41004866b.1 for ; Mon, 17 Mar 2025 13:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1742243447; x=1742848247; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=CASR5VpQ43Mxx8SGNl1fBPqhu7NesH7VN1bazZKE80k=; b=RfgW9x9yO0yE+LLSggSsztJic2kO27RiQoCt01jIdGK9emWWw8BHgyMBXQxxN4rjyo 3bJyxVxGee9L083wqYglVEaZOxn/q6xenLFAeGzMU4XLJJA62yIsRZmvrFRqlc1iHC6Q O+65CH7Gyhu8xW8HlWe+TUc8IyXMfiiUiZOofrHeRt5ZIlexmbXdW0kiM9KmvY/b55cZ /0CEN3oPpAvjrTRQphed+GT81XJN+Vrl4KpG4JYtGUeA5DZvA5EeOcXedDQRePPfSWf+ sydHqbD8hoxTBXghMpHqhibiQazjVLc3Znkj0S6rD+wEz0fX0saad91RyPBkRcvyGbiG GxmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742243447; x=1742848247; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=CASR5VpQ43Mxx8SGNl1fBPqhu7NesH7VN1bazZKE80k=; b=p2VBo9jy087xq7lQMJtBSFLOWglSfekVgC8w+MaL16zZ1WgwFWpgRLvdPKNZne/bo5 yQnHMzrBS9QTg2Vm2WUH9oSf6fkG1vXKHuSfa5y+qyE1KR3etb0N2bQWiZIUEGKsVXc7 ygi+HxRJBWhABsawCXsTQJqtY5ZQksPrHMqWIIbF4FKHRthnSTRtA+fnNNONvW6Za91Q s+bV4VX+l52cEtPtB3DIviZDXid109ZCn0W5HQmcQr5KZseqflJbSxGMswZBch9sq2mR 2wgrZpNIo8TMm0lWLv6qP2Yf64XeCGyaeTKXrvc2LjYZYaJ3gudQ8rwW7heojlxCqWTZ tTVQ== X-Forwarded-Encrypted: i=1; AJvYcCUhEWn79hA48yW45+jI8+cShUAo876E52yMc9WhyZIZXm+9ob9rkArdg+rpG0LPphRDnt5Y5MTqbwoXsO3f@postgresql.org X-Gm-Message-State: AOJu0Yz+klhTCNCUDk7aFE+AvjI+HVgrOJRTFHB62AywqeibGv6ZYBkN GkWiXhz8/I2XPAb13ZCKwXS27wkXs0lZ1OAlNM7CILzaLKkM6mI92iVrs00AEY/YTCZlFz7fXud sjnQ= X-Gm-Gg: ASbGncsASTG7wxEd+z9cWf7aOmVRN4vKYo2ffnVC2XFmU9HBAL1giL2LUc1gBhE/TKI zE68ZkElrSfUrG/mEKKjj9sUPL0+gyV+FeNoscPQACIh6fpTkq6VA+wQS7zLFkBJhyuj+2lgQnO o0U5V8447hSAgavOUgXH/j9W9N41JYBWLkj3xYjy/63CpsG0Dz4ql2aPqUk4AeninF9PLrIo+4K hSlnQPIjQ1u+SzunbckZM1IdTKj0FAecK9PMKr8nqqciP6t5Xdr3zxG0RqjP37IavWqNgdxPGQw qsjiyzA6vFtqGweDUwLvdrdp7EHHzVX7m0UGw0usVYFamAY2qbCFVck3yNNJtbN5Wg== X-Google-Smtp-Source: AGHT+IGbpFH/LLiHLkIHTNfTPsG3WC+kQGFQpEiNrW5P3oUDU9IIdfM9GUL/l3+Y5rMvLN4DING6ZA== X-Received: by 2002:a17:906:4090:b0:ac2:87b0:e4a5 with SMTP id a640c23a62f3a-ac3301dd8e4mr1308159766b.2.1742243446764; Mon, 17 Mar 2025 13:30:46 -0700 (PDT) Received: from localhost.localdomain ([2001:871:260:5107:85a9:72d3:c586:9b09]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac314a9daf1sm719175166b.166.2025.03.17.13.30.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Mar 2025 13:30:46 -0700 (PDT) Message-ID: <66585a0d3b617bc2cba8ebbe3f0a479bee9c6324.camel@cybertec.at> Subject: Re: Creating a new database on a different file system From: Laurenz Albe To: Ron Johnson , "pgsql-general@postgresql.org" Date: Mon, 17 Mar 2025 21:30:46 +0100 In-Reply-To: References: <7002449259b582723ed7e041a7f0de116b48ad4d.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2025-03-17 at 14:33 -0400, Ron Johnson wrote: > On Mon, Mar 17, 2025 at 11:18=E2=80=AFAM Laurenz Albe wrote: > > On Mon, 2025-03-17 at 15:51 +0100, Luca Ferrari wrote: > > > On Mon, Mar 17, 2025 at 3:49=E2=80=AFPM Ian Dauncey wrote: > > > > We have created a few databases on the file system defined in the p= ostgresql.conf, > > > > but now I would like to create another database within the same clu= ster but on a > > > > different file system. > > > >=20 > > > > Is this possible and if so, how do we go about it. > > >=20 > > > create a tablespace on the filesystem you want to use, and then creat= e > > > the database adding the `WITH TABLESPACE` clause. > > > See > >=20 > > That is an option, but I would recommend to create a new database clust= er > > on the new file system rather than creating a tablespace. >=20 > That of course requires using another port, which can be tricky in a comp= any that by > default closes all firewall ports at the network switch level, and where = you must > enumerate every server/subnet ("Rejected. Subnet range too broad!") that = needs access > to the new port, it takes time for requests for new port openings to be a= pproved > ("Rejected. We don't recognize 5433!") and then implemented. >=20 > Much easier to use a tablespace. *shrug* Sure, there are entities that think that security and professionali= sm can be measured in how difficult you are making everybody's life. If rules and re= gulations are in the way of choosing the best solution, you have to go for the second= best one. Yours, Laurenz Albe