Split huge (95Mb) JSON array into smaller chunks?

后端 未结 4 1112
不知归路
不知归路 2021-01-18 06:04

I exported some data from my database in the form of JSON, which is essentially just one [list] with a bunch (900K) of {objects} inside it.

Trying to import it on my

4条回答
  •  生来不讨喜
    2021-01-18 06:29

    Assuming you have the option to go back and export the data again...:

    pg_dump - extract a PostgreSQL database into a script file or other archive file.

    pg_restore - restore a PostgreSQL database from an archive file created by pg_dump.

    If that's no use, it might be useful to know what you're going to be doing with the output so that another suggestion can hit the mark.

提交回复
热议问题