•  
Results 1 to 8 of 8

Thread: Error while inserting from external table

  1. #1
    Join Date
    Sep 2011
    Location
    Australia
    Posts
    4

    Default Error while inserting from external table

    During an insert from an external table we got the following error. Is there some configuration change we can make to fix this? Is the problem in the driver, gpfdist or database? As far as I know we are not compressing the table being loaded.

    org.postgresql.util.PSQLException - ERROR: Compression failed: insufficient memory (errno=-4) uncompressed len 3712, compressed 3723 (cdbsrlz.c:144)

    The SQL being run is like: "insert into data.s%d (select * from data.ex_s%d)"

  2. #2

    Default

    Hello,
    I remember an old bug similar to that.
    It made a DDL statement involving an external table to possibly fail due to insufficent memory.

    That bug has been resolved in Greenplum 4.0.1.
    What version are you using?

    Regards,
    Carlo Ascani - 2ndQuadrant Italy
    PostgreSQL Training, Services and Support
    carlo.ascani@2ndQuadrant.it | www.2ndQuadrant.it

  3. #3
    Join Date
    Sep 2011
    Location
    Australia
    Posts
    4

    Default

    Thanks for the reply, We are running 4.0.3.

  4. #4

    Default

    Ok,
    I will report that to EMC guys.

    Thank you
    Carlo Ascani - 2ndQuadrant Italy
    PostgreSQL Training, Services and Support
    carlo.ascani@2ndQuadrant.it | www.2ndQuadrant.it

  5. #5
    Join Date
    Jan 2011
    Posts
    253

    Default

    Another idea: do you have escaped data in the file, and maybe one of the escapes is wrong?

  6. #6
    Join Date
    Sep 2011
    Location
    Australia
    Posts
    4

    Default

    Thanks for the suggestions. We are getting more general memory issues (unable to allocate during queries and loading) after approx 6 days of loading. We have raised a service request with EMC.

    Will let you know the outcome.

    Cheers.

  7. #7
    Join Date
    Sep 2011
    Location
    Australia
    Posts
    4

    Default

    We are upgrading to 4.1.2 after advice from EMC. In the meantime we improved our loading code to do less queries and less frequent commits and this has slowed the problem right down.

  8. #8
    Join Date
    Nov 2009
    Location
    Prato, Tuscany, Italy
    Posts
    163

    Default

    That's great to know!

    Thank you for letting us (and the readers of the forum) know.

    Cheers,
    Gabriele

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •