Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kw7KL-0000cb-Hk for pgsql-general@arkaria.postgresql.org; Sun, 03 Jan 2021 17:38:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kw7KK-0003Be-GS for pgsql-general@arkaria.postgresql.org; Sun, 03 Jan 2021 17:38:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kw7KJ-0003BW-DF for pgsql-general@lists.postgresql.org; Sun, 03 Jan 2021 17:38:00 +0000 Received: from mail-dm6nam12olkn2086.outbound.protection.outlook.com ([40.92.22.86] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kw7KF-0002SM-NT for pgsql-general@lists.postgresql.org; Sun, 03 Jan 2021 17:37:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g//Nk7yvALvmGw1zxqviqqvrwUOie16Mu6nEh2Hr9XXwln31vKKJu9VDbH/pFErAd2fgpVOHBRtCLfXamT0tKy2+fR5DGy3Ot0Kq7SUFICBSouC9BnpLsNMUVDgrrN7E0LgvMjLJbha3JHzmO49fFWvOmQyeC/HnBwFv6SNUp3sZ9XsGc8c3KlwWVoRRi5amjz2wrgNYyVI/iCH7llq8WX/OnaCy80hCDJxlB+vUtb0CLf1Gq6yhU2KQHwckJjPWytPjs0Ya2XZ9eCcD3h9fTVQ6+FfmBSFomuRQwC7IVtSe5QjbWjcaFz8zoBQrb5/OfxttbHMKg7vnoOo6zAKahQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yekxeHYM6J7u6BU12DtVk0URP0Clxtn4wNvpQk5l1rE=; b=CwpgqJc5WFT7g00y6fOfH0rvg3uxHD/kpxxlgKvomBOlNQO1do/fU9tS88f16gKISaVSK+RK1VyI7AX5dieHdVM2utFJp/xI5KRWhZkZP6vHieM3XfruTKkuNrHVZQ55//XU6xHQYEM6bu9go4tzay4fPwWiN1NjxMOIVHoWll1tP1ji9QP2y7hGUPqsqrAM/J8O1TOQl9J02QjjfaJNugCkAK7ksA6PjkEUaipJEx3b4FfDwbodAWMiCXwAV1Pkbk5q7GNih1CWR7K9LV5B+EwS4iRxm3iocbBDT24oolviWApgiTWBDkmqiQqNvxNlcrw/SISeR2O2IazQ6bDEQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yekxeHYM6J7u6BU12DtVk0URP0Clxtn4wNvpQk5l1rE=; b=tk/3ubavPtjuM2qw+N9Ui3OWhR3lF0IGcZ5W0/cYk5FLIzY4TclvqQahcmETBx454Hl7/WL41ZhaweKLPJLBx3MVt6FZdTN2oO1J4If0vb8/0GzL3aKMrMnd4YPeH/5XQA1nQBtKDjs3x6SAgwRv8ibJYjvhT4itBIjjowEpM6VtAGQbI+T4CdcunSuQd3FM/7hdEzVAuA+AttgFcjpZ74lCVfQ+i3G4vwHkPuVWIUomaIWYs3WXN0sVPzRbUx3YadiqNU08203/Iayy052zAHS5Khpc9syRQ++JDk/Vhi7AJ6xu5qFe1iTQSSGmNx5nLByN3oVXBr6WFj18+3LS6g== Received: from BN8NAM12FT060.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::4e) by BN8NAM12HT147.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::441) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.4; Sun, 3 Jan 2021 17:37:52 +0000 Received: from MW4PR01MB6099.prod.exchangelabs.com (2a01:111:e400:fc66::4c) by BN8NAM12FT060.mail.protection.outlook.com (2a01:111:e400:fc66::430) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.4 via Frontend Transport; Sun, 3 Jan 2021 17:37:52 +0000 Received: from MW4PR01MB6099.prod.exchangelabs.com ([fe80::e938:2a4c:da3:ff34]) by MW4PR01MB6099.prod.exchangelabs.com ([fe80::e938:2a4c:da3:ff34%7]) with mapi id 15.20.3721.024; Sun, 3 Jan 2021 17:37:52 +0000 From: Thomas Flatley To: Tom Lane CC: "pgsql-general@lists.postgresql.org" Subject: RE: Max# of tablespaces Thread-Topic: Max# of tablespaces Thread-Index: Adbhz8jRcAiejUwFS2+nn1N6dp5vIgAJd48AAABTMRA= Date: Sun, 3 Jan 2021 17:37:52 +0000 Message-ID: References: <2691846.1609694824@sss.pgh.pa.us> In-Reply-To: <2691846.1609694824@sss.pgh.pa.us> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:2F26183A71B72F1C77048ED409680C31B701957DCF5BEF61E9E0AA4BA6BC3EDA;UpperCasedChecksum:5A989D4A575AD2D3FBEFD930A9F70B6CD127D7CBDC3CEEAB332033FCFB4B6D9E;SizeAsReceived:6977;Count:44 x-tmn: [i0JgXyF1rNQlscmLgJ9S4LrL8wLCw6Jlb5isBLJS7fiYvbQDd073NQND6w6e9C+A] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 49c98ed6-d56a-4fae-5e8d-08d8b00e4c2c x-ms-traffictypediagnostic: BN8NAM12HT147: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Atk5chk+Nv0SIlC5Hr9gf81RcNzmYuy92BRJ2EDVVi7sHG1mGCS7BXE0oMR/hxtr/s0dmbFOa74/+8g05T74AOiPJQIbHY6SgrXqfE+hN0qHozlze7sg0gRGqN3kHSwvMZaYoosXQ0+LyPNMKhL0VUe1WR/y4N39UljngQ0XbZONS81BpuEFdISRSWpjYfQLlYd6psH07zSKeE9wmGFDTBtKcOfwozQ+8XqdfauYHuGvCxb2qr7wO8URK1tyTtrq x-ms-exchange-antispam-messagedata: gRGnxkOqEy30E8qz0xvndPDcIeYxtW1sIGzZ5dTg8/T4QreFA9F/BlOb2M7ZKYD97TMNr6PUXa04SPOH3g/mfxPGDLeY3yWH9RdFZrLMvcZiqJ4t70U/9yQ1IRo7LP6rdU/LxmznRsY3VaCUKZLyQUujmEhMkj0ytn1vV4isexJ/4vWvfRvXQ2hfFePtiARHKjdZac7crANYC8mS2lABpA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: BN8NAM12FT060.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 49c98ed6-d56a-4fae-5e8d-08d8b00e4c2c X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2021 17:37:52.5757 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM12HT147 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Excellent - thanks for the fast response - it was an oracle dba that set it= up initially so that may explain it -=20 Thanks very much -----Original Message----- From: Tom Lane =20 Sent: Sunday, January 3, 2021 12:27 PM To: Thomas Flatley Cc: pgsql-general@lists.postgresql.org Subject: Re: Max# of tablespaces Thomas Flatley writes: > Hello, I've checked the docs but cant seem to find if there is a max # of= tablespaces allowed - I've come across a 9.5 env with 1600 tablespaces - t= hey want to double that - Oracle's max is 64k, I'm not particularly worried= about hitting a wall, if there is one , outside of maintenance issues - an= y assistance would be greatly appreciated. There's no particular hard limit, though you might start to run into OID-st= arvation problems at a billion or so tablespaces. On the other hand, it's important to realize that a Postgres tablespace doe= sn't really *do* anything. It's just a separate subdirectory. The only functional reason to use a tablespace is if you can place it on a = separate filesystem. There is certainly value in being able to do that ---= but I've never heard of systems having more than a few dozen filesystems m= ounted. Hence, the above issue sounds suspiciously like somebody is expect= ing Postgres tablespaces to do something they don't do. (I suppose if you are working on a system that has limits on the number of = files per directory, or performance problems with large values of that, the= n you could use tablespaces as a workaround. But TBH you'd be better off moving onto a more modern platform.) regards, tom lane