pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Igor Kryltsov <kryltsov@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Postgresql FK to MS SQL triggers
Date: Sat, 5 Mar 2005 14:04:52 -0800
Message-ID: <200503051404.52406.josh@agliodbs.com> (raw)
In-Reply-To: <cvub0o$1sll$2@news.hub.org>
References: <cvub0o$1sll$2@news.hub.org>

Igor,

> For interested people I wrote a PHP script which:
> 1) Extracts all underlying triggers from pg_trigger table  in Postgres used
> to support FK (3 triggers for each FK)
> 2) Generates a MSSQL script file which recreates all triggers in MSSQL

How about a script which goes the other way?

-- 
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco



view thread (2+ messages)

Message-ID: <200503051404.52406.josh@agliodbs.com>
Permalink:  ../200503051404.52406.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200503051404.52406.josh@agliodbs.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, kryltsov@yahoo.com
  Subject: Re: Postgresql FK to MS SQL triggers
  In-Reply-To: <200503051404.52406.josh@agliodbs.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