Re: Killing process through of a function

From: "alexandre::aldeia digital" <alepaes(at)aldeiadigital(dot)com(dot)br>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Killing process through of a function
Date: 2005-02-18 12:05:25
Message-ID: 4215DA05.5010202@aldeiadigital.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Michael,

The software was generated by a CASE tool (genexus) and it's does not
permit any modification.

IBM DB2 have functions that allow the DBA to disconnect some clients.
This is very usefull for database maintenance without giving a shell to him.

VACUUM FULL is other "application" thats needs to run "isolated", and a
function to kill anybody is very usefull.

Thanks for your help.

Alexandre

> Functions written in C, PL/Perl, PL/Tcl, etc., can use whatever
> facilities those languages provide, such as sending signals to
> processes. Whether that's a good idea is another matter.
>
>>Sometimes, the java program that our company uses stay in "idle in
>>transaction" and every day, I need to import a text data to some tables
>>in DB.
>>This import make a TRUNCATE in this tables and I need to kill the
>>remaining process before execute this, to avoid the lock wait.
>
>
> Why does the Java program stay idle while it's in a transaction?
> Are you able to fix the application? If it's not doing anything
> then it should probably COMMIT or ROLLBACK its transactions to
> release any locks they hold.
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Roman Neuhauser 2005-02-18 12:18:17 recent buffer overruns in plpgsql
Previous Message Bob Hartung 2005-02-18 11:53:44 Alternate DB location continued.