Is there an ER diagram floating about anywhere that I'm missing?
K
ER diagram
(Must. Avoid. Making. Bad. Medical. Joke.)
Not that I'm aware of, but Greg would know for sure.
Nope. You could generate one from the source but you'd need a pretty big wall to put it on.
yeah was trying that (big printer is a bigger ask! ;-) - do you recommend a tool to do it? 2 I've tried so far seem to miss the relationships... (I will get the marker pen out but....)
What have you tried so far, out of interest? I've never tried to build one myself. :)
don't think so - when I get to work tomorrow I'll check. But having has a look at the raw 'pg_dump -s' there doesn't seem to be any FKs set (y/n?) which explains the absence of relationships in the diagrams… tbh first postgres DB i've dealt with. Oracle /MSSQL/MySQL experience so may be doing something wrong…
Correct – we don't have any foreign keys in the database (either in PostgreSQL or Oracle).
We cant use foreign keys in the DB because we have IDs of shadow assets (LDAP users, groups etc) that don't exist in the sq_ast table. So we need to do all the integrity work in the code rather than the DB. We use DB transactions to ensure we don't lose data half way through a change.
this was the last one I tried:
http://microolap.com/products/database/postgresql-designer/download/
Works as expected I guess... does get all the tables and draws them out (but without FKs no relationships). I'll get busy with the marker pen ;-)
Cheers