Re: JDBC, prepared queries, and partitioning
От | Stephen Denne |
---|---|
Тема | Re: JDBC, prepared queries, and partitioning |
Дата | |
Msg-id | F0238EBA67824444BC1CB4700960CB4804A4F75D@dmpeints002.isotach.com обсуждение исходный текст |
Ответ на | Re: JDBC, prepared queries, and partitioning (Oliver Jowett <oliver@opencloud.com>) |
Список | pgsql-jdbc |
Oliver Jowett wrote > Instead, we could change that so that whenever a Bind for the unnamed > statement is received, the query is replanned. I like the idea. A while back I investigated whether partitioning would be helpful in my circumstance, and the inability to get the queryplans I was expecting was one of the reasons I didn't make use of it. I had other reasons why I didn't chose to use partitioning, which would probably mean that even with this change I stillwouldn't use partitioning. However I would be able to make good use of such a change if, for example, I'd be able to use indexes for parameterised LIKEexpressions. > are there > actually clients that reuse the unnamed statement in use, and would they > be badly affected by this change? If such clients exist, then yes they would be. At the least, they'd start getting poorer performance due to repeated planning. At worst, they may be desiring to reuse the plan generated by the first bind. But with a bit more work, this could be new behaviour that defaults to the existing process unless a configuration variableis set. Is this the kind of change that could go into an 8.3.1 release or would it have to wait till 8.4? Stephen Denne. Disclaimer: At the Datamail Group we value team commitment, respect, achievement, customer focus, and courage. This email with any attachmentsis confidential and may be subject to legal privilege. If it is not intended for you please advise by reply immediately,destroy it and do not copy, disclose or use it in any way. __________________________________________________________________ This email has been scanned by the DMZGlobal Business Quality Electronic Messaging Suite. Please see http://www.dmzglobal.com/services/bqem.htm for details. __________________________________________________________________
В списке pgsql-jdbc по дате отправления: