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

pcntl_fork() and database concurrency

From: Andre Lopes <lopes80andre(at)gmail(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: pcntl_fork() and database concurrency
Date: 2010-04-23 09:09:57
Message-ID: x2h18f98e681004230209z78a290f0t6019bdc43a644c23@mail.gmail.com (view raw or flat)
Thread:
Lists: 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,

Responses

pgsql-php by date

Next:From: Andrew McMillanDate: 2010-04-23 09:24:48
Subject: Re: pcntl_fork() and database concurrency
Previous:From: Steve.ToutantDate: 2010-03-30 13:20:20
Subject: Re: launch a php script from a trigger function

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