I have a directory with at least 6 function files.
I'm using psql and I need to be able to source (initialize ?) all function files at once.
I'm sure making a single function and call all others like SELECT fn1, fn2
isn't going to work.
Doing \i functions_folder/fn1.sql
6 times isn't ideal either.
So is there a way I can (maybe) \i functions/*.sql
? Doing that currently gives me
functions/*.sql: No such file or directory
I'm using psql on postgresql 9.6.2