Publish GUC flags to custom variables - Mailing list pgsql-hackers

From ITAGAKI Takahiro
Subject Publish GUC flags to custom variables
Date
Msg-id 20080819135214.C708.52131E4D@oss.ntt.co.jp
Whole thread Raw
Responses Re: Publish GUC flags to custom variables  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Proposed Resource Manager Changes
Next
From: David Fetter
Date:
Subject: Re: WITH RECURSIVE patches 0818