How to get a row, and all of it’s dependencies?

This question was asked at least twice on some support channel. Getting a row is trivial: select * from table where id = ?. But what about dependencies – the rows that this exported row references?

Decided to take a look at this task.

Continue reading How to get a row, and all of it's dependencies?

Now you can \d table not only in psql :)

Whenever people look for help with queries, one of the first things that I ask is: what is \d of the table.

Which works great, with the caveat, that the person on the other end must be somewhat familiar with psql. And quite often it's not the case.

So I figured, I can try to fix it.

Continue reading Now you can \d table not only in psql 🙂