Re: How do I 'include' a stored procedure in a SQL script file - Mailing list pgsql-general

From A. Kretschmer
Subject Re: How do I 'include' a stored procedure in a SQL script file
Date
Msg-id 20090107124723.GC20156@a-kretschmer.de
Whole thread Raw
In response to How do I 'include' a stored procedure in a SQL script file  ("Donna Rudd" <donna@therudds.co.uk>)
Responses Re: How do I 'include' a stored procedure in a SQL script file
List 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 by date:

Previous
From: "Serge Fonville"
Date:
Subject: Re: How do I 'include' a stored procedure in a SQL script file
Next
From: yogvinder
Date:
Subject: RCA for MemoryContextAlloc: invalid request size(Known Issue)