version dependent compilation

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Cc: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
Subject: version dependent compilation
Date: 2005-10-06 10:50:29
Message-ID: 43450175.9030502@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Apparently, there's currently no way to perform conditional compiling
dependent on the version of pgsql. Currently we're facing the problem
that ParseDateTime changed its parameters between 8.0.3 and 8.0.4,
breaking backward compatibility (for good reasons in this case).

IMHO it's quite helpful to have macros like

#define PGSQL_VERSION_MAJOR 8
#define PGSQL_VERSION_MINOR 0
#define PGSQL_VERSION_POINT 4

or whatever naming scheme seems convenient that allow to catch such
deviations without having to maintain version specific sources manually.
Could be added for 8.1.0, 8.0.5, 7.4.10.

Regards,
Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas DAZ SD 2005-10-06 10:56:55 Re: [PERFORM] A Better External Sort?
Previous Message Hannu Krosing 2005-10-06 10:44:00 Re: [PERFORM] A Better External Sort?