From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | ivan <iv(at)psycho(dot)pl> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: now about psql and one function |
Date: | 2003-07-31 00:41:04 |
Message-ID: | 200307310041.h6V0f4d02895@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Why would someone not have the ability to read pg_user? The query is
gone in 7.4 anyway.
---------------------------------------------------------------------------
ivan wrote:
>
> in psql , file command.c : 1473 there is a query to check state for
> superuser, and this query is in begin/end transaction.
> When user dont have perm to read pg_user its fail but transation is never
> end, and ist make some confusion because user have to write "END;" or
> "ROLLBACK;" themself. I just removed BEGIN and END from this query.
>
>
> ok, and this function :
> create or replace func () returns INT as '
> DECLARE
> cnt INT;
> BEGIN
> CREATE TEMP TABLE ble (i INT);
> SELECT INTO cnt count(*) FROM ble;
> DROP TABLE ble;
> RETURN cnt;
> END;
> ' LANGUAGE 'plpgsql';
>
> and at first time everythink is ok, but in next time is error like this :
> pg_class_aclcheck : relation <nr> not found .
> (This function is only example , and i know that it doesnt sens)
> I think its by SysCache, how can i reset it ? or turn off ? or reload ?
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2003-07-31 01:28:52 | Re: using adbin, conbin, etc. |
Previous Message | Bruce Momjian | 2003-07-31 00:38:21 | Re: Is Patch Ok for deferred trigger disk queue? |