Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.postgresql > #290 > unrolled thread

default output format of timestamptz in psql

Started by"M. Strobel" <sorry_no_mail_here@nowhere.dee>
First post2011-12-31 12:40 +0100
Last post2012-02-10 09:56 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.databases.postgresql


Contents

  default output format of timestamptz in psql "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2011-12-31 12:40 +0100
    Re: default output format of timestamptz in psql Marcos PPa PPe <marcos@asi2cotarelo.net> - 2012-02-10 09:56 +0100

#290 — default output format of timestamptz in psql

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2011-12-31 12:40 +0100
Subjectdefault output format of timestamptz in psql
Message-ID<9m8am9Fl58U1@mid.uni-berlin.de>
Hi,

In my project I changed all  timestamp columns to timestamp with
time zone.

I am used to test a lot using psql. Now the display of a
timestamptz column takes up too much space. I would like to set
it to a shorter format.

Can this be done by setting a default psql output format somehow?

I know about views and to_char() and extract, but is there a psql
way of doing it?

/Str.

[toc] | [next] | [standalone]


#299

FromMarcos PPa PPe <marcos@asi2cotarelo.net>
Date2012-02-10 09:56 +0100
Message-ID<jh2m4i$jjs$1@speranza.aioe.org>
In reply to#290
You could try making a view, in wich you convert the type of the 
timestamptz columno with timestamp only.

El 31/12/2011 12:40, M. Strobel escribió:
> Hi,
>
> In my project I changed all  timestamp columns to timestamp with
> time zone.
>
> I am used to test a lot using psql. Now the display of a
> timestamptz column takes up too much space. I would like to set
> it to a shorter format.
>
> Can this be done by setting a default psql output format somehow?
>
> I know about views and to_char() and extract, but is there a psql
> way of doing it?
>
> /Str.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.databases.postgresql


csiph-web