From: Bruce Momjian <bruce@momjian.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: cannot to set track_activity_query_size in kB
Date: Wed, 9 Apr 2014 06:54:21 -0400
Message-ID: <20140409105421.GN8685@momjian.us> (raw)
In-Reply-To: <CAFj8pRDzE2tUJBXSPzo0QFYpP3gQe0yQySumSPQNg1238JnZdw@mail.gmail.com>
References: <CAFj8pRDzE2tUJBXSPzo0QFYpP3gQe0yQySumSPQNg1238JnZdw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Wed, Apr 9, 2014 at 11:25:23AM +0200, Pavel Stehule wrote:
> Hello
>
> I got a message
>
> LOG: invalid value for parameter "track_activity_query_size": "64kB"
> FATAL: configuration file "/usr/local/pgsql/data/postgresql.conf" contains
> errors
>
> for
>
> track_activity_query_size = 64kB
I looked into this and the cause is that we don't have any _bytes_ GUC
unit setting, we only have 3:
#define GUC_UNIT_KB 0x0400 /* value is in kilobytes */
#define GUC_UNIT_BLOCKS 0x0800 /* value is in blocks */
#define GUC_UNIT_XBLOCKS 0x0C00 /* value is in xlog blocks */
#define GUC_UNIT_MEMORY 0x0C00 /* mask for KB, BLOCKS, XBLOCKS */
Should I add a _bytes_ setting so this works, or just add a C comment
that it doesn't?
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: bruce@momjian.us, pavel.stehule@gmail.com
Subject: Re: cannot to set track_activity_query_size in kB
In-Reply-To: <20140409105421.GN8685@momjian.us>
References: <CAFj8pRDzE2tUJBXSPzo0QFYpP3gQe0yQySumSPQNg1238JnZdw@mail.gmail.com> <20140409105421.GN8685@momjian.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