From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | Vadim Mikheev <vadim(at)krs(dot)ru> |
Cc: | Philip Warner <pjw(at)rhyme(dot)com(dot)au>, pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Re: [SQL] inserts/updates problem understressing ! |
Date: | 1999-07-26 06:28:57 |
Message-ID: | Pine.GSO.3.96.SK.990726102612.10884C-100000@ra |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
On Mon, 26 Jul 1999, Vadim Mikheev wrote:
> Date: Mon, 26 Jul 1999 10:50:28 +0800
> From: Vadim Mikheev <vadim(at)krs(dot)ru>
> To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
> Cc: pgsql-hackers(at)postgreSQL(dot)org, pgsql-sql(at)postgreSQL(dot)org,
> Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
> Subject: Re: [HACKERS] Re: [SQL] inserts/updates problem understressing !
>
> Philip Warner wrote:
> >
> > The usual way around this sort of problem is to update the counter as the
> > first thing you do in any transaction. This locks the row and prevents any
> > possible deadlock:
>
> But if there was no record then nothing will be locked...
> Without ability to read dirty data LOCK is the only way.
>
I agree, no data, no locking.
> ...
>
> > diagnostics' is not yet applied (I may not have mailed it yet...), and I am
> > not sure if plpgsql starts a new TX for each statment - if so, you need to
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> It doesn't.
>
> > start a TX in the procedure, or prior to valling it.
How do I start a TX in the procedure ? Is't possible ?
I don't understand this because a procedure must return something, so
there're no point where to end a TX.
Oleg
>
> Vadim
>
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | Oleg Bartunov | 1999-07-26 06:49:11 | Re: [SQL] inserts/updates problem under stressing ! |
Previous Message | Vadim Mikheev | 1999-07-26 06:26:06 | Re: [SQL] inserts/updates problem under stressing ! |
From | Date | Subject | |
---|---|---|---|
Next Message | Oleg Bartunov | 1999-07-26 06:49:11 | Re: [SQL] inserts/updates problem under stressing ! |
Previous Message | Molnar Laszlo | 1999-07-26 06:28:48 | LEFT JOIN and ODBC |