On Thu, Dec 3, 2020 at 09:04:21AM -0800, Jeff Davis wrote: > On Wed, 2020-12-02 at 15:16 -0500, Bruce Momjian wrote: > > Yes, we could, but I thought the format code was not something we set > > at > > this level. Looking at byteasend() it is true it just sends the > > bytes. > > It can be set along with the type. Attached an example. > > Andres objected (in a separate conversation) to forcing a binary-format > value on a client that didn't ask for one. He suggested that we mandate > that the data is ASCII-only (for both filename and content), closing > the gap Michael raised[1]; and then just declare all values to be text > format.
How do we mandate that? Just mention it in the docs and C comments? > I am fine with either approach; but in any case, I don't see the point > in sending an incorrect RowDescription. Yeah, I can see that argument, particularly since you are setting binary for the entire row, which in this case is valid, but still, kind of odd. -- Bruce Momjian <br...@momjian.us> https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee