X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A36BE53A10 for ; Wed, 27 Apr 2005 11:05:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 63320-06 for ; Wed, 27 Apr 2005 14:05:50 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 176F053543 for ; Wed, 27 Apr 2005 11:05:49 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3RE5osv021702; Wed, 27 Apr 2005 10:05:50 -0400 (EDT) To: pg@fastcrypt.com Cc: List , Peter Eisentraut Subject: Re: _pg_keyposition is gone in HEAD In-reply-to: <426F7CA8.1010200@fastcrypt.com> References: <426F0FAC.5070407@fastcrypt.com> <17876.1114576982@sss.pgh.pa.us> <426F7CA8.1010200@fastcrypt.com> Comments: In-reply-to Dave Cramer message dated "Wed, 27 Apr 2005 07:51:04 -0400" Date: Wed, 27 Apr 2005 10:05:50 -0400 Message-ID: <21701.1114610750@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/180 X-Sequence-Number: 12787 Dave Cramer writes: > I is being used to get the position of a key in the database meta data > getImportedExported keys, to be specific. That's not clear enough ... what's it being used for exactly? > My impression was that the information_schema was being provided in > order to provide an abstraction of the > internal catalogs, ostensibly to minimize changes to clients when the > underlying catalogs change from version to version? The information schema exists to export the SQL-mandated views. There are one or two auxiliary functions in it that are *NOT* considered part of the API. If you depend on those then it's at your own risk. (Arguably, Peter should have put the auxiliary functions in pg_catalog not in information_schema. This wouldn't really change anything though as to whether it's safe for clients to depend on them.) > If this is the case removing it doesn't seem like an option? Shouldn't > it be re-written to reflect reality below it ? Not removing it is not an option. It was defined and used in a way that assumed that func_max_args == index_max_keys, which isn't true any more. If we left it in place and made it generate keys up to one of those numbers, we'd silently break clients that used it for the other purpose. That's not an improvement over removing it. regards, tom lane