Re: Display of text fields

From: Richard Huxton <dev(at)archonet(dot)com>
To: nasr(dot)laili(at)tin(dot)it
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Display of text fields
Date: 2004-09-02 15:54:45
Message-ID: 41374245.4020106@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ennio-Sr wrote:

> My questions are then:
>
> 1. Is there a way to avoid displaying the '---------' lines, apart from
> the \a flag ?

I don't think so, not in that layout.

> 2. In case I put the memos in the main table, would it be possible to
> control someway the display of memo-text fields? [Only some of the
> records have a memo, and a referring col set to 'T', so I'm looking
> for a selective instruction, such as: if ctl_memo='T' display memo,
> else, display the other cols only].

Use a view along with a CASE...END expression

> 3. Does the pager work better on version 7.4.3?

I'm not aware of any changes. Is the problem when you have a single
text-field that takes up too much space? If so, I'd construct my view
with a substring:

CREATE VIEW my_view AS
SELECT a,b,c,substring(long_memo_field, 1, 80)
FROM ...

HTH
--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike 2004-09-02 16:51:09 Re: pgAccess via ssh?
Previous Message Graeme Hinchliffe 2004-09-02 15:43:07 Nicer way to access field