Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 12A95475807; Mon, 12 Aug 2002 18:48:22 -0400 (EDT) Received: from MAIL01.stbernard.com (mail01.stbernard.com [64.154.93.162]) by postgresql.org (Postfix) with ESMTP id 5506F474E49; Mon, 12 Aug 2002 18:48:21 -0400 (EDT) Received: by mail01.stbernard.com with Internet Mail Service (5.5.2653.19) id ; Mon, 12 Aug 2002 15:48:24 -0700 Message-ID: <7C760DAA511DC74B99E7D22189F786F101BF2165@mail01.stbernard.com> From: Jie Liang To: 'Tom Lane' , Jie Liang Cc: 'Bruce Momjian ' , "'pgsql-admin@postgresql.org '" , "'pgsql-bugs@postgresql.org'" Subject: Re: ineffiency of pg_restore Date: Mon, 12 Aug 2002 15:48:23 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/130 X-Sequence-Number: 5245 I use: pg_dump -Fc -d urldb > urldb.out.020810 I can make another test and get the log Jie Liang -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Monday, August 12, 2002 3:38 PM To: Jie Liang Cc: 'Bruce Momjian '; 'pgsql-admin@postgresql.org '; 'pgsql-bugs@postgresql.org' Subject: Re: [ADMIN] ineffiency of pg_restore 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 ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org