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


Groups > comp.databases.postgresql > #290

default output format of timestamptz in psql

From "M. Strobel" <sorry_no_mail_here@nowhere.dee>
Newsgroups comp.databases.postgresql
Subject default output format of timestamptz in psql
Date 2011-12-31 12:40 +0100
Message-ID <9m8am9Fl58U1@mid.uni-berlin.de> (permalink)

Show all headers | View raw


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.

Back to comp.databases.postgresql | Previous | NextNext in thread | Find similar | Unroll thread


Thread

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

csiph-web