Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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

pgsql-hackers by date

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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group