pcntl_fork() and database concurrency

Поиск
Список
Период
Сортировка
От Andre Lopes
Тема pcntl_fork() and database concurrency
Дата
Msg-id x2h18f98e681004230209z78a290f0t6019bdc43a644c23@mail.gmail.com
обсуждение исходный текст
Ответы Re: pcntl_fork() and database concurrency  (Andrew McMillan <andrew@morphoss.com>)
Список pgsql-php
Hi,

I need to write a PHP Script to use with a Crontab. That Crontab will run every 10 minutes.

I should use pcntl_fork() to prevent concurrency in database queries, but I don't have sure how to use this PHP function.

The reason for use this function is to prevent that if the Crontab don't do the Job in 10 minutes, the next Cronjob will not concur with the job in the background that is running.

My question. There are PostgreSQL examples on how to use this function to prevent database concurrency?

Best Regards,

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

Предыдущее
От: Steve.Toutant@inspq.qc.ca
Дата:
Сообщение: Re: launch a php script from a trigger function
Следующее
От: Andrew McMillan
Дата:
Сообщение: Re: pcntl_fork() and database concurrency