Stef Walter <stef-list@memberwebs.com> writes:
> But if you like I can add additional defensive checks in the code to
> ignore those obviously invalid netmasks like /0. Basically the OS would
> be giving postgres bad information. Does postgres generally try to guard
> against this? I'll follow the convention of the project.
I think we'd only bother with that if it was a known failure mode
due to platform bugs or common misconfigurations.
regards, tom lane