Sample Header Ad - 728x90

Postgresql: Does execute() or fetch() download result from remote?

0 votes
0 answers
95 views
When getting a query result from a remote server, does the execution of the query transmit the result to the local machine, or is it buffered on remote and only downloaded when fetching the result? Here is how the cursor is defined: con = psycopg2.connect(f"host='{host}' port='{port}' dbname='{DB}' user='{user}' password='{pw}'") cur = con.cursor()
Asked by Radio Controlled (101 rep)
Apr 17, 2023, 08:37 AM
Last activity: Apr 18, 2023, 09:25 AM