X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D1C45475921 for ; Wed, 14 May 2003 12:58:42 -0400 (EDT) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with ESMTP id 97785-03 for ; Wed, 14 May 2003 12:58:39 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id B07044763E8 for ; Wed, 14 May 2003 12:58:38 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h4EGweU6025251; Wed, 14 May 2003 12:58:40 -0400 (EDT) To: Larry Rosenman Cc: pgsql-sql@postgresql.org Subject: Re: Followup from yesterday's PL/pgSQL fun... In-reply-to: <177190000.1052930499@lerlaptop-red.iadfw.net> References: <177190000.1052930499@lerlaptop-red.iadfw.net> Comments: In-reply-to Larry Rosenman message dated "Wed, 14 May 2003 11:41:39 -0500" Date: Wed, 14 May 2003 12:58:39 -0400 Message-ID: <25250.1052931519@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/291 X-Sequence-Number: 13456 Larry Rosenman writes: > 1) should quote_literal find a ::text conversion on it's own? It won't, because the pg_cast entry for inet->text is marked "explicit casts only". In general I don't like implicit casts across datatype categories, and am hoping to move in the direction of marking more such casts as explicit-only. > 2) can text(cidr) be added to the default pg_cast table? I'll make that happen for 7.4. > 3) how can I add text(cidr) myself? Read the pg_cast description in http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=catalogs.html Insert a suitable row. regards, tom lane