I want to build a trigger in postgresql that will fire when the server starts.
In Oracle I can use
CREATE TRIGGER iii AFTER STARTUP ON DATABASE
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. Postgres triggers can only fire when a query is run against a table
As a kludge, you might be able to find a table that’s modified in certain way at database startup (perhaps there’s an INSERT to some system table?) but depending on this would be a hack.