php postgres from query to fetching rows in theory
问题 I would like to know what precisely is happening since php script runs the query to the moment when database returns data and php script starts to fetch them. In theory, I have a Postgre database with huge table, talking about 10/20 million records with 20+ columns and I have a php script which is requesting all that rows from database to be placed in, lets say, some file. My knowledge is: php script runs the pg_query command with sql query through postgres php driver/extension query is