Re: CREATE SYNONYM in PostgreSQL - Mailing list pgsql-general

From Albe Laurenz
Subject Re: CREATE SYNONYM in PostgreSQL
Date
Msg-id A737B7A37273E048B164557ADEF4A58B17D342C6@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to CREATE SYNONYM in PostgreSQL  (Vinayak <vinpokale@gmail.com>)
List pgsql-general
Vinayak wrote:
> We are converting the Oracle's CREATE SYNONYM statement into PostgreSQL.
> I think to replace the SYNONYM we use search_path in PostgreSQL and the same
> thing is explained in the below post also.
> http://postgresql.1045698.n5.nabble.com/Synonyms-in-PostgreSQL-9-2-4-td5757986.html
> 
> Is there any way to automate the oracle's CREATE SYNONYM in PostgreSQL or
> can we use hook like post_parse_analyze_hook to implement this?
> Thought?

If search_path is too coarse (affects all objects in a schema), I recommend that
you use views to replace Oracle's synonyms.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Ramesh T
Date:
Subject: Re: stackbuilder
Next
From: Jerry Sievers
Date:
Subject: Re: CREATE SYNONYM in PostgreSQL