what does function EmitWarningsOnPlaceholders?

Started by Pavel Stehuleover 9 years ago3 messages
#1Pavel Stehule
pavel.stehule@gmail.com

Hi

what is sense of this function? There is not any comment.

Regards

Pavel

#2Craig Ringer
craig@2ndquadrant.com
In reply to: Pavel Stehule (#1)
Re: what does function EmitWarningsOnPlaceholders?

On 2 May 2016 at 18:51, Pavel Stehule <pavel.stehule@gmail.com> wrote:

Hi

what is sense of this function? There is not any comment.

What it does IIRC is complain about defined GUCs nobody registered an
interest in. So you can say

EmitWarningsOnPlaceholders("bdr")

and any GUC with prefix "bdr." will result in an "unrecognized
configuration parameter" warning in the log.

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

#3Pavel Stehule
pavel.stehule@gmail.com
In reply to: Craig Ringer (#2)
Re: what does function EmitWarningsOnPlaceholders?

2016-05-02 13:54 GMT+02:00 Craig Ringer <craig@2ndquadrant.com>:

On 2 May 2016 at 18:51, Pavel Stehule <pavel.stehule@gmail.com> wrote:

Hi

what is sense of this function? There is not any comment.

What it does IIRC is complain about defined GUCs nobody registered an
interest in. So you can say

EmitWarningsOnPlaceholders("bdr")

and any GUC with prefix "bdr." will result in an "unrecognized
configuration parameter" warning in the log.

thank you for info

Regards

Pavel

Show quoted text

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services