Re: CREATE SYNONYM in PostgreSQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vinayak <vinpokale(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: CREATE SYNONYM in PostgreSQL
Date: 2014-09-12 05:08:05
Message-ID: 20748.1410498485@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Vinayak <vinpokale(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2014-09-12 05:25:54 PostgreSQL service account on Windows 7: Use a virtual account
Previous Message Vinayak 2014-09-12 05:00:41 Re: CREATE SYNONYM in PostgreSQL