Re: LibPQ, C, BLOB or BYTEA

From: Ruslan R(dot) Laishev <zator(at)yandex(dot)ru>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: LibPQ, C, BLOB or BYTEA
Date: 2017-10-24 11:03:10
Message-ID: 4869981508842990@web47o.yandex.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

<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" &lt;mmoncure(at)gmail(dot)com&gt;:</div><blockquote type="cite"><p>On Mon, Oct 23, 2017 at 9:18 AM, Ruslan R. Laishev &lt;<a href="mailto:zator(at)yandex(dot)ru">zator(at)yandex(dot)ru</a>&gt; 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>

Attachment Content-Type Size
unknown_filename text/html 1.1 KB

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Ruslan R. Laishev 2017-10-24 11:10:37 BYTEA Arrays Input and Output C example
Previous Message Laurenz Albe 2017-10-24 06:27:46 Re: New Version Errors