pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
time zone on timestamp fields
3+ messages / 3 participants
[nested] [flat]

* time zone on timestamp fields
@ 2003-07-29 20:32 Arno A. Karner <karner@tnss.com>
  2003-08-01 00:29 ` Re: time zone on timestamp fields Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Arno A. Karner @ 2003-07-29 20:32 UTC (permalink / raw)
  To: pgsql-admin

I'm playing with redhat 9.0 which is postgresql 7.3..2
I set my date style like I have on previous releases to "ISO" the time 
stamps show up in ISO format, but with out time zone info?
is this going to be the default going forward from 7.3.2, is this just 
somthing temporary, should I just pick another style (grr iso pipes thru 
sort so nice). Comments sugjestions?

    Thanks in advance
        Arno




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: time zone on timestamp fields
  2003-07-29 20:32 time zone on timestamp fields Arno A. Karner <karner@tnss.com>
@ 2003-08-01 00:29 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2003-08-01 00:29 UTC (permalink / raw)
  To: Arno A. Karner <karner@tnss.com>; +Cc: pgsql-admin

"Arno A. Karner" <karner@tnss.com> writes:
> I'm playing with redhat 9.0 which is postgresql 7.3..2
> I set my date style like I have on previous releases to "ISO" the time 
> stamps show up in ISO format, but with out time zone info?

"timestamp" now means "timestamp without time zone", per SQL spec.

You want datatype "timestamp with time zone" (or "timestamptz" if you're
lazy).

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* time zone on timestamp fields
@ 2003-08-01 02:41 maillist <maillist@tnss.com>
  0 siblings, 0 replies; 3+ messages in thread

From: maillist @ 2003-08-01 02:41 UTC (permalink / raw)
  To: pgsql-admin

Ok me dumb, I've spend copple days editing my table definintions from
Dlm     DATETIME NOT NULL DEFAULT TEXT 'now'
Dlm = date time last modified to
Dlm     timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP

which from my previous post I was told should be
Dlm     timestamptz NOT NULL DEFAULT CURRENT_TIMESTAMP

now some where along the line I expect to get asked what time zone, and
I don't want my stupid programs to have to me time zone aware,  Back in
the good ol days I could use someting like cst5cdt, but I don't think
that will work any more. and since the postgres programers who I am
grateful to, don't want to code this politicly controled stuff either,
their documentation reflects this. and realy this makes no difference to
me either except in one one in october from 2:00 am to 2:00 am. But
before I go back and change the 100 so table defenitions again, and
change the ones I haven't made it to yet could  someone please give me a
quick and dirty explaination as to what I should change it to, and If
you want to elaberate on why, I'll consider it a plus.

    Thanks in advance
    Arno




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-08-01 02:41 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-29 20:32 time zone on timestamp fields Arno A. Karner <karner@tnss.com>
2003-08-01 00:29 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-08-01 02:41 time zone on timestamp fields maillist <maillist@tnss.com>

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