X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 602629FA218 for ; Fri, 26 May 2006 16:12:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 98914-04 for ; Fri, 26 May 2006 16:12:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sydney.mailnetwork.co.uk (server88-208-192-113.live-servers.net [88.208.192.113]) by postgresql.org (Postfix) with ESMTP id 80BF59FA12E for ; Fri, 26 May 2006 16:12:22 -0300 (ADT) Received: from andyshellam-gw.adsl.newnet.co.uk ([80.175.198.137]:1784 helo=andydesk) by sydney.mailnetwork.co.uk with esmtpa (Exim 4.60) (envelope-from ) id 1FjhjO-0003Kq-OM; Fri, 26 May 2006 20:12:19 +0100 From: "Andy Shellam" To: "'jerome'" Cc: References: <447746EB.4090509@javaxpert.com> In-Reply-To: <447746EB.4090509@javaxpert.com> Subject: Re: \i running on windows Date: Fri, 26 May 2006 20:12:09 +0100 Message-ID: <001801c680f8$4a77d590$df6780b0$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcaA9OWn2P9iMjy2Teq62IC2Fp3NOAAAygeA Content-Language: en-gb X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/379 X-Sequence-Number: 21911 Where are you trying to run your scripts, in PgAdmin, or from the psql client? In psql you should specify the full path to your script, ie. \i C:\The folder\the script.sql In PgAdmin, the easiest way is to start a new query, then copy and paste your script in (or there may be an "open script" option to read it from file) - I haven't used PgAdmin, I use SQL Manager's PostgreSQL Manager Lite - it's much more intuitive. Andy -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of jerome Sent: Friday, 26 May, 2006 7:20 pm To: pgsql-admin@postgresql.org Subject: [ADMIN] \i running on windows Hi all, I'd like to use for the first time postgres on windows, used the installer no problem (good stuff) i saw pgadmin (good gui) but when trying to use the \i I can't figure a way to find my script to be imported... What is the correct PATH to be used ? Where should I put my files in order to Postgres top find them ? It 's very annoying... I tried several notations (windows or Unix ones), I tried absolute & relative paths ? I set up some env vars (PG_HOME & PG_DATA) soi I tried to put scripts on the PG_HOME directory but it doesn't work.. Any idea ? Cheers jerome ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match !DSPAM:14,44774d5a34493449410149!