Improve check for overly-long extensible node name.

Robert Haas <rhaas@postgresql.org>

Commit: 3adf9ced17dfa84faa209127b4499e5a5b995806
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-03-14T17:52:52Z
Releases: 9.6.0
Improve check for overly-long extensible node name.

The old code is bad for two reasons.  First, it has an off-by-one
error.  Second, it won't help if you aren't running with assertions
enabled.  Per discussion, we want a check here in that case too.

Author: KaiGai Kohei, adjusted by me.
Reviewed-by: Petr Jelinek
Discussion: 56E0D547.1030101@2ndquadrant.com

Files

PathChange+/−
src/backend/nodes/extensible.c modified +2 −1