From: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org, pgsql-general(at)hub(dot)org, pgsql-sql(at)postgresql(dot)org |
Subject: | Change of behaviour of pg_get_userbyid & pg_get_viewdef - do it? |
Date: | 2000-09-27 11:10:12 |
Message-ID: | 3.0.5.32.20000927211012.02f9f370@mail.rhyme.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-sql |
Based on the lack of reaction on GENERAL and SQL, I am inclined to go ahead
with the
changes below at least as far as returning NULL instead of 'Not a View' or
'unknown (UID=<uid-number>)' (as per Tom's request), if noone objects...
At 13:15 24/09/00 +1000, 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.
>
>pg_get_viewdef
>
> returns 'Not a view' when passed a non-existant or non-view table
> it also signals errors when the underlying metadata can not be found.
>
>The proposal is to return NULL in the above cases - in the final case,
>probably also generate a NOTICE.
>
>Does anybody have a problem with this? Think it's a bad idea etc?
>
----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 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 |/
From | Date | Subject | |
---|---|---|---|
Next Message | Papp Gyozo | 2000-09-27 11:20:16 | Re: Tablenames in Resultsets? |
Previous Message | Peter Eisentraut | 2000-09-27 10:42:37 | Re: problem creating template database |
From | Date | Subject | |
---|---|---|---|
Next Message | Papp Gyozo | 2000-09-27 11:20:05 | Re: Dynamic application data refreshing |
Previous Message | Peter Eisentraut | 2000-09-27 10:51:04 | Re: use of / in ~ vs. ~* |
From | Date | Subject | |
---|---|---|---|
Next Message | Keith Wong | 2000-09-27 13:32:40 | |
Previous Message | Koen Antonissen | 2000-09-27 10:54:20 | New used in Non-Rule Query problem solved |