| От | Scott Marlowe |
|---|---|
| Тема | Re: persistent db connections in PHP |
| Дата | |
| Msg-id | 467A9A23.2020100@g2switchworks.com обсуждение исходный текст |
| Ответ на | Re: persistent db connections in PHP (Raymond O'Donnell <rod@iol.ie>) |
| Список | pgsql-general |
Raymond O'Donnell wrote: > > lawpoop@gmail.com wrote: >> However, with this new Postgres site, I don't have access to my temp >> tables after I've traversed another pg_connect. So PHP is either >> creating a new connection, or giving me another session, not the one >> which I created my tables in. > > You wouldn't expect to be given back the same connection (and hence > the same temp tables) from a pool of connections - they're returned > randomly. > > Scott Marlowe wrote: >> MySQL reuses old connections within the same script. PostgreSQL's >> php extension does not, it starts a new connection each time. > > Isn't pg_pconnect supposed to recycle a pooled connection? I wasn't speaking of pg_pconnect. I was speaking of mysql_connect and pg_connect.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера