If you have found PostHistory.xml you already have everything you need.
The initial body revision will be the rows with posthistorytypeid = 2 and any subsequent revision will be posthistorytypeid = 5 or posthistorytypeid = 8 for a rollback. The text column will contain the actual revision text.
To get the difference between two revisions in time for a specific post you can use the following query:
;with rev(pid, id, bid) as
(
select top 1000
ph.postid pid
, ph.id id
, -1 bid
from posthistory ph
where ph.posthistorytypeid = 2 -- initial body
union all
select phr.postid
, phr.id
, fr.id
from posthistory phr
inner join rev fr on fr.pid = phr.postid
where phr.posthistorytypeid in (5,8) -- revision, rollback
and phr.id > fr.id
)
, revall as (
select pid as postid
, bid as baseid
, min(id) as nextid
from rev
group by pid, bid
)
select revall.postid as [Post Link]
, len(phnext.text) - len(phbase.text) [diff]
from revall
inner join posthistory phbase on revall.baseid = phbase.id
inner join posthistory phnext on revall.nextid = phnext.id
where revall.postid = 52238064
and baseid <> -1
order by baseid
When run today your output will be similar to this:
The top 1000 in the first query is to reduce the result set a lot as I'm only allowed 2 minutes of processing. If you run this on your own database, leave out the top 1000 and grab a coffee.
I assume you've found Database schema documentation for the public data dump and SEDE that contains the datadictionary for the xml files found in the datadump as well as the online SEDE.