Re: Reporting errors inside plpgsql/SPI queries

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Reporting errors inside plpgsql/SPI queries
Date: 2004-03-21 18:46:31
Message-ID: 405DE307.6040309@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Although this is quite reasonable for queries submitted by
> user-written C functions, I'm worried that plpgsql programmers will
> be confused because they've never heard of SPI. I toyed with saying
> "SQL query" instead, but that seems pretty nearly content-free ... it
> doesn't distinguish these queries from ones submitted directly by the
> client. Can anyone think of a better wording?

"Embedded query"?

> Does this bother people enough to justify hacking the SPI interface
> to allow a label to be passed in?

That may be the only way to have the message make sense in all contexts.

Joe

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Seymour 2004-03-21 20:49:14 Re: [HACKERS] 7.4.2 Build broken on (Sparc) Solaris 7 and 8
Previous Message Andrew Dunstan 2004-03-21 18:16:00 Re: [HACKERS] listening addresses