Re: Proposal for SYNONYMS

From: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
To: "Stephan Szabo" <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: "Josh Berkus" <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Proposal for SYNONYMS
Date: 2006-03-09 22:18:33
Message-ID: 36e682920603091418x7855e417ncb1cfeee1fc36d4b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 3/9/06, Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> wrote:
>
> As I understood the synonym plan, a
> person with select on the synonym but not on the referenced table wouldn't
> be able to select through the synonym, while if the view was created by
> someone with select a person with select on the view could select through
> the view.

In this respect, synonyms are surely different from views. Due to this, I
was pondering whether synonyms should have ACLs or whether they just pointed
to the object and ACLs were handled as they currently are. I didn't think
of a use case for them being different, but I know three of the RDBMS
vendors did implement them to have their own permissions, so there's gotta
be some reason for it. I'm guessing the reason is for accessing remote
database tables which isn't part of this proposal, however, it's generally
easier to add it now than later. I'm not averse to removing ACLs from
synonyms right now at all as we'd still benefit from the same functionality.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-03-09 22:23:11 Re: Proposal for SYNONYMS
Previous Message Stephan Szabo 2006-03-09 22:10:31 Re: Proposal for SYNONYMS