Re: viewing source code

From: "Roberts, Jon" <Jon(dot)Roberts(at)asurion(dot)com>
To: 'Alvaro Herrera' <alvherre(at)commandprompt(dot)com>
Cc: 'Trevor Talbot' <quension(at)gmail(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Kris Jurka <books(at)ejurka(dot)com>, Merlin Moncure <mmoncure(at)gmail(dot)com>, "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>, Bill Moran <wmoran(at)collaborativefusion(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: viewing source code
Date: 2007-12-20 14:07:56
Message-ID: 1A6E6D554222284AB25ABE3229A92762112A42@nrtexcus702.int.asurion.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

So your suggestion is first to come up with a query that dynamically checks
permissions and create a view for it. Secondly, change pgAdmin to reference
this view in place of pg_proc. Actually, it should be extended to all
objects in the database, not just pg_proc. If you don't have this
dictionary role, you shouldn't be able to look at any of the objects in the
database unless you own the object or have been granted rights to the
object.

I don't know the information_schema that well so I don't know if this is
something that should sit on top of PostgreSQL with views and then make
subsequent changes to pgAdmin or if the database itself needs to change to
handle this.

Jon

> -----Original Message-----
> From: Alvaro Herrera [mailto:alvherre(at)commandprompt(dot)com]
> Sent: Wednesday, December 19, 2007 9:56 AM
> To: Roberts, Jon
> Cc: 'Trevor Talbot'; Joshua D. Drake; Kris Jurka; Merlin Moncure; Jonah H.
> Harris; Bill Moran; pgsql-performance(at)postgresql(dot)org
> Subject: Re: [PERFORM] viewing source code
>
> Roberts, Jon escribió:
>
> > The more I thought about a counter proposal to put views on pg_proc, I
> > realized that isn't feasible either. It would break functionality of
> > pgAdmin because users couldn't view their source code with the tool.
>
> What's wrong with patching pgAdmin?
>
> --
> Alvaro Herrera
> http://www.CommandPrompt.com/
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Merlin Moncure 2007-12-20 14:30:07 Re: viewing source code
Previous Message Jan de Visser 2007-12-20 13:49:44 Re: Dual core Opterons beating quad core Xeons?