Message-ID: From: "ilovethebeatles (@ilovethebeatles)" To: "pgjdbc/pgjdbc" Date: Sat, 21 Jun 2025 18:18:52 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #3657: perf: cache composite and simple subqueries In-Reply-To: References: List-Id: X-GitHub-Author-Login: ilovethebeatles X-GitHub-Comment-Id: 2993707986 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 3657 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3657#issuecomment-2993707986 Content-Type: text/plain; charset=utf-8 > Please add a test that verifies a case when client uses different bind types for "the same" statement. > > For example: > > ```java > String sql = "select * from inttable where a = ?;select * from inttable where a = ?;select * from inttable where a = ?"; > ... > ps.setInt(1, 42); ps.setString(2, "43"); ps.setDouble(3, 44.0); > ``` > > The execution plan might depend on the result shape, so we can't easily reuse server-side handles by looking at the SQL alone. > > We might be looking at #345 Added test for this case