问题描述
我有一个.sql文件(60GB +),带有以下标头(又名前几行)
-- Dumped from database version 12.1 (Ubuntu 12.1-1.pgdg18.04+1)
-- Dumped by pg_dump version 12.1 (Ubuntu 12.1-1.pgdg18.04+1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path','',false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Data for Name: search_pages; Type: TABLE DATA; Schema: public; Owner: crawler-production
--
copY public.search_pages (response,url,updated_at) FROM stdin;
...
问题是:我正在尝试通过psql $CRAWLER_PG_URI < dump.sql
还原它。看起来好像正在运行,几分钟后完成,没有引发任何错误,但是数据不存在。
注意:response
是一个非常复杂的JSONB
字段。
关于可能发生的事情的任何想法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)