I am studying ways to implement audit tables to my PostgreSQL database and would like to know if it is possible to make a trigger for the data to be written to a table in a database other than the source database.
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
You can do that with the help of the additional module
You need superuser privileges (in the database cluster where the trigger runs) for some of the involved functionality. Since you want to write to the external database, you will probably want to use Or try a search here for more dblink examples. Note that you cannot |
||||
|