Re: [HACKERS] RFC - change of behaviour of pg_get_userbyid & pg_get_viewdef?

From: "Dominic J(dot) Eidson" <sauron(at)the-infinite(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Cc: pgsql-general(at)hub(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [HACKERS] RFC - change of behaviour of pg_get_userbyid & pg_get_viewdef?
Date: 2000-09-25 00:22:29
Message-ID: Pine.LNX.4.10.10009241856280.21058-100000@morannon.the-infinite.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-sql

On Sun, 24 Sep 2000, Philip Warner wrote:

> Two routines do eccentric things when they can't find required supporting
> data:
>
> pg_get_userbyid
>
> returns 'unknown (UID=<uid-number>)' when the UID does not exist.

[Snip]

> The proposal is to return NULL in the above cases - in the final case,
> probably also generate a NOTICE.

In these cases, is NULL = 0? - What if it returns the UID for "root"
(typically UID 0)... I think an error message should/would be better in
this case.

Just my $.02.

--
Dominic J. Eidson
"Baruk Khazad! Khazad ai-menu!" - Gimli
-------------------------------------------------------------------------------
http://www.the-infinite.org/ http://www.the-infinite.org/~dominic/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ben Leslie 2000-09-25 01:00:14 Poor performance in EXCEPT?
Previous Message Tom Lane 2000-09-24 23:02:25 Re: [HACKERS] RFC - change of behaviour of pg_get_userbyid & pg_get_viewdef?

Browse pgsql-hackers by date

  From Date Subject
Next Message Hiroshi Inoue 2000-09-25 00:26:38 Re: Concurrent-update problem in bufmgr.c
Previous Message Tom Lane 2000-09-24 23:48:10 Concurrent-update problem in bufmgr.c

Browse pgsql-sql by date

  From Date Subject
Next Message Indraneel Majumdar 2000-09-25 00:37:53 Select between two databases
Previous Message Tom Lane 2000-09-24 23:02:25 Re: [HACKERS] RFC - change of behaviour of pg_get_userbyid & pg_get_viewdef?