Re:

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dan Langille" <dan(at)langille(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re:
Date: 2003-09-28 20:14:44
Message-ID: 10977.1064780084@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Dan Langille" <dan(at)langille(dot)org> writes:
> However, the results are confusing. I'm getting the wrong number of
> parameters. The value being returned appears to be the value
> supplied. But the log results show an interesting pattern in the
> number of selects being run.

I dunno where the cast() queries are coming from, but note that they're
not your SELECT. You are misunderstanding how the code works if you
expect to see query LOG entries from plpgsql queries. For a
non-EXECUTEd plpgsql command, log_statement will only show the query the
first time it is executed in a session, because that log entry is
generated as a side-effect of parsing and planning.

As a means of tracing the execution of plpgsql functions, log_statement
is pretty worthless :-(. I would like us to develop a full-up tracing
and debugging facility for plpgsql, but we haven't got it yet.

regards, tom lane

In response to

  • Re: at 2003-09-28 20:06:20 from Dan Langille

Browse pgsql-sql by date

  From Date Subject
Next Message Muhyiddin A.M Hayat 2003-09-29 01:20:04 Re: SUM() & GROUP BY
Previous Message Dan Langille 2003-09-28 20:06:20 Re: