Re: request for feedback - read-only GUC variables, pg_settings

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: "Hackers (PostgreSQL)" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: request for feedback - read-only GUC variables, pg_settings
Date: 2003-12-04 11:53:40
Message-ID: 200312041153.hB4BreM13594@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joe Conway wrote:
> We (mostly Bruce, Tom, Peter, and I) have been having a discussion on
> the PATCHES list regarding some new functionality related to read-only
> GUC variables. The net result is pasted at the bottom of this post. Here
> is a link to the discussion:
> http://archives.postgresql.org/pgsql-patches/2003-11/msg00363.php
>
> In short, 5 new read-only GUC variables are created allowing the value
> of certain compile-time settings to be queried. Also the pg_settings
> system view has been expanded to include category, short_desc, and
> extra_desc (corresponding to group, short_desc, and long_desc in the
> generic guc structure). The 5 GUC variables are:
>
> block_size - int
> Shows size of a disk block

> The main open question at this point is the name for the "block_size"
> variable. Peter favors "block_size", Bruce favors "page_size", Tom
> hasn't taken a position on that specific issue. Does anyone have and
> opinion on the variable name, or any general comments before I commit this?

I hate to reply to this because I have already cast my vote, but
"block_size" does not report the size of a disk block. It reports the
size of a PostgreSQL block/page. Disk blocks are almost always 512
bytes in size.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-12-04 12:03:23 Re: request for feedback - read-only GUC variables,
Previous Message Bruce Momjian 2003-12-04 11:45:20 Re: What packages from Mingw and MSys are needed?