Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwYKd-0000DL-Ns for pgsql-general@arkaria.postgresql.org; Wed, 20 Feb 2019 20:19:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gwYKZ-0004jY-V9 for pgsql-general@arkaria.postgresql.org; Wed, 20 Feb 2019 20:18:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwYKZ-0004jQ-CE for pgsql-general@lists.postgresql.org; Wed, 20 Feb 2019 20:18:59 +0000 Received: from mail-oln040092000040.outbound.protection.outlook.com ([40.92.0.40] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwYKU-0000QP-Rx for pgsql-general@postgresql.org; Wed, 20 Feb 2019 20:18:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6D00TvS7BkTBgYgIpZ8Fw6kzV2jQaNagLv0fMIoSz8A=; b=Ae6DhGP146WOhr3yDXg7mk/8ktHAq1x+A7HUJfkfvuofReDZLI7qptapj5a3SKo22dN5J7xYPuPqWjY/oiyhxHTScf9aXlJg0hZzMz5mlTGROJCi6um7yA3sziJ1qNWdmdjHd8HT95NtvkJN+dJJYtVeOvIWMmaz3RBD9cceuVwI7FoWb7xnScQFKkW+W+IWcFXOnTDw39ez8R/vnyyXiuJNN5v9QF55MfnuN4YGkLZ5F13Ac6VMMnnnovN6g7VAK1bR2BkjNNn9GgARAmGM2nP6bfp9ZmH8/lL/DQEq7oq/Dg1Bx+BRH1c5QD9GmwCPY0n9eR0uuyyBVxo0YZ20MQ== Received: from BY2NAM01FT057.eop-nam01.prod.protection.outlook.com (10.152.68.52) by BY2NAM01HT181.eop-nam01.prod.protection.outlook.com (10.152.68.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11; Wed, 20 Feb 2019 20:18:51 +0000 Received: from BYAPR08MB5014.namprd08.prod.outlook.com (10.152.68.51) by BY2NAM01FT057.mail.protection.outlook.com (10.152.68.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11 via Frontend Transport; Wed, 20 Feb 2019 20:18:51 +0000 Received: from BYAPR08MB5014.namprd08.prod.outlook.com ([fe80::f875:2ce3:768f:9ede]) by BYAPR08MB5014.namprd08.prod.outlook.com ([fe80::f875:2ce3:768f:9ede%4]) with mapi id 15.20.1622.018; Wed, 20 Feb 2019 20:18:51 +0000 From: Julie Nishimura To: "pgsql-general@lists.postgresql.org" , pgsql-general Subject: adding more space to the existing 9.6 cluster Thread-Topic: adding more space to the existing 9.6 cluster Thread-Index: AQHUyKV/oNCTABLldEm+73NguuDSHqXpIYz5 Date: Wed, 20 Feb 2019 20:18:51 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:7C2BC0F81237C4901D6DA00AFB386CCE10C6AAB41FB7DA7B9FDAD9FB3290FD80;UpperCasedChecksum:35EB90B48313D2219254DD67E54C42D410BFB9ED2F3DD992D3289BEF96F0B8A5;SizeAsReceived:6928;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ry0asHa0e7Qs5DJMxfCgy63z/l8vmWH0] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(20181119070)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031324274)(2017031323274)(1603101475)(1601125500)(1701031045);SRVR:BY2NAM01HT181; x-ms-traffictypediagnostic: BY2NAM01HT181: x-microsoft-antispam-message-info: Ycz1cNEKcKdpT0w8bOgU2gBPESdAutE9bE7ejjril8UPCMR6psUo5rDl8seqTL24 Content-Type: multipart/alternative; boundary="_000_BYAPR08MB501453C9CDC41AA3F9EC94F9AC7D0BYAPR08MB5014namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 1adef899-d352-457d-517b-08d69770a124 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2019 20:18:51.4206 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM01HT181 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_BYAPR08MB501453C9CDC41AA3F9EC94F9AC7D0BYAPR08MB5014namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, we are almost out of space on our main data directory, and about to = introduce new directory to our cluster. We cannot use multiple physical dis= ks as a single volume, so we are thinking about creation new tablespace. Our current data_directory shows as follows: /data/postgresql/9.6/main postgres=3D# SELECT spcname FROM pg_tablespace; spcname ------------ pg_default pg_global (2 rows) We also have 36 existing databases on this cluster. If we add new directory, will it be enough to execute the following command= s in order to force new data there: CREATE TABLESPACE tablespace01 LOCATION '/data/postgresql/9.6/main01'; ALTER DATABASE db_name SET TABLESPACE tablespace01 Do I need to repeat it for all our existing databases? Should I change our = "template*" dbs as well? Do I need to do something else? Thank you for your advises. -Julie --_000_BYAPR08MB501453C9CDC41AA3F9EC94F9AC7D0BYAPR08MB5014namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable  
Hello, we are almost out of space on our main data directory, and about to = introduce new directory to our cluster. We cannot use multiple physical dis= ks as a single volume, so we are thinking about creation new tablespace.
Our current data_directory shows as follows:
/data/postgresql/9.6/main
postgres=3D# SELECT spcname FROM pg_tablespace;
  spcname  
------------
 pg_default
 pg_global
(2 rows)

We also have 36 existing databases on this cluster.
If we add new directory, will it be enough to execute the following command= s in order to force new data there:
CREATE TABLESPACE tablespace01 LOCATION '/data/postgresql/9.6/main01';=

ALTER DATABASE db_name SET TABLESPACE 
tablespace01 =


Do I need to repeat it for all our existing databases? Should I cha= nge our "template*" dbs as well?
Do I need to do something els= e?

Thank you for your advises.

-Julie
<= tt>




--_000_BYAPR08MB501453C9CDC41AA3F9EC94F9AC7D0BYAPR08MB5014namp_--