Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum number of records that can be retrieved by postgreSQL?

Tags:

sql

postgresql

When retrieving records using SELECT in postgres, what is maximum number of records that can be retrieved? Can it return a maximum of 10 million records at a single time if I wanted it too? Or can it only return a specific amount (ex. 5,000) in order to encourage using LIMIT and OFFSET?

like image 544
Simone Anthony Avatar asked Oct 16 '25 03:10

Simone Anthony


1 Answers

There is no limit to the number of result rows in a query.

If your client collects the whole result in memory, that poses a limit, but most clients can be configured not to do that.

like image 54
Laurenz Albe Avatar answered Oct 17 '25 19:10

Laurenz Albe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!