Re: Patch for DBD::Pg pg_relcheck problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ian Barwick <barwick(at)gmx(dot)net>
Cc: dbi-dev(at)perl(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Patch for DBD::Pg pg_relcheck problem
Date: 2002-12-09 16:03:52
Message-ID: 8159.1039449832@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

Ian Barwick <barwick(at)gmx(dot)net> writes:
> To avoid voodoo with PostgreSQL version numbers
> a check is made whether pg_relcheck exists and
> the appropriate query (either 7.3 or pre 7.3)
> executed.

I would think that looking at version number (select version())
would be a much cleaner approach. Or do you think that direct
examination of pg_class is a version-independent operation?

This inquiry into pg_relcheck's existence is already arguably wrong
in 7.3 (since it's not taking account of which schema pg_relcheck
might be found in) and it can only go downhill in future versions.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-12-09 16:38:47 Re: Let's create a release team
Previous Message Tom Lane 2002-12-09 15:31:41 Re: [GENERAL] PostgreSQL Global Development Group

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ian Barwick 2002-12-09 23:34:31 Re: Patch for DBD::Pg pg_relcheck problem
Previous Message Ian Barwick 2002-12-09 15:31:00 Patch for DBD::Pg pg_relcheck problem