Re: PL/pgSQL

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: PL/pgSQL
Дата
Msg-id 20051203034837.GA37350@winnie.fuhr.org
обсуждение исходный текст
Ответ на PL/pgSQL  (Jim Beckstrom <jrbeckstrom@sbcglobal.net>)
Список pgsql-novice
On Fri, Dec 02, 2005 at 04:21:12PM -0800, Jim Beckstrom wrote:
> Is there a way to import PL/pgSQL modules that are created outside
> of Postgres into a Postgres database?

Whatever client you're using should allow you to import commands
from a file.  For example, if you're using psql you could pipe or
redirect standard input or use the -f option:

some_command | psql
psql < filename
psql -f filename

You can also import a file from the psql prompt:

\i filename

For more information see the psql documentation or the documentation
for whatever client you're using.  If that doesn't help then please
be more specific about what you're trying to do.

--
Michael Fuhr

В списке pgsql-novice по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Re: saving a query and reults to a file.
Следующее
От: Viva Chu
Дата:
Сообщение: Install 8.1 on Mac OS 10.4