From: Philip Warner <pjw@rhyme.com.au>
To: pgsql-hackers@postgreSQL.org
To: pgsql-general@hub.org
To: pgsql-sql@postgreSQL.org
Subject: RFC - change of behaviour of pg_get_userbyid & pg_get_viewdef?
Date: Sun, 24 Sep 2000 13:15:55 +1000
Message-ID: <3.0.5.32.20000924131555.02807820@mail.rhyme.com.au> (raw)
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 |/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: pjw@rhyme.com.au, pgsql-hackers@postgreSQL.org, pgsql-general@hub.org
Subject: Re: RFC - change of behaviour of pg_get_userbyid & pg_get_viewdef?
In-Reply-To: <3.0.5.32.20000924131555.02807820@mail.rhyme.com.au>
References: <3.0.5.32.20000924131555.02807820@mail.rhyme.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox