![]() |
pg_pconnect not found - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: pg_pconnect not found (/showthread.php?tid=76655) |
pg_pconnect not found - richb201 - 06-06-2020 I am getting an error when postgre_driver.php tries to call pg_pconnect() (on line 153). Why would pg_pconnect not be found? I have copied the command from the php.net manual below. The correct dsn is being retrieved from database.php, btw. pg_pconnect (PHP 4, PHP 5, PHP 7) pg_pconnect — Open a persistent PostgreSQL connection Description ¶ pg_pconnect ( string Code: $connection_string Code: $connect_type pg_pconnect() opens a connection to a PostgreSQL database. It returns a connection resource that is needed by other PostgreSQL functions. RE: pg_pconnect not found - richb201 - 06-12-2020 solved it. Turns out that I needed to load pg driver inside the container. |