Memory alloc exception - Mailing list pgsql-general

From
Subject Memory alloc exception
Date
Msg-id 1d5fe4184f914a86aabca8ede3cbcc38@lfv.se
Whole thread Raw
Responses Re: Memory alloc exception  (Ron <ronljohnsonjr@gmail.com>)
Re: Memory alloc exception  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general

 

Hi list,

I get this error when running a SQL statement in my Java application.

ERROR: Invalid memory alloc request size 1683636507

Location: File: d:\pginstaller.auto\postgres.windows-x64\src\backend\utils\mmgr\mcxt.c, Routine: MemoryContextAlloc, Line: 779

Server SQLState: XX000

 

I think it has something with to do with PostgreSQL

This is how I had my postgrsql.conf:

shared_buffers = 128MB

#huge_pages = try

#temp_buffers = 8MB

#max_prepared_transactions = 0

#work_mem = 6MB

work_mem = 64MB

#maintenance_work_mem = 64MB

maintenance_work_mem =  64MB

 

Then I changed to this postgrsql.conf:

shared_buffers = 4096MB

#huge_pages = try

#temp_buffers = 8MB

#max_prepared_transactions = 0

#work_mem = 6MB

work_mem = 256MB

#maintenance_work_mem = 64MB

maintenance_work_mem =  256MB

 

And got this error instead:

Org.postgresql.util.PSQLException: AnI/O error occurred while sending to the backend.

 

Any ideas?

 

Kind regards,

Paul

 

pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Losing data because of problematic configuration?
Next
From: Ron
Date:
Subject: Re: Memory alloc exception