Doc: document bpchar, clarify relationship of text and varchar.
authorTom Lane <[email protected]>
Wed, 28 Sep 2022 16:31:36 +0000 (12:31 -0400)
committerTom Lane <[email protected]>
Wed, 28 Sep 2022 16:31:36 +0000 (12:31 -0400)
commit0937f6d172921202e1b432e206e4c30775d564d8
tree75b4652a943ecd0e27efd129575bec8b0a337e4a
parent4d2a844242dcfb34e05dd0d880b1a283a514b16b
Doc: document bpchar, clarify relationship of text and varchar.

For some reason the "bpchar" type name was defined nowhere in
our SGML docs, although several places refer to it in passing.
Give it a proper mention under Character Types.

While here, also provide an explanation of how the text and varchar
types relate.  The previous wording seemed to be doing its best
to sweep text under the rug, which doesn't seem very appropriate
given its prominence in other parts of the docs.

Minor rearrangements and word-smithing for clarity, too.

Laurenz Albe and Tom Lane, per gripe from Yanliang Lei

Discussion: https://postgr.es/m/120b3084.56b6.1833b5ffe4b[email protected]
doc/src/sgml/datatype.sgml