Re: [HACKERS] Upgrading the backend's error-message infrastructure

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: [HACKERS] Upgrading the backend's error-message infrastructure
Дата
Msg-id 03AF4E498C591348A42FC93DEA9661B8259DDA@mail.vale-housing.co.uk
обсуждение исходный текст
Список pgsql-interfaces

> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
> Sent: 18 March 2003 14:45
> To: Peter Eisentraut
> Cc: pgsql-hackers@postgresql.org; pgsql-interfaces@postgresql.org
> Subject: Re: [HACKERS] [INTERFACES] Upgrading the backend's 
> error-message infrastructure 
> 
> 
> I think this is a matter to be solved at the level of the API 
> of each client library.  For example, libpq's PQerrorMessage 
> would presumably construct some unified string out of these 
> three fields and the error severity; plus we'd add new calls 
> to extract the individual fields. I do not think it's 
> appropriate to try to control this from the server side of things.

I agree. It's trivial for ODBC/JDBC etc to concatenate a few strings,
and the flexibility gained by interfaces such as libpq that don't have a
spec to follow would be very welcome (here at least!).

Regards, Dave.

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

Предыдущее
От: Sheshu
Дата:
Сообщение: esql problem
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: plpython problem.