From: | <adnandursun(at)asrinbilisim(dot)com(dot)tr> |
---|---|
To: | Neil Conway <neilc(at)samurai(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Feature freeze date for 8.1 |
Date: | 2005-05-02 08:52:40 |
Message-ID: | web-95990465@mail3.doruk.net.tr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
On Mon, 02 May 2005 12:05:45 +1000
Neil Conway <neilc(at)samurai(dot)com> wrote:
>adnandursun(at)asrinbilisim(dot)com(dot)tr wrote:
>> statement_timeout is not a solution if many processes
>are
>> waiting the resource.
>
>Why not?
Imagine a process locked some rows to update and process
codes like that ;
-- Sample Client Codes here :
1. Start a Transaction
2. Set statement_timeout to 10000 or any value..
3. Update the rows
* after update is completed the connection was lost
and now commit keyword couldnt be sent
4. send commit to postgresql
Above, because "update" is completed the
statement_timeout is not effected anymore to cancel
query..And others processes that waits same resources /
rows are waiting now...
>I think the only problem with using statement_timeout for
>this purpose is that the client connection might die
>during a long-running transaction at a point when no
>statement is currently executing. Tom's suggested
>transaction_timeout would be a reasonable way to fix this.
>Adnan, if you think this is such a significant problem (I
>can't say that I agree), I'd encourage you to submit a
>patch.
Ok Neil, a transaction_timeout parameters solve this, but
this is worst case.. some ppl uses MSADO conneciton
component and ADO conneciton has an attributes that send
"start transaction" after a commit or sends "start
transaction" after a rollback so, evertime has a
transaction on conneciton / session..
Adnan DURSUN
ASRIN Bilişim Hiz.Ltd.
From | Date | Subject | |
---|---|---|---|
Next Message | adnandursun | 2005-05-02 08:58:04 | Re: Feature freeze date for 8.1 |
Previous Message | Oliver Jowett | 2005-05-02 08:49:07 | Re: Feature freeze date for 8.1 |
From | Date | Subject | |
---|---|---|---|
Next Message | adnandursun | 2005-05-02 08:58:04 | Re: Feature freeze date for 8.1 |
Previous Message | Oliver Jowett | 2005-05-02 08:49:07 | Re: Feature freeze date for 8.1 |