| From: | "Joe Conway" <joe(at)conway-family(dot)com> | 
|---|---|
| To: | "Peter Eisentraut" <peter_e(at)gmx(dot)net>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | "PostgreSQL Development" <pgsql-hackers(at)postgresql(dot)org> | 
| Subject: | Re: Re: [PATCHES] Fw: Isn't pg_statistic a security hole - Solution Proposal | 
| Date: | 2001-06-09 01:28:20 | 
| Message-ID: | 006301c0f083$77eda960$d7d310ac@jecw2k1 | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches | 
> > ISTM the name-based variants will primarily be used for user-entered
> > names, and in that case the user can reasonably expect that a name
> > will be interpreted the same way as if he'd written it out in a query.
>
> That would be correct if the user were actually entering the name in the
> same way, i.e., unquoted or double-quoted.
>
> > The nextval approach is ugly, I'll grant you, but it's also functional.
>
> But it's incompatible with the SQL conventions.
>
Is the concern that the name-based variants of the function should be called
like:
   select has_table_privilege(current_user, pg_class, 'insert');
     or
   select has_table_privilege(current_user, "My Quoted Relname", 'insert');
instead of
   select has_table_privilege(current_user, 'pg_class', 'insert');
     or
   select has_table_privilege(current_user, '"My Quoted Relname"',
'insert');
?
If so, what would be involved in fixing it?
From an end user's perspective, I wouldn't mind the latter syntax, although
the former is clearly more intuitive. But I'd rather have the second form
than nothing (just MHO).
-- Joe
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mike Cianflone | 2001-06-09 01:40:26 | Strange behavior on multiple primary key behavior deleting childr en | 
| Previous Message | Tom Lane | 2001-06-09 00:20:28 | Re: ERROR: Memory exhausted in AllocSetAlloc(909324558) | 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2001-06-09 04:31:21 | Re: Re: [PATCHES] Fw: Isn't pg_statistic a security hole - Solution Proposal | 
| Previous Message | Peter Eisentraut | 2001-06-08 23:17:17 | Re: take 2: show all / reset all |