field separator problem

Поиск
Список
Период
Сортировка
Искать

field separator problem

От:
"Tena Sakai" <tsakai@gallo.ucsf.edu>
Дата:

Hi Everybody,

I am having a problem with field separator.  Maybe
someone can assist me.

But first thing firtst: I am running postgresql 8.2.4
on redhat, dell 64 bit machine:

I issue from psql \f (or "\pset fieldsep ','") and
psql appears to accept what I want:

  canon=# \f ','
  Field separator is ",".

canon is the name of database, but when I issue a select
command, it still uses '|' as separator.  What am I
doing wront?

Regards,

Tena Sakai
tsakai@gallo.ucsf.edu


Re: field separator problem

От:
Michael Fuhr <mike@fuhr.org>
Дата:
On Wed, Oct 03, 2007 at 05:13:48PM -0700, Tena Sakai wrote:
> I issue from psql \f (or "\pset fieldsep ','") and
> psql appears to accept what I want:
> 
>   canon=# \f ','
>   Field separator is ",".
> 
> canon is the name of database, but when I issue a select
> command, it still uses '|' as separator.  What am I
> doing wront?

fieldsep applies only to unaligned mode (\a or \pset format unaligned).

-- 
Michael Fuhr

Re: field separator problem

От:
"Tena Sakai" <tsakai@gallo.ucsf.edu>
Дата:

many thanks, Michael!  I appreciate it.

Regards,

Tena


-----Original Message-----
From: Michael Fuhr [mailto:mike@fuhr.org]
Sent: Wed 10/3/2007 5:54 PM
To: Tena Sakai
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] field separator problem

On Wed, Oct 03, 2007 at 05:13:48PM -0700, Tena Sakai wrote:
> I issue from psql \f (or "\pset fieldsep ','") and
> psql appears to accept what I want:
>
>   canon=# \f ','
>   Field separator is ",".
>
> canon is the name of database, but when I issue a select
> command, it still uses '|' as separator.  What am I
> doing wront?

fieldsep applies only to unaligned mode (\a or \pset format unaligned).

--
Michael Fuhr

FAQ