Re: How do I 'include' a stored procedure in a SQL script file

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: How do I 'include' a stored procedure in a SQL script file
Дата
Msg-id 20090107124723.GC20156@a-kretschmer.de
обсуждение исходный текст
Ответ на How do I 'include' a stored procedure in a SQL script file  ("Donna Rudd" <donna@therudds.co.uk>)
Ответы Re: How do I 'include' a stored procedure in a SQL script file
Список pgsql-general
In response to Donna Rudd :
> Hi,
> All I want to do is 'include' a stored procedure (contained in another
> script file) into my main PostgreSQL database creation script file so that
> it can get defined/declared before I define my triggers to call it. It seems
> such a simple thing but I don't seem to be able to find any examples or
> documentation. Please help!

Your main script file is executed with psql? You can use \i <other_file>
within your main-file.


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

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

Предыдущее
От: "Serge Fonville"
Дата:
Сообщение: Re: How do I 'include' a stored procedure in a SQL script file
Следующее
От: yogvinder
Дата:
Сообщение: RCA for MemoryContextAlloc: invalid request size(Known Issue)