Re: Incompatibility Postgres 7.1 - Postgres 7.3

Поиск
Список
Период
Сортировка
От Dan Wilson
Тема Re: Incompatibility Postgres 7.1 - Postgres 7.3
Дата
Msg-id 1022941995.3cf8db2b32686@webmail.acucore.com
обсуждение исходный текст
Ответ на Incompatibility Postgres 7.1 - Postgres 7.3  ("Areski Belaid" <areski5@hotmail.com>)
Список 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@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




В списке pgsql-php по дате отправления:

Предыдущее
От: Jurgen Defurne
Дата:
Сообщение: Re: using CURSOR with PHP (completely OT)
Следующее
От: Devrim GUNDUZ
Дата:
Сообщение: Problems while compiling php_4-2.1 with PostgreSQL