Re: Transactions to create pg_multixact members and offsets - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Transactions to create pg_multixact members and offsets
Date
Msg-id 20141120194446.GL1639@alvin.alvh.no-ip.org
Whole thread Raw
In response to Re: Transactions to create pg_multixact members and offsets  (Dev Kumkar <devdas.kumkar@gmail.com>)
Responses Re: Transactions to create pg_multixact members and offsets  (Dev Kumkar <devdas.kumkar@gmail.com>)
List pgsql-general
Dev Kumkar wrote:
> On Thu, Nov 20, 2014 at 11:15 PM, Alvaro Herrera <alvherre@2ndquadrant.com>
> wrote:

> > Merely waiting does not, but more than one lock being acquired on a
> > tuple does cause a multixact to be created.  Try SELECT FOR SHARE on two
> > transactions on the same tuple.
>
> Sure.
> Also what if there are only inserts/updates which transaction have and
> there are no explicit select queries?

If there are foreign keys on the tables, the system internally runs some
SELECT FOR KEY SHARE queries on the referenced tables (the ones
containing the primary or unique keys).  You can get some multixacts
that way too.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: better architecture?
Next
From: zach cruise
Date:
Subject: Re: better architecture?