Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Postgres trigger errors [on hold]

$
0
0

I have a website and i am using postgresql.

i have 2 ec2 servers 1 is running the django website and live database(db1) postgresql and other server has only postgresql database(db2).

i have implemented triggers from db1 to db2 via dblink (db1 and db2 has same structure).

All the triggers are after insert/update in db1.So whenever my second server goes down or if the table is deleted from db2 or if there is change in column name on db2 my website gives dblink error when any operation happens on website to live database tables(db1).

Is there any way to get rid of these errors.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>