Can you give an example of inserting binary data in PostgreSQL database from remote machine using libpq.
My second question is: Is there any other API more efficient than libpq with C++.
Thanks
Can you give an example of inserting binary data in PostgreSQL database from remote
Share
There are 2 types of blobs in PostgreSQL —
BYTEAandLarge Objects. I’d recommend against using large objects as you can not join them to tables.For BYTEA you’d use something like this in libpq: