X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 89F5347638C for ; Tue, 13 May 2003 14:08:23 -0400 (EDT) Received: from mhs.swan.ac.uk (mhs.swan.ac.uk [137.44.1.33]) by postgresql.org (Postfix) with ESMTP id A39444763A2 for ; Tue, 13 May 2003 14:08:20 -0400 (EDT) Received: from cs-svr1.swan.ac.uk ([137.44.2.59]) by mhs.swan.ac.uk with esmtp (Exim 4.14) id 19FeCK-0005GM-H4; Tue, 13 May 2003 19:08:20 +0100 Received: from cspcok.swan.ac.uk (cspcok [137.44.2.97]) by cs-svr1.swan.ac.uk (8.12.2/8.12.2/SuSE Linux 0.6) with ESMTP id h4DI8KVV021996; Tue, 13 May 2003 19:08:20 +0100 Received: from cspcok.swan.ac.uk (localhost [127.0.0.1]) by cspcok.swan.ac.uk (8.12.3/8.12.3/SuSE Linux 0.6) with ESMTP id h4DI7wUw005682; Tue, 13 May 2003 19:07:58 +0100 Received: (from csoliver@localhost) by cspcok.swan.ac.uk (8.12.3/8.12.3/Submit) id h4DI7wSa005681; Tue, 13 May 2003 19:07:58 +0100 Date: Tue, 13 May 2003 19:07:58 +0100 From: Oliver Kullmann To: pgsql-admin@postgresql.org Subject: problems with moving a database Message-ID: <20030513180758.GB5534@swan.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i X-Spam-Status: No, hits=-12.1 required=5.0 tests=BAYES_10,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/152 X-Sequence-Number: 8714 Hi, since quite some time I'm wrestling with the following, seemingly very basic problem: I have a database, call it DB1, on my laptop (size of DB ~ 6 GB; OS Suse Linux 8.0). Now I need to move DB1 to another computer (laptop got too small). So I "just" create a dump, and create the database on the pc (call the new database DB2; same version of PostgreSQL, also Suse Linux 8.0). The first time I tried it was not possible to recreate the table structure. So well, I use pg_dump -a Still problems with the owner structure (user1 on the laptop is different from user2 on the pc). Since I do not care at all about these different names, I used pg_dump -a -R -O -x DB1 Now I get > psql -dDB2 -U oliver < DB1.dmp ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. FATAL 2: copy: line 6606854, write of log file 3, segment 143, offset 8716288 failed: No space left on device lost synchronization with server, resetting connection ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: copy: line 6602698, cannot write block 34375 of b_unit_reductions_b_info_id_key: No space left on device lost synchronization with server, resetting connection ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. ERROR: pg_class: Permission denied. setval -------- 2 (1 row) setval -------- 1 (1 row) setval -------- 1 (1 row) setval -------- 4 (1 row) setval -------- 8 (1 row) setval -------- 1 (1 row) setval -------- 1 (1 row) setval -------- 1 (1 row) setval -------- 230 (1 row) setval -------- 178 (1 row) setval ---------- 11647053 (1 row) setval -------- 150 (1 row) setval ---------- 11648603 (1 row) As you can see, first I get these pg_class errors: I guess still the systems tries to copy something of the old structure (in which I'm not interested --- I just want to get the data copied, *nothing else*). So well, perhaps these errors can be ignored, but the other errors seem to be serious, and the database is not consistent anymore: For example I get NULL entries for attributes of type SERIAL. On the pc I still have 12 GB free (the dump-file is a bit more than 1 GB). What else can I do?? I would be glad for any help! Thanks in any case. Oliver