Received: from acheron.rime.com.au (root@albatr.lnk.telstra.net [139.130.54.222]) by hub.org (8.10.1/8.10.1) with ESMTP id e8O2Ebs92729 for ; Sat, 23 Sep 2000 22:14:37 -0400 (EDT) Received: from oberon (Oberon.rime.com.au [203.8.195.100]) by acheron.rime.com.au (8.9.3/8.9.3) with SMTP id MAA16388; Sun, 24 Sep 2000 12:14:03 +1000 Message-Id: <3.0.5.32.20000924131555.02807820@mail.rhyme.com.au> X-Sender: pjw@mail.rhyme.com.au X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Sun, 24 Sep 2000 13:15:55 +1000 To: pgsql-hackers@postgreSQL.org, pgsql-general@hub.org, pgsql-sql@postgreSQL.org From: Philip Warner Subject: RFC - change of behaviour of pg_get_userbyid & pg_get_viewdef? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200009/693 Two routines do eccentric things when they can't find required supporting data: pg_get_userbyid returns 'unknown (UID=)' 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 |/