Re: PostgresQL or PHP bug?

From: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgresQL or PHP bug?
Date: 2002-09-08 05:48:44
Message-ID: 3D7AE4BC.1000401@mega-bucks.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout wrote:

>I don't see anything obvious but have a look at the rows it is
>considering duplicates. Are they the same list each time? By the way,
>it looks like you're connect()ing once for each query you are
>executing. You should only connect once at the beginning of the
>program.

Unfortunately I didn't check to see if it always outputted the same
items as being duplicates. I would think not but I'll try and check it out.

As for connect()ing once every query, I was under the impression that
PHP would only really connect() the first time, and on subsequent calls
to connect(), if the connect parameters are the same, would just return
the same backend connection.

The connection gets closed only (and automatically) once the PHP script
ends.

But that is only my *understanding* of PHP and connect() I might be
wrong on the implementation might be buggy (very possible).

I'll try connect()ing just once and also seeing if the duplicate items
are the same and report back.

Thanks for having a look, I really appreciate it!

Jc

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2002-09-08 07:13:59 Re: "...integer[] references..." = error
Previous Message Joel Rodrigues 2002-09-08 05:39:18 Re: "...integer[] references..." = error