Re: Postgreqsl & Package

From: Shridhar Daithankar <shridhar_daithankar(at)myrealbox(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgreqsl & Package
Date: 2003-10-22 12:23:05
Message-ID: 200310221753.05451.shridhar_daithankar@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 22 October 2003 17:11, Birahim FALL wrote:
> Thanks, Shridhar,
> I've read something like that in my search this morning!
> But doing that you can have only one package in the scope of a schema.
> Then in a multipackage project these packages cannot access directly to
> the same objects.
> In you eg. We could have a table a.people, and it is not in a scope
> accessible to b.test1 without a grant statement.

Yes that is correct. In fact you could look at it as additional security
feature. i.e. functions from a package can only be accessed by a certain
users..:-)

Besides there is only one grant you need per schema, that is usage. Shouldn't
be a such a big problem, isn't it?

I would be surprised if oracle packages did not provide this feature.

> More info is welcomed,

Check schema search path

http://developer.postgresql.org/docs/postgres/sql-set.html

I just checked if I could create nested schemas. That would be way too cool..
but it is not supported..:-(

HTH

Shridhar

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pedro Alves 2003-10-22 12:26:23 Re: Same conditions, different planning?
Previous Message Birahim FALL 2003-10-22 12:22:55 Identifier max length