Re: regarding running a script in psql

From: raghu ram <raghuchennuru(at)gmail(dot)com>
To: siva kiran balijepalli <b(dot)sivakiran(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: regarding running a script in psql
Date: 2011-02-25 20:03:15
Message-ID: AANLkTimi5SQxCqzfArGPq0TZ8LQzgEd=UCrSDS0+ehvd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi Siva,

Could you please try to run script from PSQL prompt as follows:

psql=# \i 'c:/Program Files/PostgresPlus/9.0SS/share/contrib/isn.sql'

--Raghu

On Mon, Feb 21, 2011 at 4:58 PM, siva kiran balijepalli <
b(dot)sivakiran(at)gmail(dot)com> wrote:

> Hi every one,
>
> Pre Basic Question
>
> Just starting with Postgres
>
> My System – MS Vista
>
> Installed Postgresql 8.4.2
>
> Able to get into psql command tool and create a simple database, using
> direction from “Beginning Databases With Postgres”
>
> Try to Run Sql script from a folder on C: that codes several Tables
>
> bpsimple=# \i C:\Program Files\PostGreSql\create_tables-bpsimple.sql
>
> Error
> C:: Permission denied
>
> tried also all the following
> bpsimple=> \i 'D:\scripts.sql';
> D:scripts.sql: No such file or directory
> bpsimple=> \i 'D:\\scripts.sql';
> D:/scripts.sql: No such file or directory
> bpsimple=> \i 'D:/scripts.sql';
> D:/scripts.sql: No such file or directory
> bpsimple=> \i 'D://scripts.sql';
> D:/scripts.sql: No such file or directory
> bpsimple=> \i D://scripts.sql;
> D:/scripts.sql: No such file or directory
> bpsimple=> \i D:/scripts.sql;
> D:/scripts.sql: No such file or directory
> bpsimple=> \i D:\scripts.sql;
> D:: Permission denied
> bpsimple=> \i D:\\scripts.sql;
> D:: Permission denied
>
>
> please
> guide me
>
>
>
>
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Le Fromager 2011-02-26 22:19:15 Re: Do checkpoints flush all data from shared buffers ?
Previous Message Manlin Vee 2011-02-25 15:58:06 Re: Failure to Call a Nested Function