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 A30319FA6B2 for ; Sat, 27 May 2006 05:00:59 -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 88824-09 for ; Sat, 27 May 2006 05:00:52 -0300 (ADT) X-Greylist: delayed 13:40:18.130508 by SQLgrey- Received: from mallaury.nerim.net (smtp-106-saturday.noc.nerim.net [62.4.17.106]) by postgresql.org (Postfix) with ESMTP id EBEF49FA5F8 for ; Sat, 27 May 2006 05:00:52 -0300 (ADT) Received: from [192.168.10.34] (jmoliere.net8.nerim.net [213.41.184.162]) by mallaury.nerim.net (Postfix) with ESMTP id 64D5E4F3E4; Sat, 27 May 2006 10:00:44 +0200 (CEST) Message-ID: <4478072F.3090407@javaxpert.com> Date: Sat, 27 May 2006 10:00:47 +0200 From: jerome User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: fr, en MIME-Version: 1.0 To: Andy Shellam CC: pgsql-admin@postgresql.org Subject: Re: \i running on windows References: <447746EB.4090509@javaxpert.com> <001801c680f8$4a77d590$df6780b0$@net> In-Reply-To: <001801c680f8$4a77d590$df6780b0$@net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/381 X-Sequence-Number: 21913 Andy Shellam a =E9crit : >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 L= ite >- 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 install= er >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 ord= er >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! > > > > =20 > thanks for your answer andy... but it doesn't help me much , be cause eveen using simple paths like c:\myscript.sql fail with a fristrating error permission...I can't guess how to change permissions to enable reading (files saved under my windows profile & read from the postgres user).. thanks jerome