[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Postgresql-it] Re: [PHP] PHP+PostgreSQL e query asincrone



Ciao,
mi ci sono incontrato per sbaglio, cercavo un'altra cosa
Non l'ho mai provato

Ciao
LWO

bool pg_send_query ( string query)

pg_send_query() send asynchronous query to the connection. Unlike pg_query(), it can send multiple query to PostgreSQL and get the result one by one using pg_get_result(). Script execution is not blocked while query is executing. Use pg_connection_busy() to check connection is busy (i.e. query is executing). Query may be canceled by calling pg_cancel_query().

Although user can send multiple query at once, user cannot send multiple query over busy connection. If query is sent while connection is busy, it waits until last query is finished and discards all result.

See also pg_query(), pg_cancel_query(), pg_get_result() and pg_connection_busy()


Ciao a tutti,

Qualcuno di voi ha mai usato le funzioni per eseguire query asincrone su
pgsql?

Cosa succede se lo script termina prima che la query sia stata eseguita
completamente?

Ciao ciao
--
Matteo Beccati
http://www.phpadsnew.com/
http://www.phppgads.com/