Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4F599475806 for ; Mon, 12 Aug 2002 18:38:25 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 95CBB474E49 for ; Mon, 12 Aug 2002 18:38:24 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g7CMcQVk019335; Mon, 12 Aug 2002 18:38:26 -0400 (EDT) To: Jie Liang Cc: "'Bruce Momjian '" , "'pgsql-admin@postgresql.org '" , "'pgsql-bugs@postgresql.org'" Subject: Re: ineffiency of pg_restore In-reply-to: <7C760DAA511DC74B99E7D22189F786F101BF2164@mail01.stbernard.com> References: <7C760DAA511DC74B99E7D22189F786F101BF2164@mail01.stbernard.com> Comments: In-reply-to Jie Liang message dated "Mon, 12 Aug 2002 15:30:06 -0700" Date: Mon, 12 Aug 2002 18:38:26 -0400 Message-ID: <19334.1029191906@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/129 X-Sequence-Number: 5244 Jie Liang writes: > pg_restore give admin a lot of flexabilities, it can restore any object > from a single dump file. But if the table is very big, e.g. 2M records, > it will take a long time to restore because it use INSERTs. This is demonstrably not the case --- at least not by default. You get the same commands you would've gotten from pg_dump. Sure you didn't create the dump file with "-d" ? regards, tom lane