On 2018-05-15 15:02:48 +0000, ChatPristi wrote: > I have a SELECT command (in partitionned tables) that failed with: > psql:/tmp/query.txt:1: ERROR: out of memory > DETAIL: Cannot enlarge string buffer containing 1073741818 bytes by 32 more > bytes. 1073741818 is a bit less than 1GB and 1073741818+32 is a bit more. So you are obviously hitting a 1GB limit here. Given that 1GB is the maximum length of a character type value in PostgreSQL and the error message mentions a "string buffer", I suspect that your query tries to construct a very long string. Try to rewrite the query so that it creates several shorter strings instead. hp -- _ | Peter J. Holzer | we build much bigger, better disasters now |_|_) | | because we have much more sophisticated | | | hjp@xxxxxx | management tools. __/ | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>
Attachment:
signature.asc
Description: PGP signature