X-Original-To: pgsql-chat-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 6EF8BD1B8A0 for ; Mon, 18 Aug 2003 16:09:10 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 30067-02 for ; Mon, 18 Aug 2003 13:09:00 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 529B9D1B58A for ; Mon, 18 Aug 2003 13:08:59 -0300 (ADT) Received: (qmail 24937 invoked by uid 500); 18 Aug 2003 16:14:40 -0000 Date: Mon, 18 Aug 2003 11:14:40 -0500 From: Bruno Wolff III To: Dawn Albrecht Cc: pgsql-chat@postgresql.org Subject: Re: New and Timestamp Question Message-ID: <20030818161440.GA23963@wolff.to> Mail-Followup-To: Dawn Albrecht , pgsql-chat@postgresql.org References: <20030815163110.GA10617@wolff.to> <20030818135203.24022.qmail@web11507.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030818135203.24022.qmail@web11507.mail.yahoo.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/5 X-Sequence-Number: 6 You should keep discussions on the list as other people may be able to help you and other people might be interested in any solutions that are given. On Mon, Aug 18, 2003 at 06:52:03 -0700, Dawn Albrecht wrote: > I have searched the list archives, but have not found > anything that specifically addresses this. Where > would you use the to_char? I want to change the view > of it in the actual table but still be treated as a > date/time. This sounds like you are trying to do something like you might for a spread sheet where you can supply formats for outputting data for the various columns. Things don't work like that in Postgres (and probably most databases). When you want to look at the data, you use formatting functions such as to_char to provide output in the desired format. So to see time in a 12 hour format you might do something like: select to_char(column,'HH12:MI'); If you don't want to scatter to_char's all over the place, then you might want to create view and use that to look at the table.