pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pg@fastcrypt.com
Cc: List <pgsql-jdbc@postgresql.org>
Cc: Peter Eisentraut <peter_e@gmx.net>
Subject: Re: _pg_keyposition is gone in HEAD
Date: Wed, 27 Apr 2005 10:05:50 -0400
Message-ID: <21701.1114610750@sss.pgh.pa.us> (raw)
In-Reply-To: <426F7CA8.1010200@fastcrypt.com>
References: <426F0FAC.5070407@fastcrypt.com>
	<17876.1114576982@sss.pgh.pa.us>
	<426F7CA8.1010200@fastcrypt.com>

Dave Cramer <pg@fastcrypt.com> 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



view thread (6+ messages)  latest in thread

Message-ID: <21701.1114610750@sss.pgh.pa.us>
Permalink:  ../21701.1114610750@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21701.1114610750@sss.pgh.pa.us

 · 

reply

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-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pg@fastcrypt.com, peter_e@gmx.net
  Subject: Re: _pg_keyposition is gone in HEAD
  In-Reply-To: <21701.1114610750@sss.pgh.pa.us>
  References: <426F0FAC.5070407@fastcrypt.com> <17876.1114576982@sss.pgh.pa.us> <426F7CA8.1010200@fastcrypt.com> <21701.1114610750@sss.pgh.pa.us>

* 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