Re: [BUGS] Bug #548: Misleading documentation of `palloc'

2002-01-03 Thread Bruce Momjian
Developer's FAQ updated to: palloc() and pfree() are used in place of malloc() and free() because we find it easier to automatically free all memory allocated when a query completes. This assures us that all memory that was allocated gets freed even if we have lost track of w

Re: [BUGS] Serializable access giving wrong error messages?

2002-01-03 Thread Mikko Vierula
Tom Lane wrote: > What would you have it do differently? Accept the insert and then give > some random error message at the commit? I'm sorry, but I don't see > a problem here. > regards, tom lane Thanks Tom I would like to see error message 'ERROR: Can't serialize acce

[BUGS] Refcursor problem

2002-01-03 Thread Dmitry Fomichev
Hi, I am running 7.2b3 and trying to make something like this work (new refcursor stuff): CREATE TABLE t (c text); CREATE FUNCTION errtest(refcursor, text) RETURNS refcursor AS ' BEGIN OPEN $1 FOR SELECT c FROM t WHERE c=$2; RETURN $1; END; ' LANGUAGE 'plpgsql'; INSERT INTO t V

[BUGS] pl/tcl for cygwin not install

2002-01-03 Thread guard
pl/tcl language not install cygwin -- ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

[BUGS] Bug #549: select table privilege in postgres allows user to create index on the table

2002-01-03 Thread pgsql-bugs
Shahid Mohammad Shamsi ([EMAIL PROTECTED]) reports a bug with a severity of 2 The lower the number the more severe it is. Short Description select table privilege in postgres allows user to create index on the table Long Description I created a user and assigned select privilege on a table. The

[BUGS] Bug #549: select table privilege in postgres allows user to create index on the table

2002-01-03 Thread pgsql-bugs
Shahid Mohammad Shamsi ([EMAIL PROTECTED]) reports a bug with a severity of 2 The lower the number the more severe it is. Short Description select table privilege in postgres allows user to create index on the table Long Description I created a user and assigned select privilege on a table. The

Re: [BUGS] Bug #549: select table privilege in postgres allows user to create index on the table

2002-01-03 Thread Tom Lane
[EMAIL PROTECTED] writes: > select table privilege in postgres allows user to create index on the table Actually, it appears that CREATE INDEX has no permission check at all. I agree this is a bug. Probably CREATE INDEX should require ownership permission, the same as ALTER TABLE.

Re: [HACKERS] [BUGS] Bug #549: select table privilege in postgres allows user to create index on the table

2002-01-03 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Added to TODO: > * Allow only owner to create indexes I was going to just fix it now. Do you want to leave it for 7.3? regards, tom lane ---(end of broadcast)--- TIP 5: Hav

Re: [HACKERS] [BUGS] Bug #549: select table privilege in postgres allows

2002-01-03 Thread Bruce Momjian
Tom Lane wrote: > [EMAIL PROTECTED] writes: > > select table privilege in postgres allows user to create index on the table > > Actually, it appears that CREATE INDEX has no permission check at all. > > I agree this is a bug. Probably CREATE INDEX should require ownership > permission, the sam

[BUGS] select table privilege in postgres allows user to create index on the table

2002-01-03 Thread Shahid Mohammad Shamsi
Hi, I created a user and assigned select privilege on a table. The user can not insert any data or add a field to the table. But, the user can create indexes on the table despite having select only privileges. This becomes a serious problem if the user can create unique indexes on the table where

Re: [BUGS] Refcursor problem

2002-01-03 Thread Tom Lane
Dmitry Fomichev <[EMAIL PROTECTED]> writes: > I am running 7.2b3 and trying to make something like this work (new > refcursor stuff): > CREATE TABLE t (c text); > CREATE FUNCTION errtest(refcursor, text) RETURNS refcursor AS ' > BEGIN > OPEN $1 FOR SELECT c FROM t WHERE c=$2; > R

Re: [HACKERS] [BUGS] Bug #549: select table privilege in postgres allows

2002-01-03 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Added to TODO: > > * Allow only owner to create indexes > > I was going to just fix it now. Do you want to leave it for 7.3? If you think it is safe, go ahead. I fixed some stuff last night. :-) I will remove from TODO when