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

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How do I 'include' a stored procedure in a SQL script file
Date: 2009-01-07 12:47:23
Message-ID: 20090107124723.GC20156@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message yogvinder 2009-01-07 14:07:02 RCA for MemoryContextAlloc: invalid request size(Known Issue)
Previous Message Serge Fonville 2009-01-07 12:41:43 Re: How do I 'include' a stored procedure in a SQL script file