Message-ID: From: "vlsi (@vlsi)" To: "pgjdbc/pgjdbc" Date: Thu, 12 Jun 2025 09:53:00 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #3657: perf: cache composite and simple subqueries In-Reply-To: References: List-Id: X-GitHub-Author-Login: vlsi X-GitHub-Comment-Id: 2965939718 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-2965939718 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 https://github.com/pgjdbc/pgjdbc/issues/345