diff --git a/spring-batch-infrastructure-tests/pom.xml b/spring-batch-infrastructure-tests/pom.xml
index 4d3371dc8..f5ff81ef6 100644
--- a/spring-batch-infrastructure-tests/pom.xml
+++ b/spring-batch-infrastructure-tests/pom.xml
@@ -241,6 +241,13 @@
true
runtime
+
+ postgresql
+ postgresql
+ 8.3-603.jdbc3
+ true
+ runtime
+
diff --git a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/IbatisPagingItemReaderAsyncTests.java b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/IbatisPagingItemReaderAsyncTests.java
index 46ac7e987..a6c4f8a75 100644
--- a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/IbatisPagingItemReaderAsyncTests.java
+++ b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/IbatisPagingItemReaderAsyncTests.java
@@ -75,6 +75,7 @@ public class IbatisPagingItemReaderAsyncTests {
int max = 10;
for (int i = 0; i < max; i++) {
try {
+ logger.info("Testing asynch reader, iteration="+i);
doTest();
}
catch (Throwable e) {
@@ -136,7 +137,11 @@ public class IbatisPagingItemReaderAsyncTests {
SqlMapClient sqlMapClient = createSqlMapClient();
IbatisPagingItemReader reader = new IbatisPagingItemReader();
- reader.setQueryId("getPagedFoos");
+ if ("postgres".equals(System.getProperty("ENVIRONMENT"))) {
+ reader.setQueryId("getPagedFoosPostgres");
+ } else {
+ reader.setQueryId("getPagedFoos");
+ }
reader.setPageSize(2);
reader.setSqlMapClient(sqlMapClient);
reader.setSaveState(true);
diff --git a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/JdbcPagingQueryIntegrationTests.java b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/JdbcPagingQueryIntegrationTests.java
index 758b944d6..6103f8323 100644
--- a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/JdbcPagingQueryIntegrationTests.java
+++ b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/JdbcPagingQueryIntegrationTests.java
@@ -115,14 +115,20 @@ public class JdbcPagingQueryIntegrationTests {
public void testJumpToItem() throws Exception {
PagingQueryProvider queryProvider = getPagingQueryProvider();
+
+ int minId = jdbcTemplate.queryForInt("SELECT MIN(ID) FROM T_FOOS");
List