Re: Error: "Out of memory while reading tuples." in pushing table from SAS to PostgreSQL on Mac

From: Andy Colson <andy(at)squeakycode(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Error: "Out of memory while reading tuples." in pushing table from SAS to PostgreSQL on Mac
Date: 2014-12-14 16:00:48
Message-ID: 548DB430.7060800@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/14/2014 09:51 AM, Adrian Klaver wrote:
> On 12/14/2014 07:44 AM, Andy Colson wrote:
>> On 12/13/2014 10:03 PM, wetter wetterana wrote:
>>> Hi,
>>>
>>> I'm passing rows from SAS to PostgreSQL (I assign a libname and use a
>>> PROC APPEND). This works fine with smaller tables (~below 1 million
>>> rows). However, as tables get larger I receive the following error
>>> messages:
>>>
>>>
>>> "ERROR: CLI describe error: Out of memory while reading tuples.; No
>>> query has been executed with that handle"
>>> and
>>> "GLOBAL SYSDBMSG POSTGRES: Out of memory while reading tuples.; No
>>> query has been executed with that handle
>>> GLOBAL SYSDBRC HY000"
>>>
>>> I've tried to change memory settings on the PostgreSQL server, but
>>> can't solve the problem. As far as I could understand—I'm new to
>>> PostgreSQL ;)—it seems that PostgreSQL want to somehow read
>>> information on the whole table before processing it and this behavior
>>> could eventually be switched off, but I might be wrong here.
>>>
>>> FYI:
>>> - I run SAS 9.4 on a windows machine.
>>> - I run PostgreSQL server on a MAC: PostgreSQL 9.3.5 on
>>> x86_64-apple-darwin12.5.0, compiled by Apple LLVM version 5.1, 64-bit
>>> I've Pgadmin 1.18.1 installed.
>>>
>>> Any help would be much appreciated!!
>>>
>>> THANKS!
>>>
>>>
>>> PS: For several reasons, I cannot use the bulkload feature in SAS for
>>> this job.
>>>
>>
>>
>> That error is coming from SAS, not PG. SAS must have pretty bad
>> documentation because when I google "GLOBAL SYSDBRC HY000" there is
>> pretty much nothing. (Also, I've never used, or even heard of SAS. At
>> first I thought you meant serial attached scsi)
>
> SAS is statistical software:
>
> http://www.sas.com/en_us/home.html
>
> Last time I used it mainframes roamed the Earth:)
>
>>
>> Does SAS support a cursor of some kind?
>>
>> -Andy
>>
>>
>
>

Ah! That would explain it.

Welp, this search was more helpful: "Out of memory while reading tuples"

http://stackoverflow.com/questions/22532149/vba-and-postgresql-connection

It says: include UseDeclareFetch=1 in connect string, which sounds like its part of odbc. How does SAS connect to PG?

-Andy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andy Colson 2014-12-14 16:08:37 Re: Error: "Out of memory while reading tuples." in pushing table from SAS to PostgreSQL on Mac
Previous Message Adrian Klaver 2014-12-14 15:51:03 Re: Error: "Out of memory while reading tuples." in pushing table from SAS to PostgreSQL on Mac