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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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 Content-Type Size
custom_guc_flags.patch application/octet-stream 6.6 KB

Responses

Browse pgsql-hackers by date

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