Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 342261337B3E for ; Wed, 29 Sep 2010 06:17:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 38998-08 for ; Wed, 29 Sep 2010 09:17:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mail.postgresql.org (Postfix) with SMTP id 6B0EE1337B34 for ; Wed, 29 Sep 2010 06:16:57 -0300 (ADT) Received: (qmail invoked by alias); 29 Sep 2010 09:16:57 -0000 Received: from 85-127-60-102.dynamic.xdsl-line.inode.at (EHLO [192.168.0.197]) [85.127.60.102] by mail.gmx.net (mp051) with SMTP; 29 Sep 2010 11:16:57 +0200 X-Authenticated: #2419098 X-Provags-ID: V01U2FsdGVkX1+hYZtJPJ6hBVI3hqpwoExwOmzbdlmiT+5PvQKk1h tvrt80L2ooI4Sf Message-ID: <4CA30408.4030800@gmx.de> Date: Wed, 29 Sep 2010 11:16:56 +0200 From: "Georg M. Sorst" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.11pre) Gecko/20100922 Lightning/1.0b2 Shredder/3.1.5pre MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Loading a dump containing include commands Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201009/76 X-Sequence-Number: 20946 Hey list! Is there a way to load a dump with include statements (\i something.sql) with the Postgres JDBC driver? Both PGCopyOutputStream and the regular Statement seem to choke on \i. I am using postgresql-8.4-701.jdbc4.jar, the current Maven version. Thanks and best regards, Georg -- Georg M. Sorst http://vergiss-blackjack.de