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

From Tom Lane
Subject Re: CREATE SYNONYM in PostgreSQL
Date
Msg-id 20748.1410498485@sss.pgh.pa.us
Whole thread Raw
In response to Re: CREATE SYNONYM in PostgreSQL  (Vinayak <vinpokale@gmail.com>)
Responses Re: CREATE SYNONYM in PostgreSQL  (Vinayak <vinpokale@gmail.com>)
List pgsql-general
Vinayak <vinpokale@gmail.com> writes:
> Is it possible to parse the CREATE SYNONYM statement and convert into CREATE
> VIEW statement using post_parse_analyze_hook? or is there any other idea to
> automate this process?

You will not be able to do it without modifying the grammar.  SYNONYM
isn't even a keyword in stock PG.

            regards, tom lane


pgsql-general by date:

Previous
From: Vinayak
Date:
Subject: Re: CREATE SYNONYM in PostgreSQL
Next
From: Craig Ringer
Date:
Subject: PostgreSQL service account on Windows 7: Use a virtual account