Re: Query for importing and exporting data from a database

From: "Yateen Joshi" <yjoshi(at)starentnetworks(dot)com>
To: "Douglas McNaught" <doug(at)mcnaught(dot)org>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Query for importing and exporting data from a database
Date: 2005-05-27 06:28:37
Message-ID: FF851C7EEB75954F9BCFB5CA117AB1EC019F6758@delta.nulinkinc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for that!
Is there any way I can check if my Postgres was compiled using that
option or not?

Yateen V. Joshi

-----Original Message-----
From: Douglas McNaught [mailto:doug(at)mcnaught(dot)org]
Sent: Thursday, May 26, 2005 8:49 PM
To: Yateen Joshi
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Query for importing and exporting data from a
database

"Yateen Joshi" <yjoshi(at)starentnetworks(dot)com> writes:

> Link: File-List
>
> Hi,
>
>
>
> I am using postgres 7.4.2 on Solaris. My unix system does not place a
> limitation of 2 GB on file size. If I export a data from my database
that
> causes the file size to be more than 2 GB, then that export fails (and
> vice versa for importing, i.e. if the file size is more than 3 GB, it
can
> not import). Two questions -
>
> Why does this happen?
>
> Is there any way to avoid this?

Probably, your Postgres was not compiled with the LARGEFILE option (I
forget exactly what it's called).

You may be able to work around it by doing something like:

pg_dump -t mytable mydb | cat > output.sql

-Doug

Browse pgsql-general by date

  From Date Subject
Next Message Philippe Lang 2005-05-27 08:21:21 Visual Studio 2005 .Net -> Npgsql -> Postgresql
Previous Message Devrim GUNDUZ 2005-05-26 23:08:00 libpq.so.3 problem, PostgreSQL >= 8.0.2 and RPM installations