pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: Bill Glennon <wglennon@gmail.com>
Cc: pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: PostgreSQL database segsize
Date: Mon, 29 Jun 2020 18:59:54 -0400
Message-ID: <437472.1593471594@sss.pgh.pa.us> (raw)
In-Reply-To: <CABUevEwY1W0vnRvhTzKE=UwNg7MLBtuvAFVmhzA5VGcWRGR-tQ@mail.gmail.com>
References: <CADBgUcAF0iegOwZYWQ_5O8DHDoeHentjPG+=3MesfibOQvFMvg@mail.gmail.com>
	<CABUevEwY1W0vnRvhTzKE=UwNg7MLBtuvAFVmhzA5VGcWRGR-tQ@mail.gmail.com>

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





view thread (4+ messages)

Message-ID: <437472.1593471594@sss.pgh.pa.us>
Permalink:  ../437472.1593471594@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/437472.1593471594@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, magnus@hagander.net, wglennon@gmail.com
  Subject: Re: PostgreSQL database segsize
  In-Reply-To: <437472.1593471594@sss.pgh.pa.us>
  References: <CADBgUcAF0iegOwZYWQ_5O8DHDoeHentjPG+=3MesfibOQvFMvg@mail.gmail.com> <CABUevEwY1W0vnRvhTzKE=UwNg7MLBtuvAFVmhzA5VGcWRGR-tQ@mail.gmail.com> <437472.1593471594@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox