pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: George A.J <jinujosein@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: Which is faster SQL or PL/PGSQL
Date: Sun, 19 Oct 2003 22:29:40 -0700
Message-ID: <200310192229.40259.josh@agliodbs.com> (raw)
In-Reply-To: <20031020025741.43074.qmail@web14916.mail.yahoo.com>
References: <20031020025741.43074.qmail@web14916.mail.yahoo.com>

George,

> i am converting an MSSQL database to Postgres. there is a lot of procedures
> to convert.
>
> which language is best for functions, SQL or plpgsql.

If you're porting from T-SQL, you should use PL/pgSQL.  However, you will have 
to re-code many of your procedures by hand, as T-SQL and PL/pgSQL have 
substantially different syntax for control structures and cursors.

See the porting articles on techdocs.postgresql.org

> which is faster . i am using postgres 7.3.2

You should upgrade to the 7.3.4 if possible as it has some bug fixes missing 
in 7.3.2.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (13+ messages)  latest in thread

Message-ID: <200310192229.40259.josh@agliodbs.com>
Permalink:  ../200310192229.40259.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200310192229.40259.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, jinujosein@yahoo.com
  Subject: Re: Which is faster SQL or PL/PGSQL
  In-Reply-To: <200310192229.40259.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