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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-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 Content-Type Size
Pg.patch text/x-diff 782 bytes

Responses

Browse pgsql-hackers by date

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

Browse pgsql-interfaces by date

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