Re: Ora2pg migration

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: "Narendran (dot)j" <jnarendran3(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Ora2pg migration
Date: 2024-03-25 15:30:12
Message-ID: ed18136f6cecf67e4cb414395aa56356b5b82b47.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On Fri, 22 Mar 2024, 3:33 pm Laurenz Albe, <laurenz(dot)albe(at)cybertec(dot)at> wrote:
> > On Fri, 2024-03-22 at 11:08 +0530, Narendran .j wrote:
> > > I have export one table which has blob data type by ora2pg tool.while Importing insert file in postgres I'm getting this error .
> > > psql:ERROR: out of memory 
> > > DETAIL: Cannot enlarge string buffer containing 1073741808 bytes by 8191 more bytes.
> > >
> > > Please give me any suggestions and I adjust shared_buffer it didn't work.
> >
> > 1GB is a hard limit for memory allocations.
> >
> > How big are those BLOBs?  The theoretical limit in PostgreSQL is 1GB, but in
> > practice things start getting difficult around 500MB, unless you use binary
> > transfer.
>
> It's almost 8gb, could you explain me how can I transfer as binary file?.I'm new on this.

With 8GB, you cannot use "bytea" on PostgreSQL.

There is support for PostgreSQL Large Objects with ora2pg; you'd have to read the
documentation to find out more.

I cannot help you with the memory allocation error, mostly because you
didn't tell us what exactly you did to trigger it.

Yours,
Laurenz Albe

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Geri Wright 2024-03-25 15:48:27 PG_CRON
Previous Message Rajesh Kumar 2024-03-25 14:27:27 Re: Ora2pg migration