Re: has_table_priviledge

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ahoward <ahoward(at)fsl(dot)noaa(dot)gov>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: has_table_priviledge
Date: 2003-04-24 22:39:44
Message-ID: 29292.1051223984@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

ahoward <ahoward(at)fsl(dot)noaa(dot)gov> writes:
> create table advisory_lock
> (
> relname text,
> constraint c check
> (has_table_privilege(user, relname, 'update'))
> );
> insert into advisory_lock values ('pg_class');

> psql:lock.sql:7: ERROR: text_oid: error in "pg_class": can't parse "pg_class"

> shouldn't this work?

It does work, for me. What PG version are you using, exactly? How did
you build it? I see no problem using 7.3 branch tip (so it could be
that the problem is fixed by some post-7.3.2 patch, but I can't think
of any that might be relevant).

Can anyone else try this case?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-04-24 22:46:26 Re: has_table_priviledge
Previous Message ahoward 2003-04-24 22:35:31 Re: has_table_priviledge