From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Joe Conway <joe(at)conway-family(dot)com>, 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-13 17:22:01 |
Message-ID: | 27207.992452921@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> Could we make the assumption that table names in catalogs
>> will be of type 'name'?
> I wouldn't want to guarantee it for the information schema.
Your objections are not without merit, and in the interest of bringing
this thing to closure I'll concede for now. I want to get on with this
so that I can wrap up the pg_statistic view that started the whole
thread.
What I suggest we do is apply the portions of Joe's latest patch that
support has_table_privilege with OID inputs and with NAME inputs,
omitting the combinations that take TEXT inputs and do casefolding.
We can add that part later if it proves that people do indeed want it.
I have specific reasons for wanting to keep the functions accepting
NAME rather than TEXT: that will save a run-time type conversion in the
common case where one is reading the input from a system catalog, and
it will at least provide automatic truncation of overlength names when
one is accepting a literal. (I trust Peter won't object to that ;-).)
We will probably have to revisit this territory when we implement
schemas: there will need to be a way to input qualified table names
like foo.bar, and a way to input NON qualified names like "foo.bar".
But we can cross that bridge when we come to it.
Comments, objections?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Volpe | 2001-06-13 17:24:45 | Setuid functions |
Previous Message | Bruce Momjian | 2001-06-13 17:16:51 | Re: Australian timezone configure option |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-06-13 19:56:06 | Re: Patch to warn about oid/xid wraparound |
Previous Message | Bruce Momjian | 2001-06-13 17:16:51 | Re: Australian timezone configure option |