Re: Help with exporting data

Поиск
Список
Период
Сортировка
От Jason Larke
Тема Re: Help with exporting data
Дата
Msg-id h24NC9925392.200303042312@heresy.aa.ops.us.uu.net
обсуждение исходный текст
Ответ на Help with exporting data  (Brent Wood <b.wood@niwa.co.nz>)
Список pgsql-general
>>>>> On Fri, 28 Feb 2003 15:39:30 +1300, Brent Wood
>>>>> <b.wood@niwa.co.nz> said:

BW> Is there a simpler (& more efficient) way to get the result
BW> of a select into a plain text file, without the Postgres
BW> header/trailer lines & the "|" between attributes?

There are psql options to turn off the headers and footers and to
select your own field seperator. You probably want some
combination of

\pset format unaligned
\pset tuples_only
\pset fieldsep 'field_seperator_character'

--
Jason Larke- jlarke@uu.net- http://www.nnaf.net/~jlarke Send mail for PGP key
I don't speak for UUNET or Worldcom. I speak for Odin. And he's *pissed*.
Any sufficiently advanced weapon is indistinguishable from a practical joke.
"People change, and smile: but the agony abides."-T.S. Eliot, The Dry Salvages

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Unable to delete row on 7.3.2 with schemas
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: phpBB2 slow on postgres vs mysql ?