From atri.jiit@gmail.com Thu Mar 22 17:00:58 2012 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 51D224248 for ; Thu, 22 Mar 2012 14:00:58 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SAlNa-00058N-Vr for pgsql-jdbc@postgresql.org; Thu, 22 Mar 2012 17:00:56 +0000 Received: by pbcun15 with SMTP id un15so1734440pbc.19 for ; Thu, 22 Mar 2012 10:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; bh=K+plFqw9z0UA3AdbFJygKlQmLWC8FtIAnfSVq+Zu87I=; b=M1bRLopo02w8zrSfHRDZuFgBCe84A2Ph72J9sChmSGrstaUQ6CY3voLdMXU2DGCsq8 MjmJKmDrvw636VS98TzkA0ZOJmLHRRkN32To/w1w+TZVDZa5TojtvPVy+SCvUl/XBUhf 3q1ePlzTfbiH+977awLTcxHXszp9EzGQS/biN2rRZOtQcgbzUC8o2Y9bEBvvfiHs9cTf cFZk2PVy0iQEzUbJ1dGtBt+EpOuM/gZmVhwTPHhqD4djzn/ZqmAwxIf+tDPxv8fakkl7 2ypnGVPYqwT/o21wDvqiwz6GF3mlttKDtul+mAnW1ZPyatkPYRv29yjY7lMoeoR/Yzir Odrg== Received: by 10.68.129.133 with SMTP id nw5mr21953311pbb.159.1332435637339; Thu, 22 Mar 2012 10:00:37 -0700 (PDT) Received: from GITCPC ([122.177.211.221]) by mx.google.com with ESMTPS id h10sm4128998pbe.12.2012.03.22.10.00.34 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Mar 2012 10:00:36 -0700 (PDT) From: "Atri Sharma" To: Subject: Regarding GSoc 2012 project idea Date: Thu, 22 Mar 2012 22:30:26 +0530 Message-ID: <4f6b5ab4.ca13440a.18fa.5885@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01CD087B.63D84590" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac0ITUbjxKiB/ymcTV2lTyVPkJ/0Dg== Content-Language: en-in X-Pg-Spam-Score: -0.8 (/) X-Archive-Number: 201203/36 X-Sequence-Number: 22775 This is a multi-part message in MIME format. ------=_NextPart_000_000A_01CD087B.63D84590 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi all, I am Atri Sharma. I am a Java developer with experience of designing small databases.I have worked with JDBC before and I have studied ODBC and ADO.I have been directed here from the pgsql-hackers mailing list.I would be interested to work on PL/Java and JDBC. Please let me know of any project that currently need attention.I would be honoured to contribute to the community. Atri ------=_NextPart_000_000A_01CD087B.63D84590 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi = all,

I am Atri Sharma. I am a Java = developer with experience of designing small databases.I have worked = with JDBC before and I have studied ODBC and ADO.I have been directed = here from the pgsql-hackers mailing list.I would be interested to work = on PL/Java and JDBC.

 

Please let = me know of any project that currently need attention.I would be honoured = to contribute to the community.

 

Atri

