var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Finding dependant tables
If I have 2 tables Employee -> User. Employee has a a foreign key called user_id that references user_id in User.
What query could I use using the system catalogs to determine any table that would depend on User?
So that if I passed User, I would get Employee.
I found it:
To get the amount of dependancies for a table called 'user':
select count(*) from pg_trigger where tgtype = 21 and tgconstrrelid in (select oid from pg_class where relname = 'user');