Re: [pgadmin-support] Help for Migration

From: <Mamatha_Kagathi_Chan(at)DELL(dot)com>
To: <ringerc(at)ringerc(dot)id(dot)au>
Cc: <haramrae(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: [pgadmin-support] Help for Migration
Date: 2011-12-08 06:10:14
Message-ID: 89A978D5BD307B41B174E9250A8D3439082E2A@BLRX10HMBAN02.AMER.DELL.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-general

Thanks everybody for helping me understand how postgres works with stored programs. I will remember in future to put certain information clearly as mentioned in the website suggested by Craig. Thanks for that as well.

From: Craig Ringer [mailto:ringerc(at)ringerc(dot)id(dot)au]
Sent: Wednesday, December 07, 2011 6:53 PM
To: Chan, Mamatha Kagathi
Cc: haramrae(at)gmail(dot)com; pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] [pgadmin-support] Help for Migration

On 12/07/2011 06:57 PM, Mamatha_Kagathi_Chan(at)DELL(dot)com<mailto:Mamatha_Kagathi_Chan(at)DELL(dot)com> wrote:

HI Craig,

Yes I am using EnterpriseDB Postgres Plus Advanced Server.

But does that mean Postgres 9.0 version from Postgres community and Postgres9.0 version from EnterpriseDB works differently?
Yes! They're different things. EnterpriseDB adds an Oracle compatibility layer, stored procedures, and all sorts of other little extras. If they were the same, why would people pay for EnterpriseDB Advanced Server? They might pay for support, but not an up-front license fee for a product where they could download it for free...

You still haven't posted "select version()". That is one of the first items in this page:

http://wiki.postgresql.org/wiki/Guide_to_reporting_problems

... which I strongly suggest that you read, because following it would've saved all of us a lot of hassle and confusion.

And Postgres9.0 from community has a limitation for procedures?
Yes!

PostgreSQL (as of version 9.1 at least) has NO support for stored procedures. It supports user-defined stored functions in a variety of languages, but no stand-alone procedures. It emulates stored procedures by invoking a stored function stand-alone as, eg:

SELECT somefuncname();

but those functions can't do things like BEGIN/COMMIT, etc.

I can also get the same result if I execute it in pgadmin (version downloaded from postgres community) which is on a different client machine but connected to the server on enterpriseDB version

As EXEC proc.
If you're connected to EnterpriseDB, I'd expect that.

If you're connected to PostgreSQL, maybe PgAdmin is translating EXEC into a SELECT ?

--
Craig Ringer

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Vjacheslav Vjacheslav 2011-12-08 10:07:23 pgAdmin 1.14 bug
Previous Message Guillaume Lelarge 2011-12-07 13:33:59 Re: [pgadmin-support] Help for Migration

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Shraibman 2011-12-08 06:28:18 Re: pg crash shortly after 9.1.1 -> 9.1.2 upgrade
Previous Message Tom Lane 2011-12-08 05:54:25 Re: pg crash shortly after 9.1.1 -> 9.1.2 upgrade