From: pgsql-general-owner@xxxxxxxxxxxxxx [mailto:pgsql-general-owner@xxxxxxxxxxxxxx]
On Behalf Of Alexander Farber Hello fellow pgsql users, I am programming a word game backend in PL/pgSQL and have already reached a point, where (too) many stored functions are declared in a single file words.sql: 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? The "EXEC SQL INCLUDE" described at
http://www.postgresql.org/docs/9.5/static/ecpg-preproc.html seems to be something different? Regards Alex Psql directive \i – is your friend. In your words.sql: \i words_hash \i words_join_new_game \i … Regards, Igor Neyman |