X-Original-To: pgsql-hackers@postgreSQL.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BA0C4476085 for ; Mon, 5 May 2003 12:53:59 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id E17C6476408 for ; Mon, 5 May 2003 12:53:54 -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 h45Gs0U6028646; Mon, 5 May 2003 12:54:00 -0400 (EDT) To: "Zeugswetter Andreas SB SD" Cc: "Peter Eisentraut" , pgsql-hackers@postgreSQL.org, pgsql-interfaces@postgreSQL.org Subject: Re: Transform groups (more FE/BE protocol issues) In-reply-to: <46C15C39FEB2C44BA555E356FBCD6FA4961F96@m0114.s-mxs.net> References: <46C15C39FEB2C44BA555E356FBCD6FA4961F96@m0114.s-mxs.net> Comments: In-reply-to "Zeugswetter Andreas SB SD" message dated "Mon, 05 May 2003 18:13:57 +0200" Date: Mon, 05 May 2003 12:54:00 -0400 Message-ID: <28645.1052153640@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/68 X-Sequence-Number: 38575 "Zeugswetter Andreas SB SD" writes: > Yes, all sounds very reasonable. I would make the field wide enough to > carry a pg_type.oid. > A few values (that should optimally not conflict with pg_type oid's) could > carry special meaning like 0 text, 1 native binary ... Well, this is exactly why the contents are *not* OIDs. Zero isn't a valid OID and I don't like assuming that 1 is either. Also if you want to think that the codes might be forced by outside considerations (like odbc standards) then OID is a bad idea. If we were really doing this in a general fashion (which is not happening for 7.4 ;-)) I would envision a system catalog that describes transform groups --- but it would have a non-OID column that carries the group ID to be used at the protocol level. We can pretty much choose the width of that column at will --- either 1, 2, or 4 bytes could be argued for, depending on how you want to make the tradeoff between bandwidth and flexibility. I'm leaning towards 1 or 2 bytes myself. I have a hard time envisioning huge numbers of transform groups. regards, tom lane