Re: default result formats setting

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: default result formats setting
Дата
Msg-id CADK3HHJJUvLUC-kvVJYuEsyR8ucVtOsHDHudDcyWmxvdx2aefQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: default result formats setting  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers


On Sun, 7 Aug 2022 at 09:58, Robert Haas <robertmhaas@gmail.com> wrote:
On Wed, Mar 24, 2021 at 12:01 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I don't think I buy the premise that there are exactly two levels
> on the client side.

Thanks for sharing your thoughts on this. I agree it's a complex
issue, and the idea that there are possibly more than two logical
levels is, for me, maybe your most interesting observation.

--
Robert Haas
EDB: http://www.enterprisedb.co

I'd like to revive this thread.

I have put in a patch to do the same thing.

Upthread Tom mused about how the JDBC driver would handle it. I can tell you that it handles it fine with no changes as does the go driver. Further as Jack pointed out it provides significant performance benefits.

The original discussion correctly surmises that the DESCRIBE statement is rarely (if ever) used as any advantages of sending are nullified by the cost of sending it.

I prefer the GUC as this allows pools to be configured to reset the setting when returning the connection to the pool and setting it correctly for the client when borrowing the connection.

Regards,

Dave

 

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

Предыдущее
От: Marcos Pegoraro
Дата:
Сообщение: bug on log generation ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: bug on log generation ?