Hi, welcome to LQ!
so basically I want to insert sql statments into Time.conf which would get the time from a table.
And that won't fly; the only way I see to go about it is to write
a trigger within postgres using an "unsafe" language, e.g.: Pl/Peru
and use that to modify the text file. Trying to get PAM to READ
a database would be way more complex.