Re: Reporting errors inside plpgsql/SPI queries

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Reporting errors inside plpgsql/SPI queries
Дата
Msg-id 405DE307.6040309@joeconway.com
обсуждение исходный текст
Ответ на Reporting errors inside plpgsql/SPI queries  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Reporting errors inside plpgsql/SPI queries  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Syntax error reporting (was Re: [PATCHES] syntax error position "CREATE FUNCTION" bug fix)
Следующее
От: jseymour@LinxNet.com (Jim Seymour)
Дата:
Сообщение: Re: 7.4.2 Build broken on (Sparc) Solaris 7 and 8