Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D94384760BD; Mon, 12 Aug 2002 18:30:10 -0400 (EDT) Received: from MAIL01.stbernard.com (mail01.stbernard.com [64.154.93.162]) by postgresql.org (Postfix) with ESMTP id E8EEA476079; Mon, 12 Aug 2002 18:30:08 -0400 (EDT) Received: by mail01.stbernard.com with Internet Mail Service (5.5.2653.19) id ; Mon, 12 Aug 2002 15:30:07 -0700 Message-ID: <7C760DAA511DC74B99E7D22189F786F101BF2164@mail01.stbernard.com> From: Jie Liang To: Jie Liang , 'Bruce Momjian ' , 'Tom Lane ' Cc: "'pgsql-admin@postgresql.org '" , "'pgsql-bugs@postgresql.org'" Subject: ineffiency of pg_restore Date: Mon, 12 Aug 2002 15:30:06 -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/128 X-Sequence-Number: 5243 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. I believe that if we can have following feature: 1. quick restore(use COPY not INSERTs), 2. restore related objects, e.g. when we restore a table, we can choose to restore its indexes, triggers and related sequence etc. that will be great, I expect that we have them in next version of release. test log: su-2.05$ time psql urldb