------=_NextPart_000_000A_01CD087B.63D84590-- From danap@ttc-cmc.net Thu Mar 22 19:20:12 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 6FFF34248 for ; Thu, 22 Mar 2012 16:20:12 -0300 (ADT) Received: from smtp.northerntel.net ([216.146.104.103] helo=outbound.vnet-inc.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SAnYQ-00039V-LZ for pgsql-jdbc@postgresql.org; Thu, 22 Mar 2012 19:20:11 +0000 Received: from [192.168.157.132] (unknown [76.75.27.41]) by outbound.vnet-inc.com (Postfix) with ESMTP id F162D59FA; Thu, 22 Mar 2012 13:19:54 -0600 (MDT) Message-ID: <4F6B7B07.9000106@ttc-cmc.net> Date: Thu, 22 Mar 2012 13:18:31 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: Atri Sharma , PostgreSQL JDBC Subject: Re: Regarding GSoc 2012 project idea References: <4f6b5ab4.ca13440a.18fa.5885@mx.google.com> In-Reply-To: <4f6b5ab4.ca13440a.18fa.5885@mx.google.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/37 X-Sequence-Number: 22776 Atri Sharma wrote: > Hi all, > > I am Atri Sharma. I am a Java developer with experience of designing > small databases.I have worked with JDBC before and I have studied ODBC > and ADO.I have been directed here from the pgsql-hackers mailing list.I > would be interested to work on PL/Java and JDBC. > > Please let me know of any project that currently need attention.I would > be honoured to contribute to the community. > > Atri > Hello Atri, I think you have found it. Why not the PostgreSQL JDBC? I think they still have a current TODO list over at: http://jdbc.postgresql.org/todo.html If this seems a little to overwhelming at this time then perhaps you may have some ideas for a plugin for my Project MyJSQLview. You can create your own plugin that performs some function on a PostgreSQL database. There is tutorial over at my website, http://dandymadeproductions.com/projects/MyJSQLView/plugins.html danap. From maumau307@gmail.com Fri Mar 23 12:16:37 2012 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 619C6C32C71 for ; Fri, 23 Mar 2012 09:16:37 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SB3Pz-0008CC-V8 for pgsql-jdbc@postgresql.org; Fri, 23 Mar 2012 12:16:36 +0000 Received: by pbcun15 with SMTP id un15so2506538pbc.19 for ; Fri, 23 Mar 2012 05:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-type:x-priority:x-msmail-priority:x-mailer :x-mimeole; bh=pl8nTzQ21ZvfgsgBm/C8Tu8x/0yMu8bzmY38gowVwdk=; b=nNpvOmVVcNAxqZhvUq6Txh2/VH9Jbp1irNuCIT3JdJGE8Ql4LUt82Z3+g1OYxwAMbY oqE8hjHXLKRBIWBOXnZ/Q8xdPBaGbAvYQn9BoSI64oJRfgkJj52C+YzZ3OMMGYWPfKS3 /Se0WLR0aUkXBegadIaytQT1NjvR4YUCDgBdnyZSs4y4dRTY7pWiH4m0gLsCoB3tNuVP tvtloyQFVJwr1zhvzo+xEPzXI7EKxUYMZATCOba/6QbUjc3zBWLGaN4dCKYRUIfSmzHH ii+mZDvdQ0ZL5zbrZRVygIYclyjlORRVZ2ooTuDFSUZDfYwnVKB9xbDyLbfQE75L4Zqb bdOg== Received: by 10.68.132.99 with SMTP id ot3mr28667995pbb.160.1332504977511; Fri, 23 Mar 2012 05:16:17 -0700 (PDT) Received: from maumau (p1042-ipbfp401sizuokaden.shizuoka.ocn.ne.jp. [122.20.60.42]) by mx.google.com with ESMTPS id c8sm5716276pbf.71.2012.03.23.05.16.15 (version=SSLv3 cipher=OTHER); Fri, 23 Mar 2012 05:16:16 -0700 (PDT) Message-ID: <105552FBD01342E9AD9992514A7EB12F@maumau> From: "MauMau" To: "\"Atri Sharma\"" Cc: References: <4f6b5ab4.ca13440a.18fa.5885@mx.google.com> In-Reply-To: <4f6b5ab4.ca13440a.18fa.5885@mx.google.com> Subject: Re: Regarding GSoc 2012 project idea Date: Fri, 23 Mar 2012 21:16:00 +0900 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0794_01CD093A.255282D0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18463 X-Pg-Spam-Score: -2.5 (--) X-Archive-Number: 201203/40 X-Sequence-Number: 22779 This is a multi-part message in MIME format. ------=_NextPart_000_0794_01CD093A.255282D0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Hello, Atri, How about enhancing JDBC driver greatly to support many of JDBC 4.1 features? I guess this will improve interoperability with more software. While you address it, you will probably find some features lacking in the PostgreSQL server. I think it's interesting to propose those features which need to be implemented by the PostgreSQL server. Please look at the attached mail I posted here last year. I hope this will help you. Regards MauMau ------=_NextPart_000_0794_01CD093A.255282D0 Content-Type: text/plain; format=flowed; name="JDBC_wants.txt"; reply-type=original Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="JDBC_wants.txt" Hello, I read the JDBC driver's source code, documentation, and the project web = site to compile the missing features and wanted improvements. Attached = file is the list of things I noticed. Some of the items may be on the = project web site. I hope this will be a bit useful. The driver version I investigated is postgresql-jdbc-9.0-801. I'm interested in discussing which features can be feasible with the = current PostgreSQL server and which features require new functionality = of the server. However, as I'm relatively new to PostgreSQL, I may fail = to keep up with your level of discussions. Regards MauMau Missing features and wanted improvements of PostgreSQL JDBC driver Table of contents 1. Missing features of JDBC specification(big features) 2. Missing features of JDBC specification(small features) 3. List of unsupported methods 4. Regression test 1. Missing features of JDBC specification(big features) I gathered the following features from java.sql package's Javadoc top = page [JDBC 2.1 Core] Custom mapping of user-defined types (UDTs) Data types--interfaces mapping the SQL3 data types: Ref, Struct [JDBC 2.1 Standard Extension, javax.sql package] RowSet technology [JDBC 3.0] Statement pooling Ability to identify parameters to CallableStatement objects by name as = well as by index ResultSet holdability -- ability to specify whether cursors should be = held open or closed at the end of a transaction Ability to retrieve and update the SQL structured type instance that a = Ref object references Ability to programmatically update CLOB and REF values Support of java.sql.Types.DATALINK Metadata for retrieving SQL type hierarchies [JDBC 4.0] National Character Set support including NClob data type SQLException enhancements -- Added support for cause chaining; New = SQLExceptions added for common SQLState class value codes Enhanced Blob/Clob functionality -- Support provided to create and free = a Blob/Clob instance as well as additional methods added to improve = accessiblity (e.g. Connection interface's createBlob()/createClob()) Support for accessing a SQL ROWID Wrapper Interface for JDBC classes which provide the ability to retrieve = the delegate instance when the instance in question is in fact a proxy = class Availability to be notfied when a PreparedStatement that is associated = with a PooledConnection has been closed or the driver determines is = invalid Setting and getting of client information for connections: Connection = interface's setClientInfo()/getClientInfo() 2. Missing features of JDBC specification(small features) 2-1 ResultSet type TYPE_SCROLL_SENSITIVE rowDeleted() and rowUpdated() of ResultSet interface: currently these = methods always return false 2-2 [Description of JDBC spec] 13.6 Retrieving Auto Generated Values It is implementation-defined as to whether Statement.getGeneratedKeys = will return generated values after invoking the executeBatch method. [Implementation of PostgreSQL JDBC driver] Statement.getGeneratedKeys() does not return generated values after = executing executeBatch(). 2-3 [Description of JDBC spec] 15.1.3.1 Determining ResultSet Holdability The default holdability of ResultSet objects is implementation defined. = The DatabaseMetaData method getResultSetHoldability can be called to = determine the default holdability of result sets returned by the = underlying data source. [Implementation of PostgreSQL JDBC driver] The default holdability of the ResultSet created by createStatement(), = prepareStatement(), and prepareCall() of Connection interface is = CLOSE_CURSORS_AT_COMMIT. However, = DatabaseMetaData.getResultSetHoldability() returns = HOLD_CURSORS_OVER_COMMIT. Shouldn't DatabaseMetaData.getResultSetHoldability() return the default = holdability HOLD_CURSORS_OVER_COMMIT? 2-4 Distributed transaction support TMRESUME and TMSUSPEND flags are not supported. An empty Xid array is returned unless you pass TMSTARTRSCAN to = XAResource.recover(). XAResource.forget() always throws XAException. XA transaction timeout is not supported:=20 XAResource.getTransactionTimeout() always returns 0 and = XAResource.setTransactionTimeout() is no-op. The following specification item is not implemented: The transaction manager is not required to use the same XAResource = object to commit/rollback a transaction branch as was used to execute = the branch. 2-5 Inefficient data retrieval by ResultSet By default, The JDBC driver fetches the entire result data all at once = and caches it in the client's memory. setFetchSize() is not effective = when you use the scrollable ResultSet. 2-6 Limitations of CallableStatement http://jdbc.postgresql.org/documentation/head/index.html One notable limitation of the current support for a ResultSet created = from a refcursor is that even though it is a cursor backed ResultSet, = all data will be retrieved and cached on the client. The Statement fetch = size parameter described in the section called Getting results based on = a cursor is ignored. This limitation is a deficiency of the JDBC driver, = not the server, and it is technically possible to remove it, we just = haven't found the time. 2-7 positioned updates/deletes are not supported The JDBC driver supports positioned updates and deletes using ResultSet. = However, it does not support positioned updates/deletes using SQL = commands. i.e. Statement.setCursorName(String name) is no-op. In addition, Connection.setCursorName(String cursor) is no-op. = Connection.getCursorName() returns null. Positioned updates/deletes is described in JDBC spec section "15.2.4.4 = Positioned Updates and Deletes." 2-8 Query timeout is not supported Statement.setQueryTimeout(int seconds) throws an exception when seconds = > 0. 2-9 Checking if columns are writable The following methods of ResultSetMetaData are not implemented. isReadOnly(int column) always returns false isWritable(int column) always returns true isDefinitelyWritable(int column) always returns false 2-10 Statement pooling is not supported The following methods of PooledConnection are no-op. - void addStatementEventListener(StatementEventListener listener) - void removeStatementEventListener(StatementEventListener listener) 2-11 Getting metadata of statement parameters The following methods of ParameterMetaData always return 0. - getPrecision(int param) - getPScale(int param) isNullable(int param) returns = ParameterMetaData.parameterNullableUnknown. 3. List of unsupported methods I listed the following methods which call Driver.notImplemented(). <> [JDBC2] public Object getArray(long index, int count, Map map) throws = SQLException if map is not empty, or the data type of the array element is neither of = the following: BIT, SMALLINT, INTEGER, BIGINT, NUMERIC, REAL, DOUBLE, CHAR, VARCHAR, = DATE, TIME, TIMESTAMP [JDBC2] public ResultSet getResultSet(long index, int count, Map map) = throws SQLException if map is not empty <> [JDBC4] public java.io.InputStream getBinaryStream(long pos, long = length) throws SQLException <> [JDBC2] public Ref getRef(int i) throws SQLException [JDBC2] public Blob getBlob(int i) throws SQLException [JDBC2] public Clob getClob(int i) throws SQLException [JDBC2] public Object getObject(int i, java.util.Map map) throws = SQLException if map is not empty [JDBC2] public void registerOutParameter(int parameterIndex, int = sqlType, String typeName) throws SQLException [JDBC3] public java.net.URL getURL(int parameterIndex) throws = SQLException [JDBC3] public void setURL(String parameterName, java.net.URL val) = throws SQLException [JDBC3] public void setURL(int parameterIndex, java.net.URL x) throws = SQLException [JDBC3] public void registerOutParameter(String parameterName, int = sqlType) throws SQLException [JDBC3] public void registerOutParameter(String parameterName, int = sqlType, int scale) throws SQLException [JDBC3] public void registerOutParameter (String parameterName, int = sqlType, String typeName) throws SQLException [JDBC3] public void setNull(String parameterName, int sqlType) throws = SQLException [JDBC3] public void setBoolean(String parameterName, boolean x) throws = SQLException [JDBC3] public void setByte(String parameterName, byte x) throws = SQLException [JDBC3] public void setShort(String parameterName, short x) throws = SQLException [JDBC3] public void setInt(String parameterName, int x) throws = SQLException [JDBC3] public void setLong(String parameterName, long x) throws = SQLException [JDBC3] public void setFloat(String parameterName, float x) throws = SQLException [JDBC3] public void setDouble(String parameterName, double x) throws = SQLException [JDBC3] public void setBigDecimal(String parameterName, BigDecimal x) = throws SQLException [JDBC3] public void setString(String parameterName, String x) throws = SQLException [JDBC3] public void setBytes(String parameterName, byte x[]) throws = SQLException [JDBC3] public void setDate(String parameterName, java.sql.Date x) = throws SQLException [JDBC3] public void setTime(String parameterName, java.sql.Time x) = throws SQLException [JDBC3] public void setTimestamp(String parameterName, = java.sql.Timestamp x) throws SQLException [JDBC3] public void setAsciiStream(String parameterName, = java.io.InputStream x, int length) throws SQLException [JDBC3] public void setBinaryStream(String parameterName, = java.io.InputStream x, int length) throws SQLException [JDBC3] public void setObject(String parameterName, Object x, int = targetSqlType, int scale) throws SQLException [JDBC3] public void setObject(String parameterName, Object x, int = targetSqlType) throws SQLException [JDBC3] public void setObject(String parameterName, Object x) throws = SQLException [JDBC3] public void setCharacterStream(String parameterName, = java.io.Reader reader, int length) throws SQLException [JDBC3] public void setDate(String parameterName, java.sql.Date x, = Calendar cal) throws SQLException [JDBC3] public void setTime(String parameterName, java.sql.Time x, = Calendar cal) throws SQLException [JDBC3] public void setTimestamp(String parameterName, = java.sql.Timestamp x, Calendar cal) throws SQLException [JDBC3] public void setNull (String parameterName, int sqlType, String = typeName) throws SQLException [JDBC3] public String getString(String parameterName) throws = SQLException [JDBC3] public boolean getBoolean(String parameterName) throws = SQLException [JDBC3] public byte getByte(String parameterName) throws SQLException [JDBC3] public short getShort(String parameterName) throws SQLException [JDBC3] public int getInt(String parameterName) throws SQLException [JDBC3] public long getLong(String parameterName) throws SQLException [JDBC3] public float getFloat(String parameterName) throws SQLException [JDBC3] public double getDouble(String parameterName) throws = SQLException [JDBC3] public byte[] getBytes(String parameterName) throws SQLException [JDBC3] public java.sql.Date getDate(String parameterName) throws = SQLException [JDBC3] public java.sql.Time getTime(String parameterName) throws = SQLException [JDBC3] public java.sql.Timestamp getTimestamp(String parameterName) = throws SQLException [JDBC3] public Object getObject(String parameterName) throws = SQLException [JDBC3] public BigDecimal getBigDecimal(String parameterName) throws = SQLException [JDBC3] public Object getObject(String parameterName, java.util.Map map) = throws SQLException [JDBC3] public Ref getRef (String parameterName) throws SQLException [JDBC3] public Blob getBlob (String parameterName) throws SQLException [JDBC3] public Clob getClob (String parameterName) throws SQLException [JDBC3] public Array getArray (String parameterName) throws SQLException [JDBC3] public java.sql.Date getDate(String parameterName, Calendar cal) [JDBC3] public java.sql.Time getTime(String parameterName, Calendar cal) [JDBC3] public java.sql.Timestamp getTimestamp(String parameterName, = Calendar cal) throws SQLException [JDBC3] public java.net.URL getURL(String parameterName) throws = SQLException <> [JDBC2] public long position(String pattern, long start) throws = SQLException [JDBC2] public long position(Clob pattern, long start) throws = SQLException [JDBC3] public int setString(long pos, String str) throws SQLException [JDBC3] public int setString(long pos, String str, int offset, int len) = throws SQLException [JDBC3] public java.io.OutputStream setAsciiStream(long pos) throws = SQLException [JDBC3] public java.io.Writer setCharacterStream(long pos) throws = SQLException [JDBC4] public Reader getCharacterStream(long pos, long length) throws = SQLException <> [JDBC4] public Clob createClob() throws SQLException [JDBC4] public Blob createBlob() throws SQLException [JDBC4] public NClob createNClob() throws SQLException [JDBC4] public Struct createStruct(String typeName, Object[] attributes) = throws SQLException [JDBC4] public boolean isValid(int timeout) throws SQLException [JDBC4] public void setClientInfo(String name, String value) throws = SQLClientInfoException [JDBC4] public void setClientInfo(Properties properties) throws = SQLClientInfoException <> [JDBC3] public ResultSet getSuperTypes(String catalog, String = schemaPattern, String typeNamePattern) throws SQLException [JDBC3] public ResultSet getSuperTables(String catalog, String = schemaPattern, String tableNamePattern) throws SQLException [JDBC3] public ResultSet getAttributes(String catalog, String = schemaPattern, String typeNamePattern, String attributeNamePattern) [JDBC4] public RowIdLifetime getRowIdLifetime() throws SQLException [JDBC4] public ResultSet getSchemas(String catalog, String = schemaPattern) throws SQLException [JDBC4] public ResultSet getFunctions(String catalog, String = schemaPattern, String functionNamePattern) throws SQLException [JDBC4] public ResultSet getFunctionColumns(String catalog, String = schemaPattern, String functionNamePattern, String columnNamePattern) = throws SQLException <> [JDBC2] public void setRef(int i, Ref x) throws SQLException [JDBC4] public void setRowId(int parameterIndex, RowId x) throws = SQLException [JDBC4] public void setNString(int parameterIndex, String value) throws = SQLException [JDBC4] public void setNCharacterStream(int parameterIndex, Reader = value, long length) throws SQLException [JDBC4] public void setNCharacterStream(int parameterIndex, Reader = value) throws SQLException [JDBC4] public void setCharacterStream(int parameterIndex, Reader value, = long length) throws SQLException [JDBC4] public void setCharacterStream(int parameterIndex, Reader value) = throws SQLException [JDBC4] public void setBinaryStream(int parameterIndex, InputStream = value, long length) throws SQLException [JDBC4] public void setBinaryStream(int parameterIndex, InputStream = value) throws SQLException [JDBC4] public void setAsciiStream(int parameterIndex, InputStream = value, long length) throws SQLException [JDBC4] public void setAsciiStream(int parameterIndex, InputStream = value) throws SQLException [JDBC4] public void setNClob(int parameterIndex, NClob value) throws = SQLException [JDBC4] public void setClob(int parameterIndex, Reader reader, long = length) throws SQLException [JDBC4] public void setClob(int parameterIndex, Reader reader) throws = SQLException [JDBC4] public void setBlob(int parameterIndex, InputStream inputStream, = long length) throws SQLException [JDBC4] public void setBlob(int parameterIndex, InputStream inputStream) = throws SQLException [JDBC4] public void setNClob(int parameterIndex, Reader reader, long = length) throws SQLException [JDBC4] public void setNClob(int parameterIndex, Reader reader) throws = SQLException <> [JDBC2] public Object getObject(int i, Map map) throws SQLException [JDBC2] public Object getObject(String s, Map map) throws SQLException if map is not empty [JDBC2] public Ref getRef(String columnName) throws SQLException [JDBC2] public Ref getRef(int i) throws SQLException [JDBC3] public java.net.URL getURL(int columnIndex) throws SQLException [JDBC3] public java.net.URL getURL(String columnName) throws = SQLException [JDBC3] public void updateRef(int columnIndex, java.sql.Ref x) throws = SQLException [JDBC3] public void updateRef(String columnName, java.sql.Ref x) throws = SQLException [JDBC3] public void updateBlob(int columnIndex, java.sql.Blob x) throws = SQLException [JDBC3] public void updateBlob(String columnName, java.sql.Blob x) = throws SQLException [JDBC3] public void updateClob(int columnIndex, java.sql.Clob x) throws = SQLException [JDBC3] public void updateClob(String columnName, java.sql.Clob x) = throws SQLException [JDBC4] public RowId getRowId(int columnIndex) throws SQLException [JDBC4] public RowId getRowId(String columnName) throws SQLException [JDBC4] public void updateRowId(int columnIndex, RowId x) throws = SQLException [JDBC4] public void updateRowId(String columnName, RowId x) throws = SQLException [JDBC4] public int getHoldability() throws SQLException [JDBC4] public void updateNString(int columnIndex, String nString) = throws SQLException [JDBC4] public void updateNString(String columnName, String nString) = throws SQLException [JDBC4] public void updateNClob(int columnIndex, NClob nClob) throws = SQLException [JDBC4] public void updateNClob(String columnName, NClob nClob) throws = SQLException [JDBC4] public void updateNClob(int columnIndex, Reader reader) throws = SQLException [JDBC4] public void updateNClob(String columnName, Reader reader) throws = SQLException [JDBC4] public void updateNClob(int columnIndex, Reader reader, long = length) throws SQLException [JDBC4] public void updateNClob(String columnName, Reader reader, long = length) throws SQLException [JDBC4] public NClob getNClob(int columnIndex) throws SQLException [JDBC4] public NClob getNClob(String columnName) throws SQLException [JDBC4] public void updateBlob(int columnIndex, InputStream inputStream, = long length) throws SQLException [JDBC4] public void updateBlob(String columnName, InputStream = inputStream, long length) throws SQLException [JDBC4] public void updateBlob(int columnIndex, InputStream inputStream) = throws SQLException [JDBC4] public void updateBlob(String columnName, InputStream = inputStream) throws SQLException [JDBC4] public void updateClob(int columnIndex, Reader reader, long = length) throws SQLException [JDBC4] public void updateClob(String columnName, Reader reader, long = length) throws SQLException [JDBC4] public void updateClob(int columnIndex, Reader reader) throws = SQLException [JDBC4] public void updateClob(String columnName, Reader reader) throws = SQLException [JDBC4] public String getNString(int columnIndex) throws SQLException [JDBC4] public String getNString(String columnName) throws SQLException [JDBC4] public Reader getNCharacterStream(int columnIndex) throws = SQLException [JDBC4] public Reader getNCharacterStream(String columnName) throws = SQLException [JDBC4] public void updateNCharacterStream(int columnIndex, Reader x, = int length) throws SQLException [JDBC4] public void updateNCharacterStream(String columnName, Reader x, = int length) throws SQLException [JDBC4] public void updateNCharacterStream(int columnIndex, Reader x) = throws SQLException [JDBC4] public void updateNCharacterStream(String columnName, Reader x) = throws SQLException [JDBC4] public void updateNCharacterStream(String columnName, Reader x, = long length) throws SQLException [JDBC4] public void updateCharacterStream(int columnIndex, Reader = reader, long length) throws SQLException [JDBC4] public void updateCharacterStream(int columnIndex, Reader = reader) throws SQLException [JDBC4] public void updateCharacterStream(String columnName, Reader = reader) throws SQLException [JDBC4] public void updateBinaryStream(int columnIndex, InputStream = inputStream, long length) throws SQLException [JDBC4] public void updateBinaryStream(String columnName, InputStream = inputStream, long length) throws SQLException [JDBC4] public void updateBinaryStream(int columnIndex, InputStream = inputStream) throws SQLException [JDBC4] public void updateBinaryStream(String columnName, InputStream = inputStream) throws SQLException [JDBC4] public void updateAsciiStream(int columnIndex, InputStream = inputStream, long length) throws SQLException [JDBC4] public void updateAsciiStream(String columnName, InputStream = inputStream, long length) throws SQLException [JDBC4] public void updateAsciiStream(int columnIndex, InputStream = inputStream) throws SQLException <> [JDBC2] public void setQueryTimeout(int seconds) throws SQLException if seconds is greater than 0 <> The following methods are not implemented in all classes that implement = Wrapper interface. [JDBC4] public boolean isWrapperFor(Class iface) throws SQLException [JDBC4] public T unwrap(Class iface) throws SQLException 4. Regression test Some tests are not run when you simply follow the test execution = procedure on the JDBC project web site. A few steps need to be added. 4-1 To run the distributed transaction (XA) tests: Set max_prepared_transactions parameter in postgresql.conf. The value = needs to be equal to or greater than max_connections. 4-2 To run Unicode tests: Create test database with Unicode encoding as follows: createdb -U test -E UTF8 -T template0 test 4-3 It is kind to instruct the users that they should set def_pgport = parameter in build.local.properties. I didn't notice this and = encountered an error when I ran the test for the first time.=20 4-4 Ability to run regression tests against the driver located in an = arbitrary place The current regression test builds the driver and uses it. It is = desirable to run the regression test against an installed driver like = "make installcheck" of PostgreSQL. With that feature, It would be = possible to make sure that the installation media contains a correct = driver and we performed packaging procedure with no problem. ------=_NextPart_000_0794_01CD093A.255282D0-- From atri.jiit@gmail.com Fri Mar 23 12:20:08 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 29266C32C71 for ; Fri, 23 Mar 2012 09:20:08 -0300 (ADT) Received: from mail-vb0-f46.google.com ([209.85.212.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SB3TT-0001c9-Bi for pgsql-jdbc@postgresql.org; Fri, 23 Mar 2012 12:20:07 +0000 Received: by vbbff1 with SMTP id ff1so1438264vbb.19 for ; Fri, 23 Mar 2012 05:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yasCWSSn31qTB+nKhBJ8N2ZYxkyXAd+bgCDOELyUz3k=; b=Qr4C+ZcG+MJ5OgHa1Y0egcvJkewkK4thel5MEoS77QrD+HLB1H79WI26VNkREiVpQc iVDb5cxQnsVdSWLJNM575XPMngLbRviUzTPWVkiOc1uJGAxrBkHbtAdw9muflyNTDS45 a5W9bC/aY6sfUbrLcO39znwruEzhIy/uYFAJjdMV5AgG6dh3EN1ORmG3QQ9xLOkJmorg y2Dx+iVBV6lSygoeTazCmf6Tvl3T0c4pPw2n5rau+mGaEnoiMu0R331NwIrWOkHlg/5z Ea8Au0sfE0rdmv77x7u/5qwElQmkp3aOHjKRcOI2C9G6CPM2r+ZC4ThOrlQ7RwyDFkpR 7jpA== MIME-Version: 1.0 Received: by 10.52.93.76 with SMTP id cs12mr4486962vdb.58.1332505194515; Fri, 23 Mar 2012 05:19:54 -0700 (PDT) Received: by 10.52.68.83 with HTTP; Fri, 23 Mar 2012 05:19:54 -0700 (PDT) In-Reply-To: <105552FBD01342E9AD9992514A7EB12F@maumau> References: <4f6b5ab4.ca13440a.18fa.5885@mx.google.com> <105552FBD01342E9AD9992514A7EB12F@maumau> Date: Fri, 23 Mar 2012 17:49:54 +0530 Message-ID: Subject: Re: Regarding GSoc 2012 project idea From: Atri Sharma To: MauMau , Dave Cramer Cc: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201203/41 X-Sequence-Number: 22780 On Fri, Mar 23, 2012 at 5:46 PM, MauMau wrote: > Hello, Atri, > > How about enhancing JDBC driver greatly to support many of JDBC 4.1 > features? I guess this will improve interoperability with more software. > While you address it, you will probably find some features lacking in the > PostgreSQL server. I think it's interesting to propose those features which > need to be implemented by the PostgreSQL server. > > Please look at the attached mail I posted here last year. I hope this will > help you. > > Regards > MauMau ---------- Hi Maumau/Dave, Sure,I'll go through it. Also,I was thinkingof creating a foreign data wrapper that wraps JDBC so that,a single data wrapper can be usedto connect to any database that can be accessed through a JDBC URL. Please let me know your opinion on this. Atri -- Regards, Atri l'apprenant From pg@fastcrypt.com Fri Mar 23 12:21:27 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 23B94C32C71 for ; Fri, 23 Mar 2012 09:21:27 -0300 (ADT) Received: from mail-ey0-f174.google.com ([209.85.215.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SB3Uj-0001fs-QU for pgsql-jdbc@postgresql.org; Fri, 23 Mar 2012 12:21:26 +0000 Received: by eaaq12 with SMTP id q12so992716eaa.19 for ; Fri, 23 Mar 2012 05:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=LHapNnv/uieqFX3hyFlDKnjhb9hb8rszzruKm7DGRII=; b=IQ12MLN6c2s/DsLrmTaymPEknvrjQ5OwPorp2+w3HBA58zYEcmBhVIfr6oWwVc55oV UuoMBqsHo+f0LB+c+o6SyO3whqfRKgwIt0u7iiJL4g4ENCZHxUvoBUosUm9vBpy1/27H +HLbQDe2aP5GxKoqp3Mrwf2x4BNFLFODGJBwcJPX1VLLvIZ/b+hlizh03fDHHafVwc/G apjjYyHKmrIjIseTxKibZSGXRK8T6LhJHTpVAxmWlNP1L54b7TdWcDSoVFn0qmjznkCx g2fby2ZhG/jmGtI/bXaSdImNqyCq3xMtSp5WaDJj7t6/wAjsV3tFiBvfyBLWcyDX4XkP vn9A== Received: by 10.14.101.139 with SMTP id b11mr1706262eeg.25.1332505272587; Fri, 23 Mar 2012 05:21:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.10.131 with HTTP; Fri, 23 Mar 2012 05:20:51 -0700 (PDT) In-Reply-To: <105552FBD01342E9AD9992514A7EB12F@maumau> References: <4f6b5ab4.ca13440a.18fa.5885@mx.google.com> <105552FBD01342E9AD9992514A7EB12F@maumau> From: Dave Cramer Date: Fri, 23 Mar 2012 08:20:51 -0400 X-Google-Sender-Auth: hTs2H0QsjtFnnn72xtMGP7HYul0 Message-ID: Subject: Re: Regarding GSoc 2012 project idea To: MauMau Cc: "\"Atri Sharma\"" , pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201203/42 X-Sequence-Number: 22781 MauMau, I had a quick look at your list. Have you looked at this list with an eye to what can realistically be implemented in PostgreSQL ? Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca On Fri, Mar 23, 2012 at 8:16 AM, MauMau wrote: > Hello, Atri, > > How about enhancing JDBC driver greatly to support many of JDBC 4.1 > features? I guess this will improve interoperability with more software. > While you address it, you will probably find some features lacking in the > PostgreSQL server. I think it's interesting to propose those features which > need to be implemented by the PostgreSQL server. > > Please look at the attached mail I posted here last year. I hope this will > help you. > > Regards > MauMau > > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > From maumau307@gmail.com Fri Mar 23 15:32:06 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 24ED1B319D1 for ; Fri, 23 Mar 2012 12:32:06 -0300 (ADT) Received: from mail-yx0-f174.google.com ([209.85.213.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SB6TE-0005Y1-JY for pgsql-jdbc@postgresql.org; Fri, 23 Mar 2012 15:32:05 +0000 Received: by yenl12 with SMTP id l12so2833965yen.19 for ; Fri, 23 Mar 2012 08:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-type:content-transfer-encoding:x-priority :x-msmail-priority:x-mailer:x-mimeole; bh=zNfi6h91vd5s2H2RfMxsI2MTLLea5r5nfZsOjtReCQ8=; b=nD5bpxg9RJ/Mgzg6QoXgXIvGp8B5OAb+cuaP6yQM1XJlTpsmcitsJQVR1qUNrSK+n5 wwprErTKeJfoi5x4/nUx+SbzTcGfhndDQ6Mp7BxWb8XTq00OOXA2zH1+GKtuSR86ebtY msLLwpjMIDlzyOBXAvf7lUufAWVQT2X2PsP2rgii8Z7hSWUiE7CNKh4xA9vkcxj7CAw8 lsZniA2FcnN9OGe53tzpbyHLJP6JV+lOfszUPoGhDap9uArH6URfu9ptybEoYeXSb/ae bPC7WqPK8lANUMzImD+shPjgWSumh/eFYODLaTanIBB1IdLrWU5czPODMiHkXYrEgEIM GOEA== Received: by 10.68.230.99 with SMTP id sx3mr30183408pbc.55.1332516711893; Fri, 23 Mar 2012 08:31:51 -0700 (PDT) Received: from maumau (p1042-ipbfp401sizuokaden.shizuoka.ocn.ne.jp. [122.20.60.42]) by mx.google.com with ESMTPS id jm10sm6029114pbc.74.2012.03.23.08.31.50 (version=SSLv3 cipher=OTHER); Fri, 23 Mar 2012 08:31:51 -0700 (PDT) Message-ID: <40FED3E8D80843F5B013477EF1039EB5@maumau> From: "MauMau" To: "Dave Cramer" Cc: "\"Atri Sharma\"" , References: <4f6b5ab4.ca13440a.18fa.5885@mx.google.com> <105552FBD01342E9AD9992514A7EB12F@maumau> In-Reply-To: Subject: Re: Regarding GSoc 2012 project idea Date: Sat, 24 Mar 2012 00:31:07 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18463 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/43 X-Sequence-Number: 22782 Hello, Dave cc: Atri Hmm... Out of items in "1. Missing features of JDBC specification(big features)", I wonder if the following ones might be the candidates, though I'm not confident: Statement pooling Ability to identify parameters to CallableStatement objects by name as well as by index Enhanced Blob/Clob functionality -- Support provided to create and free a Blob/Clob instance as well as additional methods added to improve accessiblity (e.g. Connection interface's createBlob()/createClob()) Availability to be notfied when a PreparedStatement that is associated with a PooledConnection has been closed or the driver determines is invalid Setting and getting of client information for connections: Connection interface's setClientInfo()/getClientInfo() But as you said "realistically," they may be difficult to implement only in a summer...I'm wondering what would be beneficial to many users and relatively addressable. The core question I'd like to know the answer for is "what should be done for JDBC driver to make many PostgreSQL users happier and attract more people to PostgreSQL?". With that eye, I thought it would be interesting to add supported JDBC features so that more software can interoperate with PostgreSQL. However, I don't know which JDBC features will be effective to widen PostgreSQL ecosystem. That investigation itself is a valuable topic, isn't it? Regards MauMau From maumau307@gmail.com Fri Mar 23 15:48:18 2012 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id AB449B319D1 for ; Fri, 23 Mar 2012 12:48:18 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SB6it-0004Jb-Hr for pgsql-jdbc@postgresql.org; Fri, 23 Mar 2012 15:48:17 +0000 Received: by pbcun15 with SMTP id un15so2648765pbc.19 for ; Fri, 23 Mar 2012 08:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-type:content-transfer-encoding:x-priority :x-msmail-priority:x-mailer:x-mimeole; bh=mXQQsUcOdtOLC5rHCKPgE1KxoHOJ2KhoxV+fdOpnFA0=; b=ZHvzndQtKzJiFJ3E8fuzd77fqbfB7QuR1hzxrgVlLInB18qZ5DLXpwMbn5sovx0et7 HBYikB8G6gkRZNZBjzOADZFMG64JBggjy38IxlhjG6ej5kIDISdSZopwsAPoyRzid7HD rfgk9sAwCLqgEzzJUZl+4wMA4NSIORkhjoW6KB5dITsmGqRNcWDO1ihMHDRBPCoQTaYz 2DLJ7U+NMg94TQluKpzB555bA15XjcQ1iH+y+gVSGjeupF7CwstsXplnOHUn9zkd14em yRen11qmDPbEwvkoPeHB3Zdjus3wgeTW9BJBXCC+DatbTWtB4ciqrPO4F9AyLEHeZ9ys 6MOg== Received: by 10.68.230.99 with SMTP id sx3mr30286898pbc.55.1332517682117; Fri, 23 Mar 2012 08:48:02 -0700 (PDT) Received: from maumau (p1042-ipbfp401sizuokaden.shizuoka.ocn.ne.jp. [122.20.60.42]) by mx.google.com with ESMTPS id z1sm6066646pbc.38.2012.03.23.08.48.00 (version=SSLv3 cipher=OTHER); Fri, 23 Mar 2012 08:48:01 -0700 (PDT) Message-ID: From: "MauMau" To: "Atri Sharma" , "Dave Cramer" Cc: References: <4f6b5ab4.ca13440a.18fa.5885@mx.google.com><105552FBD01342E9AD9992514A7EB12F@maumau> In-Reply-To: Subject: Re: Regarding GSoc 2012 project idea Date: Sat, 24 Mar 2012 00:47:27 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18463 X-Pg-Spam-Score: -2.0 (--) X-Archive-Number: 201203/44 X-Sequence-Number: 22783 Hello, Atri, From: "Atri Sharma" > Also,I was thinkingof creating a foreign data wrapper that wraps JDBC > so that,a single data wrapper can be usedto connect to any database > that can be accessed through a JDBC URL. > > Please let me know your opinion on this. That sounds interesting. But it seems difficult to me, because there seems to be many difficulties in implementing FDW for PostgreSQL (pgsql_fdw), which is being developed for PostgreSQL 9.2. Regards MauMau