Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 709A8475CB8 for ; Mon, 9 Sep 2002 14:15:54 -0400 (EDT) Received: from eddings.acpub.duke.edu (eddings.acpub.duke.edu [152.3.233.76]) by postgresql.org (Postfix) with ESMTP id 90320475C8B for ; Mon, 9 Sep 2002 14:15:53 -0400 (EDT) Received: from pandorina.biology.duke.edu (pandorina.biology.duke.edu [152.3.11.26]) by eddings.acpub.duke.edu (8.12.4/8.12.4/Duke-5.0.0) with ESMTP id g89IFq39024086; Mon, 9 Sep 2002 14:15:52 -0400 (EDT) Subject: stored procedures: sybase -> postgreSQL ? From: Charles Hauser To: PSQL_list Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-5.dulug.1) Date: 09 Sep 2002 14:15:53 -0400 Message-Id: <1031595353.774.55.camel@pandorina.biology.duke.edu> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/58 X-Sequence-Number: 9335 I am trying to port a Sybase table create script to one usable for postgreSQL. (note I am not a DBA) In particular I am not well versed on how to use/recode the stored procedures such as that in the example below. ALTER TABLE DnaFragment ADD PRIMARY KEY (dna_fragment_id) go exec sp_primarykey DnaFragment, dna_fragment_id go exec sp_bindrule DnaFragment_type_rule, 'DnaFragment.type' exec sp_bindefault Set_To_Current_Date, 'DnaFragment.date_last_modified' exec sp_bindefault Set_to_False, 'DnaFragment.is_obsolete' go regards, Charles