Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json_read out of memory #4

Open
taochangjun opened this issue Sep 19, 2016 · 1 comment
Open

json_read out of memory #4

taochangjun opened this issue Sep 19, 2016 · 1 comment

Comments

@taochangjun
Copy link

taochangjun commented Sep 19, 2016

When read large json file , it will cause oom sometimes.

@taochangjun
Copy link
Author

testjson=# select count(*) from testnestedjson_2;

count

5200000
(1 row)

Time: 7393.992 ms
testjson=# select count(*) from testnestedjson_2;

count

5200000
(1 row)

Time: 7306.728 ms
testjson=# select count() from testnestedjson_2;
ERROR: Could not parse JSON string (json_formatter.c:206) (seg0 slice1 seg1:40009 pid=20741) (cdbdisp.c:1326)
DETAIL: External table testnestedjson_2
testjson=# select count(
) from testnestedjson_2;
ERROR: Out of memory (seg0 slice1 seg1:40009 pid=20741)
DETAIL:
VM protect failed to allocate 8192 bytes from system, VM Protect 8191 MB available
External table testnestedjson_2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant