Re: Why does exec_simple_query requires 2 snapshots - Mailing list pgsql-hackers

From Andy Fan
Subject Re: Why does exec_simple_query requires 2 snapshots
Date
Msg-id 87jz9mbuyq.fsf@163.com
Whole thread Raw
In response to Re: Why does exec_simple_query requires 2 snapshots  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Why does exec_simple_query requires 2 snapshots
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Andy Fan <zhihuifan1213@163.com> writes:
>> My question is why can't we share the same snapshot for the 2 cases?
>> parser & planner requires Catalog Snapshot which should be the 
>> latest one, but in the above case, looks the executor can reuse it as
>> well. Is there anything I missed?
>
> Many years ago, we committed a patch to do exactly that.  We had
> to back it out again because it broke too many real-world scenarios.
> I'm too lazy to search the archives for you, but you might be able
> to find the commit and revert by searching the git history.
>
>             regards, tom lane

Commit id is 532994299e2, thank you Tom!

-- 
Best Regards
Andy Fan




pgsql-hackers by date:

Previous
From: wenhui qiu
Date:
Subject: Re: [Feature Request] INSERT FROZEN to Optimize Large Cold Data Imports and Migrations
Next
From: Richard Guo
Date:
Subject: Re: Unsafe access BufferDescriptors array in BufferGetLSNAtomic()