Re: Incompatibility Postgres 7.1 - Postgres 7.3

From: Dan Wilson <dan(at)acucore(dot)com>
To: Areski Belaid <areski5(at)hotmail(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Incompatibility Postgres 7.1 - Postgres 7.3
Date: 2002-06-01 14:33:15
Message-ID: 1022941995.3cf8db2b32686@webmail.acucore.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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(at)hotmail(dot)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(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Devrim GUNDUZ 2002-06-03 15:11:59 Problems while compiling php_4-2.1 with PostgreSQL
Previous Message Jurgen Defurne 2002-06-01 05:15:20 Re: using CURSOR with PHP (completely OT)