Re: Including SQL files

From: Victor Yegorov <vyegorov(at)gmail(dot)com>
To: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Including SQL files
Date: 2016-03-21 14:50:41
Message-ID: CAGnEbohPqmuPXhAAG12xVsuv7Mru37GhUPeXMst_EUYViG2vHQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2016-03-21 16:42 GMT+02:00 Alexander Farber <alexander(dot)farber(at)gmail(dot)com>:

> I would prefer to have every stored function in a separate file (which
> would make reading git history easier too) and include them from words.sql.
>
> Is there such a thing for PostgreSQL 9.5.1 available please and if not -
> could you share your approaches here?
>

If you're processing your files with Postgres' `psql` tool, you can use
`\i` directive to include other files.

--
Victor Y. Yegorov

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2016-03-21 14:56:25 Re: Including SQL files
Previous Message Igor Neyman 2016-03-21 14:49:33 Re: Including SQL files