pgjdbc/pgjdbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: vlsi (@vlsi) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: Re: [pgjdbc/pgjdbc] PR #3705: feat: default query timeout property
Date: Tue, 12 Aug 2025 13:48:11 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

It is a new connection property so the users could configure "global query timeout" for their connection pools. It is somewhat related to `socketTimeout`.

At the same time, when it comes to naming, it looks like we don't use `default...` prefix often (the only property is `defaultRowFetchSize`).
It might be a good idea to go for `queryTimeout` naming, so it becomes the same property at different levels:
* connection pool level via "`queryTimeout` connection property"
* `java.sql.Connection` level via `PGConnection#setQueryTimeout(int)` (I'm not sure it exists now)
* `java.sql.Statement` level via `Statement#setQueryTimeout(int)`

view thread (19+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: github://pgjdbc/pgjdbc
  Cc: [email protected], [email protected]
  Subject: Re: [pgjdbc/pgjdbc] PR #3705: feat: default query timeout property
  In-Reply-To: <<[email protected]>>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox