pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mroyce@gmail.com <mroyce@gmail.com>
To: pgsql-sql@postgresql.org
Subject: timestamp precision - can I control precision at select time or set for all time?
Date: 16 Mar 2005 14:57:56 -0800
Message-ID: <1111013876.573335.284450@o13g2000cwo.googlegroups.com> (raw)

I have a database with several tables that use timestamp without time
zone type. I upgraded from an older pgsql and have code that does not
expect the precision in the select output. Is there a way I can get the
effect of zero precision without modifying all the tables?

The docs say it usees "default precision" as set in the "timestamp
literal". I wasn't able to find docs describing what literals are. If
there's a way I can set this to zero precision for everything, that'd
save me a bunch of time.

with thanks,
Royce




view thread (3+ messages)  latest in thread

Message-ID: <1111013876.573335.284450@o13g2000cwo.googlegroups.com>
Permalink:  ../1111013876.573335.284450@o13g2000cwo.googlegroups.com/
Also on:    postgresql.org/message-id/1111013876.573335.284450@o13g2000cwo.googlegroups.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mroyce@gmail.com
  Subject: Re: timestamp precision - can I control precision at select time or set for all time?
  In-Reply-To: <1111013876.573335.284450@o13g2000cwo.googlegroups.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox