COPY commands could use an enhancement.

Поиск
Список
Период
Сортировка
От Alfred Perlstein
Тема COPY commands could use an enhancement.
Дата
Msg-id 20010430023551.X18676@fw.wintelcom.net
обсуждение исходный текст
Ответы Re: COPY commands could use an enhancement.  (Joel Burton <jburton@scw.org>)
Re: COPY commands could use an enhancement.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
It would be very helpful if the COPY command could be expanded
in order to provide positional parameters.

I noticed that it didn't a while back and it can really hurt
someone when they happen to try to use pg_dump to move data
from one database to another database and they happened to
create the feilds in the tables in different orders.

Basically:
COPY "webmaster" FROM stdin;

could become:
COPY "webmaster" FIELDS "id", "name", "ssn" FROM stdin;

this way when sourcing it would know where to place the
feilds.

-- 
-Alfred Perlstein - [alfred@freebsd.org]
Daemon News Magazine in your snail-mail! http://magazine.daemonnews.org/


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alfred Perlstein
Дата:
Сообщение: Re: Thanks, naming conventions, and count()
Следующее
От: Vince Vielhaber
Дата:
Сообщение: Re: Thanks, naming conventions, and count()