Kyotaro HORIGUCHI <horiguchi.kyot...@lab.ntt.co.jp> writes: > Hello, this is a problem on an extreme situation. > When parser encounters very long tokens, it returns an error > message which should be mysterious for users.
>> $ perl -e "print \"select '\" . \"x\"x(512*1024*1024) . \"'\"" | psql >> postgres >> ERROR: invalid memory alloc request size 1073741824 I can't get terribly excited about that, because there is not that much daylight between there and where the query fails because the entire input string exceeds 1GB. Moreover, anyone who tries working with literals in this size range will soon learn not to ;-). So it seems quite an artificial example to me ... regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers