黒田徹
impre****@gmail*****
2007年 2月 6日 (火) 14:22:27 JST
お世話になります、黒田と申します。 今回、WebアプリケーションからPostgresForestのJDBC経由で長いSQLを実行 した際にエラーが発生したのですが、これはJDBCが影響しているのでしょうか? 現象としてはSQLの長さが約8KBを超えると org.postgresforest.util.PSQLException: ERROR: could not find block containing chunk 0x9735298 at org.postgresforest.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1525) at org.postgresforest.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1309) at org.postgresforest.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188) at org.postgresforest.vm.StatementExecuteSub.execute(StatementExecuteSub.java:64) at org.postgresforest.vm.StatementSub._execute(StatementSub.java:262) at org.postgresforest.vm.AbstractForestThread.run(AbstractForestThread.java:115) のエラーが発生してしまいます。 それ以下だとエラーが発生しません。 SQLの長さに限界はあるのでしょうか? ソースを拝見したところ、PGStream内のバッファを確保している箇所で8192 と指定されているので、そのあたりが影響しているのではないかと 考えていますが、どうでしょうか? 以上、よろしくお願いいたします。