Re: [HACKERS] Command counter increment vs updating an active snapshot

2012-04-13 Thread Tom Lane
Ozgun Erdogan writes: > (1) What's the difference between advancing the command counter and > updating an active snapshot? For example, I see that DefineRelation() > increments the command counter, but explain.c / copy.c explicitly > calls UpdateActiveSnapshotCommandId(). Is that because the latte

[HACKERS] Command counter increment vs updating an active snapshot

2012-04-13 Thread Ozgun Erdogan
Hi all (re-posting from pgsql-general), I'm looking into Postgres' internals, and had two quick questions that relate to each other. (1) What's the difference between advancing the command counter and updating an active snapshot? For example, I see that DefineRelation() increments the command cou