Cosmetic improvements in ltree code.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2743d9ae4a490a7d96b5c19d50694bd101a87dc8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2020-03-29T23:14:15Z
Releases: 13.0
Cosmetic improvements in ltree code.

Add more comments in ltree.h, and correct a misstatement or two.

Use a symbol, rather than hardwired constants, for the maximum length
of an ltree label.  The max length is still hardwired in the associated
error messages, but I want to clean that up as part of a separate patch
to improve the error messages.

Files

PathChange+/−
contrib/ltree/ltree.h modified +31 −10
contrib/ltree/ltree_io.c modified +14 −5