Re: Proposal for SYNONYMS - Mailing list pgsql-hackers

From elein
Subject Re: Proposal for SYNONYMS
Date
Msg-id 20060309222630.GP15165@varlena.com
Whole thread Raw
In response to Re: Proposal for SYNONYMS  ("Jonah H. Harris" <jonah.harris@gmail.com>)
Responses Re: Proposal for SYNONYMS  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
On Thu, Mar 09, 2006 at 04:42:43PM -0500, Jonah H. Harris wrote:
> On 3/9/06, Josh Berkus <josh@agliodbs.com> wrote:
> 
>     1) Is there a SQL standard for this?
> 
> 
> Nope.
> 
> 
>     2) For my comprehension, what's the difference between a SYNONYM and a
>     single-object (possibly updatable) view?
> 
> 
> Not a whole lot actually.  If we had updateable views, I'd suggest that people
> change their create synonym syntax to create view.  However, it would take
> substantially more work to implement updatable views than synonyms and the
> functionality of updatable views is substantially different than the use of
> synonyms alone.  If/when updatable views are implemented, I wouldn't have a
> problem switching create synonym to actually create a view.

Since updateable views are relatively easy to construct using rules
I'm not sure an entire new syntax is necessary.

--elein
elein@varlena.com

> 
> --
> Jonah H. Harris, Database Internals Architect
> EnterpriseDB Corporation
> 732.331.1324


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Proposal for SYNONYMS
Next
From: "Luke Lonergan"
Date:
Subject: Re: Merge algorithms for large numbers of "tapes"