I'm not much familiar with postgresql. I like to setup postgres application_name feature to log database changes (update/delete) in a history table.
I tried to find any help from online but couldn't find any article with basic steps. Could someone give me any kind of help.
Thanks alot!
Using a application_name is great idea. It has a two steps:
log_line_prefix = '%a %u %d'
SET application_name = 'myapp';or
postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myappor
PGAPPNAME=splunk psql -c "select application_name from pg_stat_activity where pid = pg_backend_pid();" postgres
some documentation