is there a book/documents about DB internals ? I have found some books about theory but not about an actual implementation.
So for example if you need to know how indexes in PostgreSQL work, look into the READMEs in the proper directory:
b-tree indexes: https://github.com/postgres/postgres/blob/master/src/backend...
gin: https://github.com/postgres/postgres/blob/master/src/backend...
brin: https://github.com/postgres/postgres/blob/master/src/backend...
etc. The READMEs also include links to related papers etc.
but Thanks for your links !
It doesn't go into a lot of relational theory, but it does provide a somewhat low-level description on how indices and database data are stored, and why you want to use different kind of indices in different scenarios.