I am green on postgresql, so when reading source code of pg, I am very confused....Is there some useful material on postgresql source code? Thank you.
-
Do you even know how to use PostgreSQL databases in the first place? If not, you're going to have a very hard time understanding the source code.BoltClock– BoltClock2011-11-04 05:40:47 +00:00Commented Nov 4, 2011 at 5:40
-
@BoltClock Eh...I think not. So I have to learn how to use and its internals at the same time to understand the source code quickly to extract some part from pg.....JustQieTry– JustQieTry2011-11-04 05:44:18 +00:00Commented Nov 4, 2011 at 5:44
-
first read the document and use postgresql as often as possible.francs– francs2011-11-04 07:06:03 +00:00Commented Nov 4, 2011 at 7:06
-
7This is not a suitable question here. It shows no effort whatsoever, cannot be answered clearly and is overly broad. A google search would have served you better.Erwin Brandstetter– Erwin Brandstetter2011-11-04 16:45:54 +00:00Commented Nov 4, 2011 at 16:45
4 Answers
There are some nice presentations about some basic concepts like Datum, V1 Functions Calls and source code
http://www.postgresql.org/developer/coding http://www.postgresql.org/files/developer/internalpics.pdf
this master thesis is very good document http://www.ic.unicamp.br/~celio/livrobd/postgres/ansi_sql_implementation_postgresql.pdf
https://www.postgresql.org/docs/current/storage-file-layout.html
Comments
It seems you are also unversed in using the internet!? ;-) First look should be the project homepage http://www.postgresql.org/. There you will find a "Developers" link which directs you to the available resources. One of them is the Developer FAQ which should be more than sufficient for the beginning.
Comments
A useful link can be found here for Postgres 14 Postgres Professional. It discusses about Isolation, MVCC, Buffer Cache, WAL, Locks and Query Execution.
Also refer a 2 day free course here PostgresPro Course