pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feed_pg_keyposition is gone in HEAD
6+ messages / 3 participants
[nested] [flat]
* _pg_keyposition is gone in HEAD
@ 2005-04-27 04:06 Dave Cramer <pg@fastcrypt.com>
0 siblings, 2 replies; 6+ messages in thread
From: Dave Cramer @ 2005-04-27 04:06 UTC (permalink / raw)
To: pgsql-jdbc
This function is being used in getImportedExported keys.
Does anyone know how to work around this ?
--dc--
--
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: _pg_keyposition is gone in HEAD
@ 2005-04-27 04:43 Tom Lane <tgl@sss.pgh.pa.us>
parent: Dave Cramer <pg@fastcrypt.com>
1 sibling, 1 reply; 6+ messages in thread
From: Tom Lane @ 2005-04-27 04:43 UTC (permalink / raw)
To: pg@fastcrypt.com; +Cc: pgsql-jdbc
Dave Cramer <pg@fastcrypt.com> writes:
> This function is being used in getImportedExported keys.
To do what exactly?
I got rid of it in CVS tip because it was wired into the assumption
that INDEX_MAX_KEYS = FUNC_MAX_ARGS, which is not simply not true
anymore: the latter constant doesn't even exist anymore. So you've
got to explain what you were using it for before we can talk about
solutions.
regards, tom lane
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: _pg_keyposition is gone in HEAD
@ 2005-04-27 11:51 Dave Cramer <pg@fastcrypt.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 6+ messages in thread
From: Dave Cramer @ 2005-04-27 11:51 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-jdbc
I is being used to get the position of a key in the database meta data
getImportedExported keys, to be specific.
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?
If this is the case removing it doesn't seem like an option? Shouldn't
it be re-written to reflect reality below it ?
Dave
Tom Lane wrote:
>Dave Cramer <pg@fastcrypt.com> writes:
>
>
>>This function is being used in getImportedExported keys.
>>
>>
>
>To do what exactly?
>
>I got rid of it in CVS tip because it was wired into the assumption
>that INDEX_MAX_KEYS = FUNC_MAX_ARGS, which is not simply not true
>anymore: the latter constant doesn't even exist anymore. So you've
>got to explain what you were using it for before we can talk about
>solutions.
>
> regards, tom lane
>
>
>
>
--
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: _pg_keyposition is gone in HEAD
@ 2005-04-27 14:05 Tom Lane <tgl@sss.pgh.pa.us>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 6+ messages in thread
From: Tom Lane @ 2005-04-27 14:05 UTC (permalink / raw)
To: pg@fastcrypt.com; +Cc: pgsql-jdbc; Peter Eisentraut <peter_e@gmx.net>
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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: _pg_keyposition is gone in HEAD
@ 2005-04-28 04:47 Kris Jurka <books@ejurka.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 6+ messages in thread
From: Kris Jurka @ 2005-04-28 04:47 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pg@fastcrypt.com; pgsql-jdbc; Peter Eisentraut <peter_e@gmx.net>
On Wed, 27 Apr 2005, Tom Lane wrote:
> 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?
Basically _pg_keyposition just generates a resultset of sequential
integers, we could use generate_series now using the value of
max_index_keys to determine the upper bound. So it seems like
the jdbc driver will be ok, do other apps need a new display only
GUC for max_func_args ?
Kris Jurka
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: _pg_keyposition is gone in HEAD
@ 2005-04-28 14:58 Kris Jurka <books@ejurka.com>
parent: Dave Cramer <pg@fastcrypt.com>
1 sibling, 0 replies; 6+ messages in thread
From: Kris Jurka @ 2005-04-28 14:58 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc
On Wed, 27 Apr 2005, Dave Cramer wrote:
> This function is being used in getImportedExported keys.
>
> Does anyone know how to work around this ?
>
I've committed a fix to cvs for this.
Kris Jurka
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2005-04-28 14:58 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-27 04:06 _pg_keyposition is gone in HEAD Dave Cramer <pg@fastcrypt.com>
2005-04-27 04:43 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-04-27 11:51 ` Dave Cramer <pg@fastcrypt.com>
2005-04-27 14:05 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-04-28 04:47 ` Kris Jurka <books@ejurka.com>
2005-04-28 14:58 ` Kris Jurka <books@ejurka.com>
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