Skip site navigation (1) Skip section navigation (2)

What is syntax to use \i to include files?

From: Francisco Reyes <lists(at)natserv(dot)com>
To: Pgsql Novice <pgsql-novice(at)postgresql(dot)org>
Subject: What is syntax to use \i to include files?
Date: 2001-09-06 14:21:25
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
I have a file I want to read into psql using \i.
I had done it in the past but today I am getting "No such file or
directory" no matter what I try.

For instance I even tried copying my script file to /tmp and doing "\i
/tmp/". Still got the No such file... error.

Do include files need to be in a particular directory?

pgsql-novice by date

Next:From: Francisco ReyesDate: 2001-09-06 16:08:01
Subject: Importing an ASCII file
Previous:From: Oliver ElphickDate: 2001-09-06 06:42:15
Subject: Re: avg() from multiple columns

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group