Re: [QUESTIONS] Using psql \f to change delimiter to space

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: djackson(at)cpsgroup(dot)com (Jackson, DeJuan)
Cc: pgsql-questions(at)postgreSQL(dot)org, pgsql-hackers(at)hub(dot)org
Subject: Re: [QUESTIONS] Using psql \f to change delimiter to space
Date: 1998-05-08 17:25:17
Message-ID: 199805081725.NAA09742@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> > > When I invoke psql, the default delimiter is the pipe "|"
> > > character. I can't find the correct syntax to
> > > change the delimiter back to a single space. If I
> > > type :
> > > \f <whitespace> -- delimiter stays at |
> > > \f \<whitespace> -- delimiter stays at |
> > >
> >
> Sorry to correct you Bruce but that causes the delimiter to be set to
> nothing ('') not space (' ').

I stand corrected. This has been asked before, and the only solution I
know is:

psql -F ' ' testdb

Is that acceptable, or do you want it to work with \f? The problem is
that the trailing spaces are removed from all command lines, so it is not
seeing the space.

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-05-08 17:31:15 Re: [PATCHES] Try again: S_LOCK reduced contentionh]
Previous Message Bruce Momjian 1998-05-08 17:16:53 Re: [HACKERS] Bug in linking in old libraries