binary one way or the other, but not both
Author: rothskellerCreated Jul 4, 2017Updated Apr 2, 2026
Labelsnew-feature
When `binary_parameters` is disabled, byte arrays are sent to the server in text format (hex encoded), but byte arrays retrieved from the server (via a prepared statement) are retrieved in binary format. When `binary_parameters` is enabled, byte arrays are sent to the server in binary format, but they are retrieved from the server in text format (hex encoded). Is there any way to get byte arrays to be sent in binary format in both directions? If so, how? If not, is it feasible?
Source: lib/pq