Re: Patch: Force Primitives
От | Nicholas White |
---|---|
Тема | Re: Patch: Force Primitives |
Дата | |
Msg-id | CA+=vxNZYNgYQFAr0GJFWOqJp89dr=WejYuOGm10Ni+tG-yY3Dg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Patch: Force Primitives (Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>) |
Ответы |
Re: Patch: Force Primitives
|
Список | pgsql-jdbc |
> So another patch for that would be nice.
I've attached a patch that fixes setPrepareThreshold; previously setting the threshold to n would mean the n+1th query would be the first binary one, and setting it to zero meant the binary protocol would never be used. This means the first query of a statement could never use the binary protocol. The patch makes setting the threshold to n mean the nth query is binary, so setting it to 1 would make the first query use the binary protocol. The patch includes some test cases that demonstrate this.
> The discussion got stuck on weather updates with feature flags, adding a minor version number to the protocol or just wait for pg 10 to break the protocol is the correct way to go forward.
Nick
Вложения
В списке pgsql-jdbc по дате отправления: