From: | "Igor Neyman" <ineyman(at)perceptron(dot)com> |
---|---|
To: | Rok Jaklič <rokj(at)rasca(dot)net>, pasman pasmański <pasman(dot)p(at)gmail(dot)com>, "pgsql-sql" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: After insert trigger and select |
Date: | 2011-02-17 16:37:30 |
Message-ID: | F4C27E77F7A33E4CA98C19A9DC6722A20727EBD7@EXCHANGE.corp.perceptron.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> -----Original Message-----
> From: Rok Jaklič [mailto:rokj(at)rasca(dot)net]
> Sent: Wednesday, February 16, 2011 5:35 PM
> To: pasman pasmański; pgsql-sql
> Subject: Re: After insert trigger and select
>
> On 02/16/2011 08:46 PM, pasman pasmański wrote:
> >> If I have after insert trigger on some table which updates
> some data
> >> in that same table, will be the select statement from some other
> >> client executed after all statements in that trigger?
> >>
> > select statement is fired before commit ?
> > ------------
> > pasman
> For example let us say that trigger takes a long time to end.
> Are all statements in trigger executed before select from
> "outside" if select is called somewhere between executing of
> the trigger?
>
With MVCC "writers" don't block "readers", and "readers" don't block "writers".
Read PG docs on MVCC.
Regards,
Igor Neyman
From | Date | Subject | |
---|---|---|---|
Next Message | bricklen | 2011-02-17 19:21:47 | Re: ARRAY_AGG and COUNT |
Previous Message | Andreas Forø Tollefsen | 2011-02-17 14:20:10 | ARRAY_AGG and COUNT |