PushActiveSnapshot(GetTransactionSnapshot())

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: PushActiveSnapshot(GetTransactionSnapshot())
Date: 2011-08-21 19:23:39
Message-ID: CA+U5nMKu9pU3fzTvJ1EfThBQ530VotmdNrn_DD_X7+nZ3f7tdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In common cases of snapshot use we run GetSnapshotData() into a
statically allocated snapshot, then immediately copy the static struct
into a dynamically allocated copy.

The static allocation was designed to remove the overhead of dynamic
allocation, but then we do it anyway.

The snapmgr code does this explicitly, but the reason isn't
documented, it just says we must do this.

Any one say why?

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-08-21 21:38:52 Re: the big picture for index-only scans
Previous Message Dimitri Fontaine 2011-08-21 16:22:53 Re: Question: CREATE EXTENSION and create schema permission?