Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



An .sql file is just a list of sql you can just as well enter when running psql.
If you had the psql prompt open, what would you type to execute the commands in an .sql file, limited to 'true' sql and not psql specific commands

If you know that you know which lines to add to the .sql file

Hope this helps

Regards,

Serge fonville

On Wed, Jan 7, 2009 at 12:41 PM, Donna Rudd <donna@xxxxxxxxxxxxxx> wrote:
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!


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux