From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Naomi Walker <nwalker@eldocomp.com>
Cc: Bhuvan A <bhuvansql@myrealbox.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: loading and unloading rows
Date: Thu, 7 Nov 2002 23:46:23 -0500 (EST)
Message-ID: <200211080446.gA84kOw29553@candle.pha.pa.us> (raw)
In-Reply-To: <5.1.0.14.2.20021103164103.00a09070@imap.eldocomp.com>
Naomi Walker wrote:
> Can we add unload/load functionality to the list, please?
>
>
>
> > > >Yes, agreed, it would be nice to have WHERE as part of COPY. In fact, I
> > > >like Informix's solution, which merges data in/out with INSERT/SELECT:
> > > >
> > > > UNLOAD TO '/tmp/x'
> > > > SELECT *
> > > > FROM tab;
> > > >
> > > >and
> > > >
> > > > LOAD FROM '/tmp/x'
> > > > INSERT INTO tab;
I have thought of that. We would probably join COPY to INSERT/SELECT
rather than use LOAD/UNLOAD. The problem is that the COPY code reads
right out of the table, rather than reading from the executor. This
change would require that. You can do it now by using TEMP tables to do
the COPY.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: pgman@candle.pha.pa.us, nwalker@eldocomp.com, bhuvansql@myrealbox.com
Subject: Re: loading and unloading rows
In-Reply-To: <200211080446.gA84kOw29553@candle.pha.pa.us>
References: <5.1.0.14.2.20021103164103.00a09070@imap.eldocomp.com> <200211080446.gA84kOw29553@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox