pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgreSQL database segsize
4+ messages / 3 participants
[nested] [flat]
* PostgreSQL database segsize
@ 2020-06-29 22:16 Bill Glennon <wglennon@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Bill Glennon @ 2020-06-29 22:16 UTC (permalink / raw)
To: pgsql-general
Hi,
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?
Or even if you come into a place to support an existing PostgreSQL
database, how do you find out what the database segsize is?
Thanks in advance for your help.
-- Bill
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: PostgreSQL database segsize
@ 2020-06-29 22:33 Magnus Hagander <magnus@hagander.net>
parent: Bill Glennon <wglennon@gmail.com>
0 siblings, 2 replies; 4+ messages in thread
From: Magnus Hagander @ 2020-06-29 22:33 UTC (permalink / raw)
To: Bill Glennon <wglennon@gmail.com>; +Cc: pgsql-general
On Tue, Jun 30, 2020 at 12:17 AM Bill Glennon <wglennon@gmail.com> wrote:
> Hi,
>
> 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?
>
> Or even if you come into a place to support an existing PostgreSQL
> database, how do you find out what the database segsize is?
>
>
You can run the query "SHOW segment_size" to show the compiled-in value.
--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/;
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/;
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: PostgreSQL database segsize
@ 2020-06-29 22:37 Bill Glennon <wglennon@gmail.com>
parent: Magnus Hagander <magnus@hagander.net>
1 sibling, 0 replies; 4+ messages in thread
From: Bill Glennon @ 2020-06-29 22:37 UTC (permalink / raw)
To: Magnus Hagander <magnus@hagander.net>; +Cc: pgsql-general
Awesome! That worked. Thank you Magnus!
I should have thought of that earlier. LOL
On Mon, Jun 29, 2020 at 6:33 PM Magnus Hagander <magnus@hagander.net> wrote:
>
>
> On Tue, Jun 30, 2020 at 12:17 AM Bill Glennon <wglennon@gmail.com> wrote:
>
>> Hi,
>>
>> 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?
>>
>> Or even if you come into a place to support an existing PostgreSQL
>> database, how do you find out what the database segsize is?
>>
>>
> You can run the query "SHOW segment_size" to show the compiled-in value.
>
> --
> Magnus Hagander
> Me: https://www.hagander.net/ <http://www.hagander.net/;
> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/;
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: PostgreSQL database segsize
@ 2020-06-29 22:59 Tom Lane <tgl@sss.pgh.pa.us>
parent: Magnus Hagander <magnus@hagander.net>
1 sibling, 0 replies; 4+ messages in thread
From: Tom Lane @ 2020-06-29 22:59 UTC (permalink / raw)
To: Magnus Hagander <magnus@hagander.net>; +Cc: Bill Glennon <wglennon@gmail.com>; pgsql-general
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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2020-06-29 22:59 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 22:16 PostgreSQL database segsize Bill Glennon <wglennon@gmail.com>
2020-06-29 22:33 ` Magnus Hagander <magnus@hagander.net>
2020-06-29 22:37 ` Bill Glennon <wglennon@gmail.com>
2020-06-29 22:59 ` Tom Lane <tgl@sss.pgh.pa.us>
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