Skip site navigation (1) Skip section navigation (2)

Publish GUC flags to custom variables

From: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Publish GUC flags to custom variables
Date: 2008-08-19 05:06:04
Message-ID: 20080819135214.C708.52131E4D@oss.ntt.co.jp (view raw or flat)
Thread:
Lists: pgsql-hackers
Hello,

Postgres supports to add custom GUC variables on runtime, but we
cannot use GUC flags in them. This patch adds the flags argument
to DefineCusomXxx() functions. The flags were always 0 until now.

GUC flags are useful for variables with units. Users will be able
to add configuration parameters somothing like memory-size or
time-duration more easily.

I have a plan to use the feature in SQL tracing and analyzing add-on
for postgres. Also, the auto-explain patch suggested in the last
commit-fest could be re-implemented as a plug-in instead of a core-feature
using the custom variable with units and ExecutorRun_hook.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

Attachment: custom_guc_flags.patch
Description: application/octet-stream (6.6 KB)

Responses

pgsql-hackers by date

Next:From: David FetterDate: 2008-08-19 05:14:14
Subject: Re: [HACKERS] WITH RECURSIVE patches 0818
Previous:From: Simon RiggsDate: 2008-08-19 04:18:41
Subject: Proposed Resource Manager Changes

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group