My goal is to achieve the maximum performance available for copying a block of data from a database into a C function, which will be processed and returned as a result of the request.
I am new to PostgreSQL, and now I am exploring possible ways to move data. In particular, I'm looking for nuances or keywords related to PostgreSQL to quickly move big data.
Note: My ultimate goal is speed, so Iām ready to accept the answers beyond the exact question that I posed while it gets great results. For example, I came across the keyword COPY (PostgreSQL only), which quickly moves data from tables to files; and vice versa. I try to stay away from processing, which is external to the database, but if it provides a performance improvement that does not allow us to understand the obvious drawback of external processing, then so be it.
source share