pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
cannot to set track_activity_query_size in kB
4+ messages / 3 participants
[nested] [flat]

* cannot to set track_activity_query_size in kB
@ 2014-04-09 09:25 Pavel Stehule <pavel.stehule@gmail.com>
  2014-04-09 10:54 ` Re: cannot to set track_activity_query_size in kB Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Pavel Stehule @ 2014-04-09 09:25 UTC (permalink / raw)
  To: pgsql-bugs

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

Regards

Pavel Stehule

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: cannot to set track_activity_query_size in kB
  2014-04-09 09:25 cannot to set track_activity_query_size in kB Pavel Stehule <pavel.stehule@gmail.com>
@ 2014-04-09 10:54 ` Bruce Momjian <bruce@momjian.us>
  2014-04-09 14:00   ` Re: cannot to set track_activity_query_size in kB Tom Lane <tgl@sss.pgh.pa.us>
  2014-04-09 14:03   ` Re: cannot to set track_activity_query_size in kB Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Bruce Momjian @ 2014-04-09 10:54 UTC (permalink / raw)
  To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: cannot to set track_activity_query_size in kB
  2014-04-09 09:25 cannot to set track_activity_query_size in kB Pavel Stehule <pavel.stehule@gmail.com>
  2014-04-09 10:54 ` Re: cannot to set track_activity_query_size in kB Bruce Momjian <bruce@momjian.us>
@ 2014-04-09 14:00   ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 4+ messages in thread

From: Tom Lane @ 2014-04-09 14:00 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: Pavel Stehule <pavel.stehule@gmail.com>; pgsql-bugs

Bruce Momjian <bruce@momjian.us> writes:
> Should I add a _bytes_ setting so this works,

No.  Not without more than one example, and preferably a more compelling
example than this.  That value seems insanely high for that parameter.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: cannot to set track_activity_query_size in kB
  2014-04-09 09:25 cannot to set track_activity_query_size in kB Pavel Stehule <pavel.stehule@gmail.com>
  2014-04-09 10:54 ` Re: cannot to set track_activity_query_size in kB Bruce Momjian <bruce@momjian.us>
@ 2014-04-09 14:03   ` Pavel Stehule <pavel.stehule@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Pavel Stehule @ 2014-04-09 14:03 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-bugs

2014-04-09 12:54 GMT+02:00 Bruce Momjian <bruce@momjian.us>:

> 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?
>

Change this value is not usual, so it can be only in KB - but, can be nice
it be commented there

Regards

Pavel


>
> --
>   Bruce Momjian  <bruce@momjian.us>        http://momjian.us
>   EnterpriseDB                             http://enterprisedb.com
>
>   + Everyone has their own god. +
>

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2014-04-09 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-04-09 09:25 cannot to set track_activity_query_size in kB Pavel Stehule <pavel.stehule@gmail.com>
2014-04-09 10:54 ` Bruce Momjian <bruce@momjian.us>
2014-04-09 14:00   ` Tom Lane <tgl@sss.pgh.pa.us>
2014-04-09 14:03   ` Pavel Stehule <pavel.stehule@gmail.com>

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