Re: PostgreSQL database segsize

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Bill Glennon <wglennon(at)gmail(dot)com>, pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL database segsize
Date: 2020-06-29 22:59:54
Message-ID: 437472.1593471594@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Magnus Hagander <magnus(at)hagander(dot)net> writes:
> On Tue, Jun 30, 2020 at 12:17 AM Bill Glennon <wglennon(at)gmail(dot)com> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Gauthier 2020-06-30 00:27:07 Can't seem to mix an inner and outer join in a query and get it to work right.
Previous Message Bill Glennon 2020-06-29 22:37:22 Re: PostgreSQL database segsize