Re: Including SQL files - Mailing list pgsql-general

From Victor Yegorov
Subject Re: Including SQL files
Date
Msg-id CAGnEbohPqmuPXhAAG12xVsuv7Mru37GhUPeXMst_EUYViG2vHQ@mail.gmail.com
Whole thread Raw
In response to Including SQL files  (Alexander Farber <alexander.farber@gmail.com>)
Responses Re: Including SQL files  (Alexander Farber <alexander.farber@gmail.com>)
List pgsql-general
2016-03-21 16:42 GMT+02:00 Alexander Farber <alexander.farber@gmail.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

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Including SQL files
Next
From: Adrian Klaver
Date:
Subject: Re: Including SQL files