From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Re: COPY BINARY file format proposal |
Date: | 2000-12-10 23:50:23 |
Message-ID: | 200012102350.SAA10451@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Also, IIRC part of the problem with text-based COPY is that we can't
> specify field order (I think this affectes dumping the regression DB).
> Would it be possible to add the ability to (a) specify field order, and (b)
> dump a subset of fields?
Informix does this nicely:
UNLOAD TO "file"
SELECT *
FROM tab
Merging COPY and SELECT has some real advantages. You can specify
columns, parts of a table using WHERE, and even joins. Very flexible.
Perhaps, if the table name is missing from COPY, we can allow a SELECT:
COPY TO 'file'
SELECT *
FROM tab
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2000-12-10 23:53:11 | Re: RFC C++ Interface |
Previous Message | Bruce Momjian | 2000-12-10 23:48:22 | Re: Re: COPY BINARY file format proposal |