pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedsend/receive buffer size
14+ messages / 7 participants
[nested] [flat]
* send/receive buffer size
@ 2012-08-21 20:53 Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
0 siblings, 1 reply; 14+ messages in thread
From: Shijun Kong @ 2012-08-21 20:53 UTC (permalink / raw)
To: pgsql-jdbc
I read a thread somewhere that somebody contributed a patch for adding support of configurable send/receive buffer size. Did it ever commit into master branch? I did not see any commit message about this change for last 12 months.
__________________________
Shijun Kong
________________________________
This email message and any attachments may contain legally privileged or confidential information intended solely for the use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution or copying of this message or its attachments is strictly prohibited. If you have received this message in error, please notify us immediately by telephone, fax or email and delete the message and all attachments to the message. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Investor Analytics LLC.
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
@ 2012-08-21 23:08 ` Scott Harrington <scotth01@sns-usa.com>
2012-08-24 20:45 ` Re: send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-09-12 00:58 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
0 siblings, 2 replies; 14+ messages in thread
From: Scott Harrington @ 2012-08-21 23:08 UTC (permalink / raw)
To: pgsql-jdbc
On Tue, 21 Aug 2012, Shijun Kong wrote:
> I read a thread somewhere that somebody contributed a patch for adding support of configurable send/receive buffer size. Did it ever commit into
> master branch? I did not see any commit message about this change for last 12 months.
I wondered the same last weekend and found that the patch had NOT yet
found its way into pgjdbc on github. In case it helps you, I've attached
that old patch in a form that should apply cleanly against the latest
sources (unless something's changed in the last 10 days).
Before merging, maintainers would probably want to rename the property
names (which have underscores in this patch) to better conform to the
other driver properties which use camelcaps for the most part.
I have also attached a "localAddress" patch that I find useful (I think I
posted it myself a while ago, but in any case here's an updated patch that
should apply more cleanly against recent sources).
-Scott
Attachments: download all (2 files, .tar.gz)
pgjdbc-bufferSizes.patch (application/octet-stream, 5.4K) download
diff '--exclude=.svn' -ur org/postgresql/core/v3/ConnectionFactoryImpl.java ../x/org/postgresql/core/v3/ConnectionFactoryImpl.java
--- org/postgresql/core/v3/ConnectionFactoryImpl.java 2012-08-21 18:47:09.930742600 -0400
+++ ../x/org/postgresql/core/v3/ConnectionFactoryImpl.java 2012-08-13 11:34:25.267000000 -0400
@@ -118,6 +118,45 @@
// Enable TCP keep-alive probe if required.
newStream.getSocket().setKeepAlive(requireTCPKeepAlive);
+ // Try to set SO_SNDBUF and SO_RECVBUF socket options, if requested.
+ // If receive_buffer_size and send_buffer_size are set to a value greater
+ // than 0, adjust. -1 means use the system default, 0 is ignored since not
+ // supported.
+
+ // Set SO_RECVBUF read buffer size
+ String receiveBufferSizeProperty = info.getProperty("receive_buffer_size", "-1");
+ try {
+ int receiveBufferSize = Integer.parseInt(receiveBufferSizeProperty);
+ if (receiveBufferSize > -1) {
+ // value of 0 not a valid buffer size value
+ if (receiveBufferSize > 0) {
+ newStream.getSocket().setReceiveBufferSize(receiveBufferSize);
+ } else {
+ logger.info("Ignore invalid value for receive_buffer_size: " + receiveBufferSize);
+ }
+ }
+ } catch (NumberFormatException nfe) {
+ logger.info("Couldn't parse receive_buffer_size value: " + receiveBufferSizeProperty);
+ }
+
+ // Set SO_SNDBUF write buffer size
+ String sendBufferSizeProperty = info.getProperty("send_buffer_size", "-1");
+ try {
+ int sendBufferSize = Integer.parseInt(sendBufferSizeProperty);
+ if (sendBufferSize > -1) {
+ if (sendBufferSize > 0) {
+ newStream.getSocket().setSendBufferSize(sendBufferSize);
+ } else {
+ logger.info("Ignore invalid value for send_buffer_size: " + sendBufferSize);
+ }
+ }
+ } catch (NumberFormatException nfe) {
+ logger.info("Couldn't parse send_buffer_size value: " + sendBufferSizeProperty);
+ }
+
+ logger.info("Receive Buffer Size is " + newStream.getSocket().getReceiveBufferSize());
+ logger.info("Send Buffer Size is " + newStream.getSocket().getSendBufferSize());
+
// Construct and send a startup packet.
String[][] params = {
{ "user", user },
diff '--exclude=.svn' -ur org/postgresql/ds/common/BaseDataSource.java ../x/org/postgresql/ds/common/BaseDataSource.java
--- org/postgresql/ds/common/BaseDataSource.java 2012-08-21 18:47:12.982742600 -0400
+++ ../x/org/postgresql/ds/common/BaseDataSource.java 2012-08-13 11:34:28.971000000 -0400
@@ -54,6 +54,8 @@
private String binaryTransferDisable = "";
private int loginTimeout = 0; // in seconds
private int socketTimeout = 0; // in seconds
+ private int receive_buffer_size = -1; // off (-1), not in use
+ private int send_buffer_size = -1; // off (-1), not in use
private boolean ssl = false;
private String sslfactory;
private boolean tcpKeepAlive = false;
@@ -293,6 +295,22 @@
}
/**
+ * Sets the write buffer size of TCP/IP socket.
+ */
+ public void setReceiveBufferSize(int nbytes)
+ {
+ this.receive_buffer_size = nbytes;
+ }
+
+ /**
+ * Sets the send buffer size of TCP/IP socket.
+ */
+ public void setSendBufferSize(int nbytes)
+ {
+ this.send_buffer_size = nbytes;
+ }
+
+ /**
* Gets the default threshold for enabling server-side prepare.
*
* @see #setPrepareThreshold(int)
@@ -478,6 +496,12 @@
sb.append("&sslfactory=").append(sslfactory);
}
}
+ if (receive_buffer_size != -1) {
+ sb.append("&receive_buffer_size=").append(receive_buffer_size);
+ }
+ if (send_buffer_size != -1) {
+ sb.append("&send_buffer_size=").append(send_buffer_size);
+ }
sb.append("&tcpkeepalive=").append(tcpKeepAlive);
if (compatible != null) {
sb.append("&compatible="+compatible);
@@ -530,6 +554,8 @@
ref.add(new StringRefAddr("ssl", Boolean.toString(ssl)));
ref.add(new StringRefAddr("sslfactory", sslfactory));
+ ref.add(new StringRefAddr("receive_buffer_size", Integer.toString(receive_buffer_size)));
+ ref.add(new StringRefAddr("send_buffer_size", Integer.toString(send_buffer_size)));
ref.add(new StringRefAddr("tcpKeepAlive", Boolean.toString(tcpKeepAlive)));
if (compatible != null)
{
@@ -556,6 +582,8 @@
out.writeInt(socketTimeout);
out.writeBoolean(ssl);
out.writeObject(sslfactory);
+ out.writeInt(receive_buffer_size);
+ out.writeInt(send_buffer_size);
out.writeBoolean(tcpKeepAlive);
out.writeObject(compatible);
out.writeInt(logLevel);
@@ -579,6 +607,8 @@
socketTimeout = in.readInt();
ssl = in.readBoolean();
sslfactory = (String)in.readObject();
+ receive_buffer_size = in.readInt();
+ send_buffer_size = in.readInt();
tcpKeepAlive = in.readBoolean();
compatible = (String)in.readObject();
logLevel = in.readInt();
pgjdbc-localAddress.patch (application/octet-stream, 5.6K) download
diff '--exclude=.svn' -ur org/postgresql/core/PGStream.java ../x/org/postgresql/core/PGStream.java
--- org/postgresql/core/PGStream.java 2012-08-21 18:47:10.619742600 -0400
+++ ../x/org/postgresql/core/PGStream.java 2012-08-13 11:34:25.805000000 -0400
@@ -32,6 +32,7 @@
public class PGStream
{
private final InetSocketAddress address;
+ private final String localAddress;
private final byte[] _int4buf;
private final byte[] _int2buf;
@@ -48,15 +49,19 @@
* Constructor: Connect to the PostgreSQL back end and return
* a stream connection.
*
- * @param host the hostname to connect to
- * @param port the port number that the postmaster is sitting on
+ * @param address the hostname and port of a postmaster to connect to
+ * @param localAddress the local address to bind to (or null for "any local address")
* @exception IOException if an IOException occurs below it.
*/
- public PGStream(InetSocketAddress address) throws IOException
+ public PGStream(InetSocketAddress address, String localAddress) throws IOException
{
this.address = address;
+ this.localAddress = localAddress;
Socket socket = new Socket();
+ if (localAddress != null) {
+ socket.bind(new InetSocketAddress(localAddress, 0));
+ }
socket.connect(address);
changeSocket(socket);
setEncoding(Encoding.getJVMEncoding("US-ASCII"));
@@ -69,6 +74,10 @@
return address;
}
+ public String getLocalAddress() {
+ return localAddress;
+ }
+
public Socket getSocket() {
return connection;
}
diff '--exclude=.svn' -ur org/postgresql/core/v2/ConnectionFactoryImpl.java ../x/org/postgresql/core/v2/ConnectionFactoryImpl.java
--- org/postgresql/core/v2/ConnectionFactoryImpl.java 2012-08-21 18:47:09.611742600 -0400
+++ ../x/org/postgresql/core/v2/ConnectionFactoryImpl.java 2012-08-13 11:34:24.708000000 -0400
@@ -83,7 +83,7 @@
PGStream newStream = null;
try
{
- newStream = new PGStream(address);
+ newStream = new PGStream(address, info.getProperty("localAddress"));
// Construct and send an ssl startup packet if requested.
if (trySSL)
@@ -199,7 +199,7 @@
// We have to reconnect to continue.
pgStream.close();
- return new PGStream(pgStream.getAddress());
+ return new PGStream(pgStream.getAddress(), pgStream.getLocalAddress());
case 'N':
if (logger.logDebug())
diff '--exclude=.svn' -ur org/postgresql/core/v2/ProtocolConnectionImpl.java ../x/org/postgresql/core/v2/ProtocolConnectionImpl.java
--- org/postgresql/core/v2/ProtocolConnectionImpl.java 2012-08-21 18:47:09.580742600 -0400
+++ ../x/org/postgresql/core/v2/ProtocolConnectionImpl.java 2012-08-13 11:34:24.530000000 -0400
@@ -87,7 +87,7 @@
if (logger.logDebug())
logger.debug(" FE=> CancelRequest(pid=" + cancelPid + ",ckey=" + cancelKey + ")");
- cancelStream = new PGStream(pgStream.getAddress());
+ cancelStream = new PGStream(pgStream.getAddress(), pgStream.getLocalAddress());
cancelStream.SendInteger4(16);
cancelStream.SendInteger2(1234);
cancelStream.SendInteger2(5678);
diff '--exclude=.svn' -ur org/postgresql/core/v3/ConnectionFactoryImpl.java ../x/org/postgresql/core/v3/ConnectionFactoryImpl.java
--- org/postgresql/core/v3/ConnectionFactoryImpl.java 2012-08-21 18:47:09.930742600 -0400
+++ ../x/org/postgresql/core/v3/ConnectionFactoryImpl.java 2012-08-13 11:34:25.267000000 -0400
@@ -98,7 +98,7 @@
PGStream newStream = null;
try
{
- newStream = new PGStream(address);
+ newStream = new PGStream(address, info.getProperty("localAddress"));
// Construct and send an ssl startup packet if requested.
if (trySSL)
@@ -257,7 +296,7 @@
// We have to reconnect to continue.
pgStream.close();
- return new PGStream(pgStream.getAddress());
+ return new PGStream(pgStream.getAddress(), pgStream.getLocalAddress());
case 'N':
if (logger.logDebug())
diff '--exclude=.svn' -ur org/postgresql/core/v3/ProtocolConnectionImpl.java ../x/org/postgresql/core/v3/ProtocolConnectionImpl.java
--- org/postgresql/core/v3/ProtocolConnectionImpl.java 2012-08-21 18:47:09.872742600 -0400
+++ ../x/org/postgresql/core/v3/ProtocolConnectionImpl.java 2012-08-13 11:34:25.095000000 -0400
@@ -89,7 +89,7 @@
if (logger.logDebug())
logger.debug(" FE=> CancelRequest(pid=" + cancelPid + ",ckey=" + cancelKey + ")");
- cancelStream = new PGStream(pgStream.getAddress());
+ cancelStream = new PGStream(pgStream.getAddress(), pgStream.getLocalAddress());
cancelStream.SendInteger4(16);
cancelStream.SendInteger2(1234);
cancelStream.SendInteger2(5678);
diff '--exclude=.svn' -ur org/postgresql/ssl/jdbc3/AbstractJdbc3MakeSSL.java ../x/org/postgresql/ssl/jdbc3/AbstractJdbc3MakeSSL.java
--- org/postgresql/ssl/jdbc3/AbstractJdbc3MakeSSL.java 2012-08-21 18:47:12.150742600 -0400
+++ ../x/org/postgresql/ssl/jdbc3/AbstractJdbc3MakeSSL.java 2012-08-13 11:34:27.859000000 -0400
@@ -59,7 +59,7 @@
}
}
- Socket newConnection = factory.createSocket(stream.getSocket(), stream.getAddress().getHostString(), stream.getAddress().getPort(), true);
+ Socket newConnection = factory.createSocket(stream.getSocket(), stream.getAddress().getHostName(), stream.getAddress().getPort(), true);
stream.changeSocket(newConnection);
}
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
@ 2012-08-24 20:45 ` Shijun Kong <skong@investoranalytics.com>
2012-08-25 11:14 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
2012-08-25 15:26 ` Re: send/receive buffer size Craig Ringer <ringerc@ringerc.id.au>
1 sibling, 2 replies; 14+ messages in thread
From: Shijun Kong @ 2012-08-24 20:45 UTC (permalink / raw)
To: pgsql-jdbc
Is it possible to establish a better issue tracking system than this
static http://jdbc.postgresql.org/todo.html or mailing list? So that
community knows what is going on? What to expect in next release.
Since the project is hosted on github now. Why not leverage it's build-in
features? https://github.com/features/projects/issues
__________________________
Shijun Kong
On 8/21/12 7:08 PM, "Scott Harrington" <scotth01@sns-usa.com> wrote:
>On Tue, 21 Aug 2012, Shijun Kong wrote:
>
>> I read a thread somewhere that somebody contributed a patch for adding
>>support of configurable send/receive buffer size. Did it ever commit into
>> master branch? I did not see any commit message about this change for
>>last 12 months.
>
>I wondered the same last weekend and found that the patch had NOT yet
>found its way into pgjdbc on github. In case it helps you, I've attached
>that old patch in a form that should apply cleanly against the latest
>sources (unless something's changed in the last 10 days).
>
>Before merging, maintainers would probably want to rename the property
>names (which have underscores in this patch) to better conform to the
>other driver properties which use camelcaps for the most part.
>
>I have also attached a "localAddress" patch that I find useful (I think I
>posted it myself a while ago, but in any case here's an updated patch
>that
>should apply more cleanly against recent sources).
>
>-Scott
This email message and any attachments may contain legally privileged or confidential information intended solely for the use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution or copying of this message or its attachments is strictly prohibited. If you have received this message in error, please notify us immediately by telephone, fax or email and delete the message and all attachments to the message. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Investor Analytics LLC.
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
2012-08-24 20:45 ` Re: send/receive buffer size Shijun Kong <skong@investoranalytics.com>
@ 2012-08-25 11:14 ` Dave Cramer <pg@fastcrypt.com>
1 sibling, 0 replies; 14+ messages in thread
From: Dave Cramer @ 2012-08-25 11:14 UTC (permalink / raw)
To: Shijun Kong <skong@investoranalytics.com>; +Cc: pgsql-jdbc
Shijun,
Yes, I am leaning towards that. The mailing list does seem to be onerous.
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On Fri, Aug 24, 2012 at 4:45 PM, Shijun Kong
<skong@investoranalytics.com> wrote:
> Is it possible to establish a better issue tracking system than this
> static http://jdbc.postgresql.org/todo.html or mailing list? So that
> community knows what is going on? What to expect in next release.
>
> Since the project is hosted on github now. Why not leverage it's build-in
> features? https://github.com/features/projects/issues
> __________________________
>
> Shijun Kong
>
>
>
>
> On 8/21/12 7:08 PM, "Scott Harrington" <scotth01@sns-usa.com> wrote:
>
>>On Tue, 21 Aug 2012, Shijun Kong wrote:
>>
>>> I read a thread somewhere that somebody contributed a patch for adding
>>>support of configurable send/receive buffer size. Did it ever commit into
>>> master branch? I did not see any commit message about this change for
>>>last 12 months.
>>
>>I wondered the same last weekend and found that the patch had NOT yet
>>found its way into pgjdbc on github. In case it helps you, I've attached
>>that old patch in a form that should apply cleanly against the latest
>>sources (unless something's changed in the last 10 days).
>>
>>Before merging, maintainers would probably want to rename the property
>>names (which have underscores in this patch) to better conform to the
>>other driver properties which use camelcaps for the most part.
>>
>>I have also attached a "localAddress" patch that I find useful (I think I
>>posted it myself a while ago, but in any case here's an updated patch
>>that
>>should apply more cleanly against recent sources).
>>
>>-Scott
>
>
> This email message and any attachments may contain legally privileged or confidential information intended solely for the use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution or copying of this message or its attachments is strictly prohibited. If you have received this message in error, please notify us immediately by telephone, fax or email and delete the message and all attachments to the message. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Investor Analytics LLC.
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
2012-08-24 20:45 ` Re: send/receive buffer size Shijun Kong <skong@investoranalytics.com>
@ 2012-08-25 15:26 ` Craig Ringer <ringerc@ringerc.id.au>
2012-08-25 22:24 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
1 sibling, 1 reply; 14+ messages in thread
From: Craig Ringer @ 2012-08-25 15:26 UTC (permalink / raw)
To: Shijun Kong <skong@investoranalytics.com>; +Cc: pgsql-jdbc; Dave Cramer <pg@fastcrypt.com>
On 08/25/2012 04:45 AM, Shijun Kong wrote:
> Is it possible to establish a better issue tracking system than this
> static http://jdbc.postgresql.org/todo.html or mailing list?
+1
The -BUGS list works ok for the main project because there are enough
people with the time and expertise to promptly act on issues. Even then
things slip through the cracks quite a bit. It seems it hasn't been
working great for PgJDBC.
> Since the project is hosted on github now. Why not leverage it's
> build-in features? https://github.com/features/projects/issues
Also very much +1 from me, if Dave's OK adding more people to the PgJDBC
org membership list.
GitHub provides facilities canned and ready to use, including a simple
issue tracker, wiki, and patch tracking system. At least for the purpose
of catching up on the backlog and finding missed patches it seems wise
to use it. Since Pg proper doesn't use a tracker, and one appears to be
necessary at least for catch-up, I'd suggest using that one.
Re catch-up:
The first thing to do will be find all messages with patch attachments.
For that it'd be quite handy to have a dump of the last year or two's
archives. I can manually download the mbox files, but ... since the list
manager supports full text search, surely it's in a database too?
How're the chances of getting a DB dump of the PgJDBC list for the last
couple of years? I'll ask on pgsql-web .
--
Craig Ringer
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
2012-08-24 20:45 ` Re: send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-25 15:26 ` Re: send/receive buffer size Craig Ringer <ringerc@ringerc.id.au>
@ 2012-08-25 22:24 ` Dave Cramer <pg@fastcrypt.com>
2012-08-26 06:51 ` Re: send/receive buffer size John Lister <john.lister@kickstone.com>
2012-08-26 12:09 ` Re: send/receive buffer size Craig Ringer <ringerc@ringerc.id.au>
0 siblings, 2 replies; 14+ messages in thread
From: Dave Cramer @ 2012-08-25 22:24 UTC (permalink / raw)
To: Craig Ringer <ringerc@ringerc.id.au>; +Cc: Shijun Kong <skong@investoranalytics.com>; pgsql-jdbc
So one of the problems with github is that there is no way to send
email to the list. Unless everyone that is on the list now "watches"
pgjdbc on github they don't get notifications.
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On Sat, Aug 25, 2012 at 11:26 AM, Craig Ringer <ringerc@ringerc.id.au> wrote:
> On 08/25/2012 04:45 AM, Shijun Kong wrote:
>>
>> Is it possible to establish a better issue tracking system than this
>> static http://jdbc.postgresql.org/todo.html or mailing list?
>
>
> +1
>
> The -BUGS list works ok for the main project because there are enough people
> with the time and expertise to promptly act on issues. Even then things slip
> through the cracks quite a bit. It seems it hasn't been working great for
> PgJDBC.
>
>
>
>> Since the project is hosted on github now. Why not leverage it's
>> build-in features? https://github.com/features/projects/issues
>
> Also very much +1 from me, if Dave's OK adding more people to the PgJDBC org
> membership list.
>
> GitHub provides facilities canned and ready to use, including a simple issue
> tracker, wiki, and patch tracking system. At least for the purpose of
> catching up on the backlog and finding missed patches it seems wise to use
> it. Since Pg proper doesn't use a tracker, and one appears to be necessary
> at least for catch-up, I'd suggest using that one.
>
>
> Re catch-up:
>
> The first thing to do will be find all messages with patch attachments. For
> that it'd be quite handy to have a dump of the last year or two's archives.
> I can manually download the mbox files, but ... since the list manager
> supports full text search, surely it's in a database too?
>
> How're the chances of getting a DB dump of the PgJDBC list for the last
> couple of years? I'll ask on pgsql-web .
>
> --
> Craig Ringer
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
2012-08-24 20:45 ` Re: send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-25 15:26 ` Re: send/receive buffer size Craig Ringer <ringerc@ringerc.id.au>
2012-08-25 22:24 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
@ 2012-08-26 06:51 ` John Lister <john.lister@kickstone.com>
1 sibling, 0 replies; 14+ messages in thread
From: John Lister @ 2012-08-26 06:51 UTC (permalink / raw)
To: pgsql-jdbc
On 25/08/2012 23:24, Dave Cramer wrote:
> So one of the problems with github is that there is no way to send
> email to the list. Unless everyone that is on the list now "watches"
> pgjdbc on github they don't get notifications.
>
I haven't used Github yet, but could one of the jdbc project/mailing
list admins add the list address as a user and have it receive
notifications? I'd guess you'd have to add the github return address as
a subscriber to the jdbc list and configure it to not have any messages
sent to it. Also, the list may initially be polluted with account
confirmation, etc emails
Apologies if that is a mad suggestion.
John
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
2012-08-24 20:45 ` Re: send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-25 15:26 ` Re: send/receive buffer size Craig Ringer <ringerc@ringerc.id.au>
2012-08-25 22:24 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
@ 2012-08-26 12:09 ` Craig Ringer <ringerc@ringerc.id.au>
2012-08-26 12:19 ` Re: send/receive buffer size Gavin Flower <GavinFlower@archidevsys.co.nz>
1 sibling, 1 reply; 14+ messages in thread
From: Craig Ringer @ 2012-08-26 12:09 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: Shijun Kong <skong@investoranalytics.com>; pgsql-jdbc
On 08/26/2012 06:24 AM, Dave Cramer wrote:
> So one of the problems with github is that there is no way to send
> email to the list. Unless everyone that is on the list now "watches"
> pgjdbc on github they don't get notifications.
Is that bad?
I find mailing lists that get continuously spammed with automatic
notifications from trackers to be a real pain, and personally strongly
prefer to explicitly sign up for notifications that I want.
If you want a list for notifications *please* make it a different one to
psql-jdbc so this list remains useful for human-to-human conversation.
--
Craig Ringer
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
2012-08-24 20:45 ` Re: send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-25 15:26 ` Re: send/receive buffer size Craig Ringer <ringerc@ringerc.id.au>
2012-08-25 22:24 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
2012-08-26 12:09 ` Re: send/receive buffer size Craig Ringer <ringerc@ringerc.id.au>
@ 2012-08-26 12:19 ` Gavin Flower <GavinFlower@archidevsys.co.nz>
0 siblings, 0 replies; 14+ messages in thread
From: Gavin Flower @ 2012-08-26 12:19 UTC (permalink / raw)
To: Craig Ringer <ringerc@ringerc.id.au>; +Cc: Dave Cramer <pg@fastcrypt.com>; Shijun Kong <skong@investoranalytics.com>; pgsql-jdbc
On 27/08/12 00:09, Craig Ringer wrote:
> On 08/26/2012 06:24 AM, Dave Cramer wrote:
>> So one of the problems with github is that there is no way to send
>> email to the list. Unless everyone that is on the list now "watches"
>> pgjdbc on github they don't get notifications.
>
> Is that bad?
>
> I find mailing lists that get continuously spammed with automatic
> notifications from trackers to be a real pain, and personally strongly
> prefer to explicitly sign up for notifications that I want.
>
> If you want a list for notifications *please* make it a different one
> to psql-jdbc so this list remains useful for human-to-human conversation.
>
> --
> Craig Ringer
>
>
>
+1
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
@ 2012-09-12 00:58 ` Dave Cramer <pg@fastcrypt.com>
2012-09-12 10:47 ` Re: send/receive buffer size Scott Harrington <scotth@sns-usa.com>
1 sibling, 1 reply; 14+ messages in thread
From: Dave Cramer @ 2012-09-12 00:58 UTC (permalink / raw)
To: Scott Harrington <scotth01@sns-usa.com>; +Cc: pgsql-jdbc
I've applied this patch with changes to use camelCase for
sendBufferSize, and receiveBufferSize to 9.2
Originally supplied by Bernd Helme
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On Tue, Aug 21, 2012 at 7:08 PM, Scott Harrington <scotth01@sns-usa.com> wrote:
> On Tue, 21 Aug 2012, Shijun Kong wrote:
>
>> I read a thread somewhere that somebody contributed a patch for adding
>> support of configurable send/receive buffer size. Did it ever commit into
>> master branch? I did not see any commit message about this change for last
>> 12 months.
>
>
> I wondered the same last weekend and found that the patch had NOT yet found
> its way into pgjdbc on github. In case it helps you, I've attached that old
> patch in a form that should apply cleanly against the latest sources (unless
> something's changed in the last 10 days).
>
> Before merging, maintainers would probably want to rename the property names
> (which have underscores in this patch) to better conform to the other driver
> properties which use camelcaps for the most part.
>
> I have also attached a "localAddress" patch that I find useful (I think I
> posted it myself a while ago, but in any case here's an updated patch that
> should apply more cleanly against recent sources).
>
> -Scott
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
2012-09-12 00:58 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
@ 2012-09-12 10:47 ` Scott Harrington <scotth@sns-usa.com>
2012-09-12 10:53 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 14+ messages in thread
From: Scott Harrington @ 2012-09-12 10:47 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; pgsql-jdbc
Thank you Dave, will you consider the localAddress patch also?
On Tue, 11 Sep 2012, Dave Cramer wrote:
> I've applied this patch with changes to use camelCase for
> sendBufferSize, and receiveBufferSize to 9.2
> Originally supplied by Bernd Helme
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca
>
>
> On Tue, Aug 21, 2012 at 7:08 PM, Scott Harrington <scotth01@sns-usa.com> wrote:
>> On Tue, 21 Aug 2012, Shijun Kong wrote:
>>
>>> I read a thread somewhere that somebody contributed a patch for adding
>>> support of configurable send/receive buffer size. Did it ever commit into
>>> master branch? I did not see any commit message about this change for last
>>> 12 months.
>>
>>
>> I wondered the same last weekend and found that the patch had NOT yet found
>> its way into pgjdbc on github. In case it helps you, I've attached that old
>> patch in a form that should apply cleanly against the latest sources (unless
>> something's changed in the last 10 days).
>>
>> Before merging, maintainers would probably want to rename the property names
>> (which have underscores in this patch) to better conform to the other driver
>> properties which use camelcaps for the most part.
>>
>> I have also attached a "localAddress" patch that I find useful (I think I
>> posted it myself a while ago, but in any case here's an updated patch that
>> should apply more cleanly against recent sources).
>>
>> -Scott
>>
>> --
>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
2012-09-12 00:58 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
2012-09-12 10:47 ` Re: send/receive buffer size Scott Harrington <scotth@sns-usa.com>
@ 2012-09-12 10:53 ` Dave Cramer <pg@fastcrypt.com>
2012-09-12 11:24 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
0 siblings, 1 reply; 14+ messages in thread
From: Dave Cramer @ 2012-09-12 10:53 UTC (permalink / raw)
To: Scott Harrington <scotth@sns-usa.com>; +Cc: pgsql-jdbc
Scott,
As you can see the code patch is one thing. I also have to add
documentation, and test cases. It would be much easier if those
things were also included in the patch.
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On Wed, Sep 12, 2012 at 6:47 AM, Scott Harrington <scotth@sns-usa.com> wrote:
> Thank you Dave, will you consider the localAddress patch also?
>
>
> On Tue, 11 Sep 2012, Dave Cramer wrote:
>
>> I've applied this patch with changes to use camelCase for
>> sendBufferSize, and receiveBufferSize to 9.2
>> Originally supplied by Bernd Helme
>>
>> Dave Cramer
>>
>> dave.cramer(at)credativ(dot)ca
>> http://www.credativ.ca
>>
>>
>> On Tue, Aug 21, 2012 at 7:08 PM, Scott Harrington <scotth01@sns-usa.com>
>> wrote:
>>>
>>> On Tue, 21 Aug 2012, Shijun Kong wrote:
>>>
>>>> I read a thread somewhere that somebody contributed a patch for adding
>>>> support of configurable send/receive buffer size. Did it ever commit
>>>> into
>>>> master branch? I did not see any commit message about this change for
>>>> last
>>>> 12 months.
>>>
>>>
>>>
>>> I wondered the same last weekend and found that the patch had NOT yet
>>> found
>>> its way into pgjdbc on github. In case it helps you, I've attached that
>>> old
>>> patch in a form that should apply cleanly against the latest sources
>>> (unless
>>> something's changed in the last 10 days).
>>>
>>> Before merging, maintainers would probably want to rename the property
>>> names
>>> (which have underscores in this patch) to better conform to the other
>>> driver
>>> properties which use camelcaps for the most part.
>>>
>>> I have also attached a "localAddress" patch that I find useful (I think I
>>> posted it myself a while ago, but in any case here's an updated patch
>>> that
>>> should apply more cleanly against recent sources).
>>>
>>> -Scott
>>>
>>> --
>>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>>> To make changes to your subscription:
>>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>>
>>
>>
>> --
>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
2012-09-12 00:58 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
2012-09-12 10:47 ` Re: send/receive buffer size Scott Harrington <scotth@sns-usa.com>
2012-09-12 10:53 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
@ 2012-09-12 11:24 ` Scott Harrington <scotth01@sns-usa.com>
2012-09-12 11:33 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 14+ messages in thread
From: Scott Harrington @ 2012-09-12 11:24 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc
Hi Dave, I understand completely - I will "enrich" the LocalAddress patch
at least with documentation, but as for a test case, I am not sure we can
pick an appropriate value for the localAddress (possibly "127.0.0.1" ?)
that would work reliably in different environments. Suggestions?
On Wed, 12 Sep 2012, Dave Cramer wrote:
> Scott,
>
> As you can see the code patch is one thing. I also have to add
> documentation, and test cases. It would be much easier if those
> things were also included in the patch.
>
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca
>
>
> On Wed, Sep 12, 2012 at 6:47 AM, Scott Harrington <scotth@sns-usa.com> wrote:
>> Thank you Dave, will you consider the localAddress patch also?
>>
>>
>> On Tue, 11 Sep 2012, Dave Cramer wrote:
>>
>>> I've applied this patch with changes to use camelCase for
>>> sendBufferSize, and receiveBufferSize to 9.2
>>> Originally supplied by Bernd Helme
>>>
>>> Dave Cramer
>>>
>>> dave.cramer(at)credativ(dot)ca
>>> http://www.credativ.ca
>>>
>>>
>>> On Tue, Aug 21, 2012 at 7:08 PM, Scott Harrington <scotth01@sns-usa.com>
>>> wrote:
>>>>
>>>> On Tue, 21 Aug 2012, Shijun Kong wrote:
>>>>
>>>>> I read a thread somewhere that somebody contributed a patch for adding
>>>>> support of configurable send/receive buffer size. Did it ever commit
>>>>> into
>>>>> master branch? I did not see any commit message about this change for
>>>>> last
>>>>> 12 months.
>>>>
>>>>
>>>>
>>>> I wondered the same last weekend and found that the patch had NOT yet
>>>> found
>>>> its way into pgjdbc on github. In case it helps you, I've attached that
>>>> old
>>>> patch in a form that should apply cleanly against the latest sources
>>>> (unless
>>>> something's changed in the last 10 days).
>>>>
>>>> Before merging, maintainers would probably want to rename the property
>>>> names
>>>> (which have underscores in this patch) to better conform to the other
>>>> driver
>>>> properties which use camelcaps for the most part.
>>>>
>>>> I have also attached a "localAddress" patch that I find useful (I think I
>>>> posted it myself a while ago, but in any case here's an updated patch
>>>> that
>>>> should apply more cleanly against recent sources).
>>>>
>>>> -Scott
>>>>
>>>> --
>>>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>>>> To make changes to your subscription:
>>>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>>>
>>>
>>>
>>> --
>>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>>> To make changes to your subscription:
>>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>>
>>
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: send/receive buffer size
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
2012-09-12 00:58 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
2012-09-12 10:47 ` Re: send/receive buffer size Scott Harrington <scotth@sns-usa.com>
2012-09-12 10:53 ` Re: send/receive buffer size Dave Cramer <pg@fastcrypt.com>
2012-09-12 11:24 ` Re: send/receive buffer size Scott Harrington <scotth01@sns-usa.com>
@ 2012-09-12 11:33 ` Dave Cramer <pg@fastcrypt.com>
0 siblings, 0 replies; 14+ messages in thread
From: Dave Cramer @ 2012-09-12 11:33 UTC (permalink / raw)
To: Scott Harrington <scotth01@sns-usa.com>; +Cc: pgsql-jdbc
Scott,
There is a build.local.properties, or build.xml where you can set
values. Agreed it may be difficult to test.
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On Wed, Sep 12, 2012 at 7:24 AM, Scott Harrington <scotth01@sns-usa.com> wrote:
> Hi Dave, I understand completely - I will "enrich" the LocalAddress patch at
> least with documentation, but as for a test case, I am not sure we can pick
> an appropriate value for the localAddress (possibly "127.0.0.1" ?) that
> would work reliably in different environments. Suggestions?
>
>
>
> On Wed, 12 Sep 2012, Dave Cramer wrote:
>
>> Scott,
>>
>> As you can see the code patch is one thing. I also have to add
>> documentation, and test cases. It would be much easier if those
>> things were also included in the patch.
>>
>>
>> Dave Cramer
>>
>> dave.cramer(at)credativ(dot)ca
>> http://www.credativ.ca
>>
>>
>> On Wed, Sep 12, 2012 at 6:47 AM, Scott Harrington <scotth@sns-usa.com>
>> wrote:
>>>
>>> Thank you Dave, will you consider the localAddress patch also?
>>>
>>>
>>> On Tue, 11 Sep 2012, Dave Cramer wrote:
>>>
>>>> I've applied this patch with changes to use camelCase for
>>>> sendBufferSize, and receiveBufferSize to 9.2
>>>> Originally supplied by Bernd Helme
>>>>
>>>> Dave Cramer
>>>>
>>>> dave.cramer(at)credativ(dot)ca
>>>> http://www.credativ.ca
>>>>
>>>>
>>>> On Tue, Aug 21, 2012 at 7:08 PM, Scott Harrington <scotth01@sns-usa.com>
>>>> wrote:
>>>>>
>>>>>
>>>>> On Tue, 21 Aug 2012, Shijun Kong wrote:
>>>>>
>>>>>> I read a thread somewhere that somebody contributed a patch for adding
>>>>>> support of configurable send/receive buffer size. Did it ever commit
>>>>>> into
>>>>>> master branch? I did not see any commit message about this change for
>>>>>> last
>>>>>> 12 months.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I wondered the same last weekend and found that the patch had NOT yet
>>>>> found
>>>>> its way into pgjdbc on github. In case it helps you, I've attached that
>>>>> old
>>>>> patch in a form that should apply cleanly against the latest sources
>>>>> (unless
>>>>> something's changed in the last 10 days).
>>>>>
>>>>> Before merging, maintainers would probably want to rename the property
>>>>> names
>>>>> (which have underscores in this patch) to better conform to the other
>>>>> driver
>>>>> properties which use camelcaps for the most part.
>>>>>
>>>>> I have also attached a "localAddress" patch that I find useful (I think
>>>>> I
>>>>> posted it myself a while ago, but in any case here's an updated patch
>>>>> that
>>>>> should apply more cleanly against recent sources).
>>>>>
>>>>> -Scott
>>>>>
>>>>> --
>>>>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>>>>> To make changes to your subscription:
>>>>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>>>>
>>>>
>>>>
>>>> --
>>>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>>>> To make changes to your subscription:
>>>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>>>
>>>
>>
>
^ permalink raw reply [nested|flat] 14+ messages in thread
end of thread, other threads:[~2012-09-12 11:33 UTC | newest]
Thread overview: 14+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-08-21 20:53 send/receive buffer size Shijun Kong <skong@investoranalytics.com>
2012-08-21 23:08 ` Scott Harrington <scotth01@sns-usa.com>
2012-08-24 20:45 ` Shijun Kong <skong@investoranalytics.com>
2012-08-25 11:14 ` Dave Cramer <pg@fastcrypt.com>
2012-08-25 15:26 ` Craig Ringer <ringerc@ringerc.id.au>
2012-08-25 22:24 ` Dave Cramer <pg@fastcrypt.com>
2012-08-26 06:51 ` John Lister <john.lister@kickstone.com>
2012-08-26 12:09 ` Craig Ringer <ringerc@ringerc.id.au>
2012-08-26 12:19 ` Gavin Flower <GavinFlower@archidevsys.co.nz>
2012-09-12 00:58 ` Dave Cramer <pg@fastcrypt.com>
2012-09-12 10:47 ` Scott Harrington <scotth@sns-usa.com>
2012-09-12 10:53 ` Dave Cramer <pg@fastcrypt.com>
2012-09-12 11:24 ` Scott Harrington <scotth01@sns-usa.com>
2012-09-12 11:33 ` Dave Cramer <pg@fastcrypt.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox