Should we warn users about SETs which have no effect?

Started by Josh Berkusabout 16 years ago2 messages
#1Josh Berkus
josh@agliodbs.com

Hackers,

There are some GUCs you can set in a context which will accept them, yet
they have no effect when you do. For example, I can call SET
statement_timeout inside a function, and it has no effect whatsoever.

I'm wondering if we should be throwing a warning in these cases. And
how many such cases there are. Thoughts?

--Josh Berkus

#2Josh Berkus
josh@agliodbs.com
In reply to: Josh Berkus (#1)
Re: Should we warn users about SETs which have no effect?

On 10/27/09 9:36 AM, Josh Berkus wrote:

Hackers,

There are some GUCs you can set in a context which will accept them, yet
they have no effect when you do. For example, I can call SET
statement_timeout inside a function, and it has no effect whatsoever.

I'm wondering if we should be throwing a warning in these cases. And
how many such cases there are. Thoughts?

Hmmmm, clarification: this applies to SET LOCAL, specifically.

---Josh