Re: creating/accessing new runtime parameters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: brook(at)biology(dot)nmsu(dot)edu
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: creating/accessing new runtime parameters
Date: 2003-09-24 14:45:12
Message-ID: 4230.1064414712@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

<brook(at)biology(dot)nmsu(dot)edu> writes:
> - How can I introduce a new variable (e.g., XXX) to the system so that
> for example SET XXX=1 will work?

The basic thing is to add an appropriate table entry to guc.c. You
might try searching the sources for all references to one of the
lesser-used GUC variables, perhaps default_statistics_target, to get
a feeling for what's involved.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gottfried F. Zojer 2003-09-24 15:09:52 <no subject>
Previous Message Matthew T. O'Connor 2003-09-24 14:36:58 Re: pg_dump doesn't dump binary compatible casts