Re: Synonyms in PostgreSQL 9.2.4

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Panneerselvam Posangu *EXTERN*" <panneerpps(at)hotmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Synonyms in PostgreSQL 9.2.4
Date: 2013-06-05 09:58:52
Message-ID: A737B7A37273E048B164557ADEF4A58B17B9AB2C@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Panneerselvam Posangu wrote:
> I am currently working on a conversion project. We plan to make our application PostgreSQL compliant.
> And for this we have chosen PosgreSQL 9.2.4.
>
> Currently our application works along with Oracle 11g. In Oracle schema we have created Synonyms. The
> context is this:
> In Oracle schema we have couple of users. They own tables, views, and other objects. We create
> synonyms for a given object ,grant needed privilege and provide those synonyms to the users other than
> the owners.
>
> Is there any work-around you could suggest in PostgreSQL?

In the following I use "schema" in the PostgreSQL meaning of
the word.

I can think of two solutions:

1) Set the search_path of the users so that it contains the schemas
that contain the needed objects and grant them privileges on the
objects and schemas.

2) If for some reason that seems undesirable, you can use a
view as substitute for an Oracle schema object.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2013-06-05 10:12:11 Re: Synonyms in PostgreSQL 9.2.4
Previous Message Panneerselvam Posangu 2013-06-05 09:30:58 Synonyms in PostgreSQL 9.2.4