Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8243291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:28:01+00:00 2026-06-07T21:28:01+00:00

I have a need to import a CLOB and BLOB objects exported from other

  • 0

I have a need to import a CLOB and BLOB objects exported from other DBMS to PostgreSQL. Such LOBs are a separate files whose path references are placed in a CSV file. The structure of table is (id int PK, clobcol text).
Here is the example structure:

  • data.csv

    1|some_clob.dat
    2|some_clob.dat
    
  • configuration file: pgloader.conf

    [pgsql]
    host = localhost
    port = 5432
    base = test
    user = some_user
    pass = 
    
    log_file            = d:/tmp/pgloader.log
    log_min_messages    = DEBUG
    client_min_messages = WARNING
    lc_messages         = C
    
    client_encoding = 'utf-8'
    copy_every      = 5
    commit_every    = 5
    #copy_delimiter  = %
    
    null         = ""
    empty_string = "\ "
    
    [clob]
    table           = clob_table
    format          = text
    filename        = D:/pgloader-2.3.2/test/data.csv
    field_sep       = |
    quotechar       = "
    columns         = id:1, clobcol:2
    index           = id:1
    blob_columns    = clobcol:2:ifx_clob
    

For that import I’ve decided to use PGloader tool (Python script, I’m on Windows BTW). But when I execute:

pgloader.py -c pgloader.conf

I get the error in log file:

Warning: column 'clobcol' is not a valid blob reference: d:/pgloader-2.3.2/test/clob.out
need more than 1 value to unpack

COPY error on lines 1

and the record lands in database in form of: (id: 1, clobcol: ‘some_clob.dat’).
I have no idea what’s wrong and how to correct that. Can you give me any suggestions?
Thank you

Regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:28:03+00:00Added an answer on June 7, 2026 at 9:28 pm

    Resolved: missing range of CLOB data to copy.
    E.g:

        1|0,25,some_clob.dat
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have few text and excel file, from which I need to import data
I have a need to import a number of CSV files into corresponding tables
I have several files about 15k each of CSV data I need to import
I have an application that uses DBF files and I need to import them
I have csv file exported from access. (dates formatted to match mysql) I need
I have about 28 csv files and I need to import this into database
I have an MS-Access mdb file that I need to import data from into
I have several 50+ MB sized csv files I need to import to my
I have several files comprising a tomcat web application that I need to import
I have a html/javascript table/grid that I need to import data from a file,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.