Re: [ADMIN] REF: Data Migration MS SQL Server 7.0 to PostgreSQL 8.4 on Linux

From: Jenaro Centeno Gómez <jcenteno(at)aldia(dot)com(dot)mx>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: [ADMIN] REF: Data Migration MS SQL Server 7.0 to PostgreSQL 8.4 on Linux
Date: 2010-02-12 17:21:55
Message-ID: 4B758E33.5090706@aldia.com.mx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-es-ayuda vepug

On 11/02/10 09:06, Kevin Grittner wrote:
> Luis Dominguez<bcld(at)hotmail(dot)com> wrote:
>
>
>> I am now in the process of migrating a database from a driver
>> ms sql server 7.0 to postgresql 8.4 vesion but I have a problem
>> with the data type (timestamp) SQL Server 7.0 that refers to a
>> single binary field that is updated randomly by row, and this
>> field is paramount in my application for purposes of monitoring,
>> postgresql 8.4 now also have the same timestamp but refers to
>> other data (date + time), I investigated other types of data such
>> as (serial, uuid, xid, byte etc) in postgresql and not get
>> something just to replace it, I thought of a function that do
>> something similar but not yet tried, and of course I turn to you
>> to see if I can lend a hand with this rut that I have right now
>>
>
> Did you consider creating a SEQUENCE used by a trigger on update or
> insert of a row?
>
> http://www.postgresql.org/docs/8.4/interactive/sql-createsequence.html
>
> -Kevin
> --
> TIP 1: para suscribirte y desuscribirte, visita http://archives.postgresql.org/pgsql-es-ayuda
>
>
>
timestamp type in SQL Server is like ROWID in Oracle, and as Kevin said,
you could use the serial type as a replacement.

--
-------------------------------------------------------------------------------------------
L.A. Jenaro Centeno Gómez Al-Día Se renueva con la mejora continua.

Jefe de Tecnologías de la Información
Alimentos La Concordia, S.A. de C.V.
Tel. 01 474 741 9200
Ext. 9280
www.aldia.com.mx

Attachment Content-Type Size
jcenteno.vcf text/x-vcard 499 bytes

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message dx k9 2010-02-12 17:39:12 Postgresql & PAM & active directory
Previous Message Ray Stell 2010-02-12 17:02:16 Re: VACUUM WARNING: skipping "pg_statistic" --- only table or database owner can vacuum it

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message oscar arocha 2010-02-12 20:34:06 Permisología en pg_hba.conf
Previous Message Alvaro Herrera 2010-02-12 15:14:54 Re: De 8.2 en XP a 8.4 en Linux pg_dump

Browse vepug by date

  From Date Subject
Next Message Edwin Quijada 2010-02-12 21:58:42 Re: [pgsql-es-ayuda] REF : MIgracion de datos ms sql server 7.0 a Postgresql 8.4 en Linux
Previous Message Jaime Casanova 2010-02-11 19:48:12 Re: REF : MIgracion de datos ms sql server 7.0 a Postgresql 8.4 en Linux