dbTalk Databases Forums  

default output format of timestamptz in psql

comp.databases.postgresql comp.databases.postgresql


Discuss default output format of timestamptz in psql in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
M. Strobel
 
Posts: n/a

Default default output format of timestamptz in psql - 12-31-2011 , 05:40 AM






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.

Reply With Quote
  #2  
Old   
Marcos PPa PPe
 
Posts: n/a

Default Re: default output format of timestamptz in psql - 02-10-2012 , 02:56 AM






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ó:
Quote:
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.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.