Re: [PATCHES] Fw: Isn't pg_statistic a security hole - Solution Proposal

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Joe Conway <joe(at)conway-family(dot)com>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] Fw: Isn't pg_statistic a security hole - Solution Proposal
Date: 2001-06-03 15:18:20
Message-ID: Pine.LNX.4.30.0106031703120.757-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

[ -> hackers ]

Tom Lane writes:

> > Will you expect the function to do dequoting etc. as well? This might get
> > out of hand.
>
> Hm. We already have such code available for nextval(),

IMHO, nextval() isn't the greatest interface in the world. I do like the
alternative (deprecated?) syntax sequence.nextval() because of the
notational resemblence to OO. (We might even be able to turn this into
something like an SQL99 "class" feature.)

As I understand it, currently

relation.function(a, b, c)

ends up as being a function call

function(relation, a, b, c)

where the first argument is "text". This is probably an unnecessary
fragility, since the oid of the relation should already be known by that
time. So perhaps we could change this that the first argument gets passed
in an Oid. Then we'd really only need the Oid version of Joe's
has_*_privilege functions.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-06-03 17:17:21 Re: [PATCHES] Fw: Isn't pg_statistic a security hole - Solution Proposal
Previous Message Joe Conway 2001-06-03 03:22:44 Re: Fw: Isn't pg_statistic a security hole - Solution Proposal

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2001-06-03 17:17:21 Re: [PATCHES] Fw: Isn't pg_statistic a security hole - Solution Proposal
Previous Message Joe Conway 2001-06-03 03:22:44 Re: Fw: Isn't pg_statistic a security hole - Solution Proposal