Re: [pgadmin-support] Help for Migration

From: Alban Hertroys <haramrae(at)gmail(dot)com>
To: Mamatha_Kagathi_Chan(at)dell(dot)com
Cc: ringerc(at)ringerc(dot)id(dot)au, pgsql-general(at)postgresql(dot)org
Subject: Re: [pgadmin-support] Help for Migration
Date: 2011-12-07 09:26:22
Message-ID: CAF-3MvNcUWFOu-L8AKs7df93Z1UB8o7PwW692Z7ax14_87fV7g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-general

On 7 December 2011 10:08, <Mamatha_Kagathi_Chan(at)dell(dot)com> wrote:
> The procedure definition is
> CREATE OR REPLACE PROCEDURE

> -- So I am not calling a function but a procedure.

I don't think CREATE PROCEDURE is actually a valid command in
Postgres. The 9.0 documentation seems to confirm that
(http://www.postgresql.org/docs/9.0/static/sql-commands.html)

In Postgres, "procedures" are void-returning functions - there's no
difference. It's just a naming convention.

Perhaps you're using some 3rd party code for MS-SQL compatibility? I
imagine CREATE PROCEDURE would then be a simple wrapper around CREATE
FUNCTION ... RETURNING void.

Heh, didn't know you could define DEFAULT argument values like that,
but it seems you can!
--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Mamatha_Kagathi_Chan 2011-12-07 09:44:14 Re: [pgadmin-support] Help for Migration
Previous Message Mamatha_Kagathi_Chan 2011-12-07 09:08:17 Re: [pgadmin-support] Help for Migration

Browse pgsql-general by date

  From Date Subject
Next Message Andre Lopes 2011-12-07 09:27:06 Queries take long long(10 sec.) time running
Previous Message Mamatha_Kagathi_Chan 2011-12-07 09:08:17 Re: [pgadmin-support] Help for Migration