Issue closing postgres db connection..



I've got an intriguing issue..I've got no problem initiating a
connection to a postgres database with pg_connect(), with code like:

$dbc = pg_connect("$ip $db $dbid $dbpwd") || die();

...but, if I want to close that connection with pg_close($dbc), I get
the following:

PHP Warning: pg_close(): supplied argument is not a valid PostgreSQL
link resource in..

Clearly this isn't interfering with doing what I intend to do; but
ideally I'd close the connection (I just consider that cleaner). I
can't tell what the issue would be in this case: postgres config?
php.ini? I'm just curious..

Installed: php-5.0.5, postgresql-8.0.4 (IIS/Windows XP). Thank you for
any input..

.



Relevant Pages

  • [SLE] postgresql on SuSE 10
    ... I am trying to config my postgres on SuSE 10 but it does not run ... I want to use tcp/ip connection because I am going to use ... I just installed the postgres and it was installed successfully. ...
    (SuSE)
  • Re: challenging problem for changing to a dedicated non-privileged user within a script.
    ... which gets another uid through sudo. ... K> I will let that subprocess start python inthe background and execute the ... K> Then I will create the connection and cursor objcts in that subprocess. ... However it is still not clear why you want to run under the postgres ...
    (comp.lang.python)
  • Re: Database connection problem on VB6.0
    ... Private autodrs_work As DAO.Workspace ... I don't have a copy of Postgres installed. ... the Postgres through your ODBC connection. ... connection should be visible through the Link wizard. ...
    (microsoft.public.vb.general.discussion)
  • Re: How Common Lisp sucks
    ... | (I am also using postgres) for each request. ... SQL connection takes ~250 ms, ... all SQL accesses during a single HTTP request. ... though I've not yet been forced to work very hard at pooling. ...
    (comp.lang.lisp)
  • Re: [SLE] postgresql on SuSE 10
    ... I am trying to config my postgres on SuSE 10 but it does not run ... I want to use tcp/ip connection because I am going to use ... I just installed the postgres and it was installed successfully. ...
    (SuSE)