Re: migration problem - Mailing list pgsql-general

From Tom Lane
Subject Re: migration problem
Date
Msg-id 27010.1211041659@sss.pgh.pa.us
Whole thread Raw
In response to Re: migration problem  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-general
Craig Ringer <craig@postnewspapers.com.au> writes:
> That function hits the database repeatedly. If the problem is in fact
> with a database query that it's generating you need to determine which
> one. You could step through the function with a PHP debugger or just
> insert log/printing statements in the function so you can see its progress.

Even easier, turn on query logging (log_statement = all), run the
function, and then look in the postmaster log to see what happened.

7.3 is a long time back, and I wouldn't be surprised if you are hitting
some compatibility issues in trying to make the jump to 8.3 in one step.
It's hard to tell what though ... I don't find that PHP code very
readable.

            regards, tom lane

pgsql-general by date:

Previous
From: iSteve
Date:
Subject: tsearch2 on-demand dictionary loading & using functions in tsearch2
Next
From: Craig Ringer
Date:
Subject: Re: writing a function without installing a language