send query in background

Поиск
Список
Период
Сортировка
От Franz Timmer
Тема send query in background
Дата
Msg-id 44c27f2a-d010-fb71-5410-359f75475660@ft-c.de
обсуждение исходный текст
Список pgsql-sql
hallo,

I have one pg function (a long running sql query), it is running few 
minutes. I start it from webserver via PHP.

My question: Is there a possibility, that this function runs in 
background. PG send back a immidiately return and do the work after this 
answer.

like linux/bash commands with an ampersand "&" at the and of the line. 
The user get a prompt and can prozess his work.

When the user push the button on the website to start the sql-script, he 
can process his work.

I work with v11.8, but it is possible to update to v12.
(google found some answers, but these a 10 years old)

Franz



В списке pgsql-sql по дате отправления:

Предыдущее
От: p.sun.fun@gmail.com
Дата:
Сообщение: Re: libpq CREATE DATABASE operation from multiple treads
Следующее
От: ml@ft-c.de
Дата:
Сообщение: send query in background