Thanks, will look later ...
At the time I looking for a way to solve the problem w/o introducing a yet another API.


24.10.2017, 00:08, "Merlin Moncure" <mmoncure@gmail.com>:

On Mon, Oct 23, 2017 at 9:18 AM, Ruslan R. Laishev <zator@yandex.ru> wrote:

 The question was "How To?". :-)
 I looking for something like follows:
 ...
 char __data_bytea[128];


 RAND_bytes(__data_bytea, sizeof(__data_byte));
 ...
 argv[0] = __data_bytea;
 argl[0] = sizeof(__data_bytea);

 ...
 PQexecPrepared ( ... argv, argl , ...);


check out libpqtypes -- it does exactly what you want.

merlin



-- 
С уважением,
Ruslan R. Laishev
OpenVMS bigot, natural born system/network progger, C contractor.
+79013163222
+79910009922