Re: Insert..returning (was Re: Re: postgres TODO)

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain)
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Michael J Schout <mschout(at)gkg(dot)net>, Alessio Bragadini <alessio(at)albourne(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Insert..returning (was Re: Re: postgres TODO)
Date: 2000-07-12 11:27:14
Message-ID: 3.0.5.32.20000712212714.02f33910@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 05:14 12/07/00 -0400, D'Arcy J.M. Cain wrote:
>Thus spake Philip Warner
>> > Not to mention the juicy topics of access permissions and
>> >possible errors.
>>
>> Can't one fall back here on the 'insert followed by select' analogy? Or is
>> there a specific example that you have in mind?
>
>I think the thing he has in mind is the situation where one has insert
>perms but not select. The decision is whether to have the insert fail
>if the select fails. Or, do you allow the (virtual) select in this
>case since it is your own inserted row you are trying to read?

I would be inclined to follow the perms; is there a problem with that? You
should not let them read the row they inserted since it *may* contain
sensitive (automatically generated) data - the DBA must have had a reason
for preventing SELECT.

The next question is whether they should be allowed to do the insert, and
again I would be inclined to say 'no'. Can we check perms easily at the start?

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.C.N. 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2000-07-12 11:27:50 Re: Performance problem in aset.c
Previous Message Jan Wieck 2000-07-12 11:17:53 Re: Vacuum only with 20% old tuples