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 1jq2kr-00027R-3s for pgsql-general@arkaria.postgresql.org; Mon, 29 Jun 2020 23:00: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 1jq2kq-0007ce-2w for pgsql-general@arkaria.postgresql.org; Mon, 29 Jun 2020 23:00:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jq2kp-0007cX-RG for pgsql-general@lists.postgresql.org; Mon, 29 Jun 2020 22:59:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jq2kn-0006fX-SI for pgsql-general@postgresql.org; Mon, 29 Jun 2020 22:59:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 05TMxs6p437473; Mon, 29 Jun 2020 18:59:54 -0400 From: Tom Lane To: Magnus Hagander cc: Bill Glennon , pgsql-general General Subject: Re: PostgreSQL database segsize In-reply-to: References: Comments: In-reply-to Magnus Hagander message dated "Tue, 30 Jun 2020 00:33:46 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <437471.1593471594.1@sss.pgh.pa.us> Date: Mon, 29 Jun 2020 18:59:54 -0400 Message-ID: <437472.1593471594@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Magnus Hagander writes: > On Tue, Jun 30, 2020 at 12:17 AM Bill Glennon wrote: >> If you are building a Postgresql database from source and you use >> option --with-segsize=4, how do you verify that the database segsize is 4GB >> and not the default 1GB? Is there a query that you can run? > You can run the query "SHOW segment_size" to show the compiled-in value. pg_controldata will show it too, though a bit more opaquely: Blocks per segment of large relation: 131072 This would be helpful if you have an on-disk database and no running server. regards, tom lane