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

Patch for DBD::Pg pg_relcheck problem

From: Ian Barwick <barwick(at)gmx(dot)net>
To: dbi-dev(at)perl(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Patch for DBD::Pg pg_relcheck problem
Date: 2002-12-09 15:31:00
Message-ID: 200212091631.00125.barwick@gmx.net (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfaces
Attached is a patch against DBD::Pg 1.20 which
fixes the driver-specific function 'table_attributes'
for use with PostgreSQL 7.3 while maintaining
backwards compatibility with older PostgreSQL
versions.

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. Tested with 7.3 and 7.1.3.

This is hopefully a one off problem requiring this
kind of check. I haven't had a chance to look at
every function in Pg.pm, but it seems this is the
only one "broken" by 7.3.

Comments, corrections etc. welcome!

Ian Barwick
barwick(at)gmx(dot)net


Attachment: Pg.patch
Description: text/x-diff (782 bytes)

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2002-12-09 15:31:41
Subject: Re: [GENERAL] PostgreSQL Global Development Group
Previous:From: Rod TaylorDate: 2002-12-09 13:51:36
Subject: DBD::Pg module on Windows

pgsql-interfaces by date

Next:From: Tom LaneDate: 2002-12-09 16:03:52
Subject: Re: Patch for DBD::Pg pg_relcheck problem
Previous:From: Gerhard HäringDate: 2002-12-06 10:21:21
Subject: Re: Borland makefile for libpq...

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