<div>Thanks, will look later ...</div><div>At the time I looking for a way to solve the problem w/o introducing a yet another API.</div><div><br /></div><div><br /></div><div>24.10.2017, 00:08, "Merlin Moncure" <mmoncure(at)gmail(dot)com>:</div><blockquote type="cite"><p>On Mon, Oct 23, 2017 at 9:18 AM, Ruslan R. Laishev <<a href="mailto:zator(at)yandex(dot)ru">zator(at)yandex(dot)ru</a>> wrote:<br /></p><blockquote> The question was "How To?". :-)<br /> I looking for something like follows:<br /> ...<br /> char __data_bytea[128];<br /><br /><br /> RAND_bytes(__data_bytea, sizeof(__data_byte));<br /> ...<br /> argv[0] = __data_bytea;<br /> argl[0] = sizeof(__data_bytea);<br /><br /> ...<br /> PQexecPrepared ( ... argv, argl , ...);<br /></blockquote><p><br />check out libpqtypes -- it does exactly what you want.<br /><br />merlin<br /></p></blockquote><div><br /></div><div><br /></div><div>-- </div><div>С уважением,<br /> Ruslan R. Laishev</div><div>OpenVMS bigot, natural born system/network progger, C contractor.</div><div>+79013163222</div><div>+79910009922</div><div><br /></div>