Mmm, what do you mean by postgres code ? Are we talking here about the postgres source code or SQL ? If it's the source code, that's beyond my knowledge, sorry. The pgsql-hackers list may be a better fit for what you're looking for, or perhaps pgsql-general
I am looking for a way to get the relation name from the relid or RelOptInfo data structure. Can anyone help me with this ? How can I use these to get to relation name ?