pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Wilson <dan@acucore.com>
To: Areski Belaid <areski5@hotmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Incompatibility Postgres 7.1 - Postgres 7.3
Date: Sat,  1 Jun 2002 08:33:15 -0600
Message-ID: <1022941995.3cf8db2b32686@webmail.acucore.com> (raw)
In-Reply-To: <OE2969dStaJAyBCsAng00003d0c@hotmail.com>
References: <3CCE936B.245D870C@juliana-multimedia.com>
	<200204301522.44037.jm.poure@freesurf.fr>
	<3CCECCD8.A11B8F8C@juliana-multimedia.com>
	<OE2969dStaJAyBCsAng00003d0c@hotmail.com>

Postgres has two different timestamp types now.  There is "timestamp with 
timezone" and "timestamp without timezone".  Internally the "with timezone" is 
stored as timestamptz. And by default, a timestamp will have a timezone. You 
can think of timestamptz as the same as timestamp.

So there is really not a problem here unless you wanted a "timestamp without 
timezone".  If this is the case, currently phpPgAdmin doesn't provide for the 
creation of timestamp without timezone through the table create 
functionality.  You will have to do it manually through the "Run SQL" box in 
the DB Details page.

-Dan

Quoting Areski Belaid <areski5@hotmail.com>:

> Someone can help me ....
> 
> I have a compatibility problem between Postgres 7.1 - Postgres 7.3...
> Guess !!! It's  --- timestamptz ---
> 
> When I create a field with timestamp type... the new postgresql replace that
> by
> timestamptz.... I use phpPgAdmin, I don't know where is from  the problem...
> 
> Simple example, If I execute that :
>     CREATE TABLE "statistic" (
>            "Id" int4 NOT NULL,
>            "DATE" timestamp);
> 
> I shall have that on the database:
>       CREATE TABLE "statistic" (
>            "Id" int4 NOT NULL,
>            "DATE" timestamptz);
> 
> Grrrrrr, =)
> 
> Helpsssssss, Areski
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly






view thread (3+ messages)  latest in thread

Message-ID: <1022941995.3cf8db2b32686@webmail.acucore.com>
Permalink:  ../1022941995.3cf8db2b32686@webmail.acucore.com/
Also on:    postgresql.org/message-id/1022941995.3cf8db2b32686@webmail.acucore.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: dan@acucore.com, areski5@hotmail.com
  Subject: Re: Incompatibility Postgres 7.1 - Postgres 7.3
  In-Reply-To: <1022941995.3cf8db2b32686@webmail.acucore.com>
  References: <3CCE936B.245D870C@juliana-multimedia.com> <200204301522.44037.jm.poure@freesurf.fr> <3CCECCD8.A11B8F8C@juliana-multimedia.com> <OE2969dStaJAyBCsAng00003d0c@hotmail.com> <1022941995.3cf8db2b32686@webmail.acucore.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