pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15152: Java heap size
3+ messages / 3 participants
[nested] [flat]

* BUG #15152: Java heap size
@ 2018-04-13 06:50  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Bug reporting form @ 2018-04-13 06:50 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: aistrong.hs@gmail.com

The following bug has been logged on the website:

Bug reference:      15152
Logged by:          Isaac  Arasavalli
Email address:      aistrong.hs@gmail.com
PostgreSQL version: 10.1
Operating system:   Windows 7
Description:        

When I fetch a table with huge data,  the result set fails with heap issue
with postgreSql. 
But in DB2 it fetches group by group so it handles. 
To fix there is an option to set autocommit off and set fetch size at
resultset. 

For,  this I have to do lot of code change due to many occurrences of simila
issue in my huge application. 

Is there any alternative to fix this,  like setting any parameters at data
source leve or any other way to minimize code change and solve. 

Please help.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #15152: Java heap size
@ 2018-04-13 07:27  Jaime Soler <jaime.soler@gmail.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Jaime Soler @ 2018-04-13 07:27 UTC (permalink / raw)
  To: aistrong.hs@gmail.com; pgsql-bugs@lists.postgresql.org

Hi,
If you have any question related to jdbc driver you should send it to
pgsql-jdbc@postgresql.org . Also I would like to mention that you could use
defaultRowFetchSize = int at connection level or setFetchSize at statement
level to define how many record will be read by resultset  .

Regards


2018-04-13 8:50 GMT+02:00 PG Bug reporting form <noreply@postgresql.org>:

> The following bug has been logged on the website:
>
> Bug reference:      15152
> Logged by:          Isaac  Arasavalli
> Email address:      aistrong.hs@gmail.com
> PostgreSQL version: 10.1
> Operating system:   Windows 7
> Description:
>
> When I fetch a table with huge data,  the result set fails with heap issue
> with postgreSql.
> But in DB2 it fetches group by group so it handles.
> To fix there is an option to set autocommit off and set fetch size at
> resultset.
>
> For,  this I have to do lot of code change due to many occurrences of
> simila
> issue in my huge application.
>
> Is there any alternative to fix this,  like setting any parameters at data
> source leve or any other way to minimize code change and solve.
>
> Please help.
>
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #15152: Java heap size
@ 2018-04-23 22:25  Dave Cramer <davecramer@gmail.com>
  parent: Jaime Soler <jaime.soler@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Dave Cramer @ 2018-04-23 22:25 UTC (permalink / raw)
  To: Jaime Soler <jaime.soler@gmail.com>; +Cc: aistrong.hs@gmail.com; pgsql-bugs@lists.postgresql.org

But to answer your question the reason we need autocommit off is because
PostgreSQL would have to use a WITH HOLD cursor outside of a transaction.
WITH HOLD cursors materialize cursors to disk. There is no technical reason
we don't support them. If you are interested you can supply a PR for us.

Thanks

Dave Cramer

On 13 April 2018 at 03:27, Jaime Soler <jaime.soler@gmail.com> wrote:

> Hi,
> If you have any question related to jdbc driver you should send it to
> pgsql-jdbc@postgresql.org . Also I would like to mention that you could
> use defaultRowFetchSize = int at connection level or setFetchSize at
> statement level to define how many record will be read by resultset  .
>
> Regards
>
>
> 2018-04-13 8:50 GMT+02:00 PG Bug reporting form <noreply@postgresql.org>:
>
>> The following bug has been logged on the website:
>>
>> Bug reference:      15152
>> Logged by:          Isaac  Arasavalli
>> Email address:      aistrong.hs@gmail.com
>> PostgreSQL version: 10.1
>> Operating system:   Windows 7
>> Description:
>>
>> When I fetch a table with huge data,  the result set fails with heap issue
>> with postgreSql.
>> But in DB2 it fetches group by group so it handles.
>> To fix there is an option to set autocommit off and set fetch size at
>> resultset.
>>
>> For,  this I have to do lot of code change due to many occurrences of
>> simila
>> issue in my huge application.
>>
>> Is there any alternative to fix this,  like setting any parameters at data
>> source leve or any other way to minimize code change and solve.
>>
>> Please help.
>>
>>
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-04-23 22:25 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-13 06:50 BUG #15152: Java heap size PG Bug reporting form <noreply@postgresql.org>
2018-04-13 07:27 ` Jaime Soler <jaime.soler@gmail.com>
2018-04-23 22:25   ` Dave Cramer <davecramer@gmail.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