From: Jenaro Centeno Gómez <jcenteno@aldia.com.mx>
To: pgsql-es-ayuda@postgresql.org
Subject: Re: [ADMIN] REF: Data Migration MS SQL Server 7.0 to PostgreSQL 8.4 on Linux
Date: Fri, 12 Feb 2010 11:21:55 -0600
Message-ID: <4B758E33.5090706@aldia.com.mx> (raw)
In-Reply-To: <4B73C895020000250002F180@gw.wicourts.gov>
References: <SNT110-W49AEC4F2267D5ACA7179D3C64E0@phx.gbl>
<4B73C895020000250002F180@gw.wicourts.gov>
On 11/02/10 09:06, Kevin Grittner wrote:
> Luis Dominguez<bcld@hotmail.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
Attachments:jcenteno.vcf (text/x-vcard, 497B) download
begin:vcard
fn;quoted-printable:Jenaro Centeno G=C3=B3mez
n;quoted-printable:Centeno G=C3=B3mez;Jenaro
org;quoted-printable:Alimentos La Concordia, S.A. de C.V.;Tecnolog=C3=ADas de la Informaci=C3=B3n
adr;quoted-printable:La Marimba;;Loma de Prados No. 1332;Lagos de Moreno;Jal;47460;M=C3=A9xico
email;internet:jcenteno@aldia.com.mx
title;quoted-printable:Jefe de Tecnolog=C3=ADas de la Informaci=C3=B3n
tel;work:474 7419200 Ext. 9280
x-mozilla-html:TRUE
url:www.aldia.com.mx
version:2.1
end:vcard
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: jcenteno@aldia.com.mx, pgsql-es-ayuda@postgresql.org
Subject: Re: [ADMIN] REF: Data Migration MS SQL Server 7.0 to PostgreSQL 8.4 on Linux
In-Reply-To: <4B758E33.5090706@aldia.com.mx>
* 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