Skip site navigation (1) Skip section navigation (2)

Re: Send a command to postgres and close the program

From: Fabien Jalabert <fabien(dot)jalabert(at)laposte(dot)net>
To: Thiago Godoi <thiagogodoi10(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Send a command to postgres and close the program
Date: 2010-09-08 12:09:27
Message-ID: 4C877CF7.4040506@laposte.net (view raw or flat)
Thread:
Lists: pgsql-jdbc
There is nothing that allows it on JDBC in my mind. Perhaps something on 
PG that could launch background task ?

There are perhaps two workarounds :
- on linux/unix, detach the process from console or launch process that 
the user should not own (because I believe user when disconnects close 
its process)
- your command  push a command in a queue in a table and a trigger pop 
this instruction...or using cron  features perhaps ...


Thiago Godoi a écrit :
> Hello guys,
>
> I'm doing a program that will send a command to the database but the 
> execution of this command spends a lot of time and client probably 
> will close the java program .
>
> The problem is that I need the command continue running after the 
> client close the program.
>
> I'm thinking about send the query to the postgres and close the 
> connection .Is possible do it without stop the command ? How can I do it?
>
> Another ideas?
>
> Thanks
>
>
> -- 
> Thiago Godoi
>


In response to

pgsql-jdbc by date

Next:From: Boris FolgmannDate: 2010-09-08 19:21:06
Subject: Bug in ResultSet.deleteRow() implementation
Previous:From: Thiago GodoiDate: 2010-09-08 12:01:41
Subject: Send a command to postgres and close the program

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group