COPY TABLE TO

Поиск
Список
Период
Сортировка
От Paul Punett
Тема COPY TABLE TO
Дата
Msg-id LEEEJFIHCGEJHMKLKOFBEEBKCAAA.paul.punett@shazamteam.com
обсуждение исходный текст
Ответ на Re: *sigh*  (Randolf Richardson <rr@8x.ca>)
Ответы Re: COPY TABLE TO  ("Jeroen T. Vermeulen" <jtv@xs4all.nl>)
Re: COPY TABLE TO  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

I need to write a tab separated text file such that the first row contains
number of records in the table.
I insert first row with '0' (zero) as first column & rest columns NULL.
Then at the end of writing records to table I do a select into Variable
count(*) from table.
& update the first record with the count returned.
Unfortunately after the update the first row becomes the last row & hence
COPY TO FileName sends the count as the last record.

I need count as the first record? Any suggestions please ?
The documentation says indexing does not affect copy order.

I am developing on C++ with PostGre on windows. I need to port to Linux
later. Any suggestions on linking C++ code to PostGre (queries & functions)

Thanks
Paul



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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [COMMITTERS] pgsql-server/doc/src/sgml Tag: REL7_4_STABLE r ...
Следующее
От: Claudio Natoli
Дата:
Сообщение: Re: [pgsql-hackers-win32] Current Win32 port status