Re: Postgresql On Windows - Mailing list pgsql-general

From John Cheng
Subject Re: Postgresql On Windows
Date
Msg-id 607832.24983.qm@web43410.mail.sp1.yahoo.com
Whole thread Raw
In response to Re: Postgresql On Windows  (Raymond O'Donnell <rod@iol.ie>)
List pgsql-general
From my experience, you must use the forward slash. Using the backslash may give you an error:

\i C:\sql\test.sql
C:: Permission denied

Instead, use

\i C:/sql/test.sql

________________________________
From: Raymond O'Donnell <rod@iol.ie>
To: MDB <mdb002@yahoo.com>
Cc: pgsql-general@postgresql.org
Sent: Friday, March 27, 2009 7:35:47 AM
Subject: Re: [GENERAL] Postgresql On Windows

On 27/03/2009 14:28, MDB wrote:
> What is the path format for the i (\i) command in the SQL shell?

I think it's just as anywhere else on Windows, e.g.

    \i c:\path\to\file.sql

If there are spaces in the path you may have to enclose it in double-quotes:

    \i "c:\path with spaces\file.sql"

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general






pgsql-general by date:

Previous
From: Aurimas Černius
Date:
Subject: Re: Postgresql On Windows
Next
From: "Will Rutherdale (rutherw)"
Date:
Subject: Re: Is there a meaningful benchmark?